1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    6
    Vote Rating
    0
    echry is on a distinguished road

      0  

    Default HOW TO CALL C# FUNCTIONS FROM EXTJS?

    HOW TO CALL C# FUNCTIONS FROM EXTJS?


    Dear all,

    I need your help. I created this window and all items associated. I want to execute a code-behind (c#) functions when clicking on the button Save (in fact when clicking on the button Save, it has to save information that have just been filled). Is it possible? If yes how to do this?


    var win = new Ext.Window({
    id: 'formloadsubmit-win'
    , title: 'Tasks'
    , layout: 'fit'
    , width: 700
    , height: 520
    , closable: true
    , border: true
    , buttonAlign: 'center'
    , items: [{
    // form as the only item in window
    xtype: 'form'
    , labelWidth: 60
    , frame: true
    ,height:500
    , items: [{
    // textfield
    fieldLabel: 'Title'
    , xtype: 'textfield'
    , anchor: '-18'
    , name: 'title1'
    }, { fieldLabel: 'Attachment'
    , xtype: 'fileuploadfield',
    name: 'file1'
    , anchor: '-16'
    , fileupload: true
    ,emptyText:'Select a File '
    ,buttonText: '',
    buttonCfg: {
    iconCls: 'upload-icon'
    }


    }, { fieldLabel: 'Keywords'
    , xtype: 'textarea'
    , name: 'textarea1'
    , anchor: '-18'
    }, { fieldLabel: 'Content'
    , xtype: 'htmleditor'
    , name: 'htmleditor1'
    , anchor: '-18'
    }

    ]
    }]


    , buttons: [{
    text: 'Save'

    }, {
    text: 'Cancel'

    }]
    });
    win.show();

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,203
    Vote Rating
    856
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Are they exposed to the web?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    6
    Vote Rating
    0
    echry is on a distinguished road

      0  

    Default


    Yes, they are exposed to the web.
    Someone suggested me to use usercontrols, where i supposed to create my window. According to him,creating it as i did can be more difficult to manage as far as code-behind concerned. But, until now i cannot really progress in my task. I'm still waiting for your help.

Thread Participants: 1