Results 1 to 3 of 3

Thread: HOW TO CALL C# FUNCTIONS FROM EXTJS?

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    6
    Vote Rating
    0
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,743
    Vote Rating
    1303
      0  

    Default

    Are they exposed to the web?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    6
    Vote Rating
    0
      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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •