Shehul
20 Apr 2012, 6:04 AM
Hello,
I am trying to create ExtJS form and have submit button which when clicked should post to ASP.NET webpage.
Inside asp.net page I am trying to process the parameters received. I am not sure how I can read those parameters(form values) on server side.
Here is my code,
form.submit(
{
clientValidation : true,
url : 'Feedback.aspx',
params:{Para1:'Id',Para2:"email"},
waitMsg:'Saving...',
success : function(form, action)
{
Ext.Msg.show(
{
title : 'Success'
, msg : 'Feedback submitted successfully'
, modal : true
, icon : Ext.Msg.INFO
, buttons : Ext.Msg.OK
}
);
}
,
failure : function(form, action)
{
this.showError(action.result.error || action.response.responseText);
}
I am hitting breakpoint on Server's Page Load but not sure how to read parameter values.
Please reply if this is not correct way do I need to create webmethod and if yes than please point me to an example to read this parameters in the webmethod.
Please reply ASAP.
Thanks,
Shehul
I am trying to create ExtJS form and have submit button which when clicked should post to ASP.NET webpage.
Inside asp.net page I am trying to process the parameters received. I am not sure how I can read those parameters(form values) on server side.
Here is my code,
form.submit(
{
clientValidation : true,
url : 'Feedback.aspx',
params:{Para1:'Id',Para2:"email"},
waitMsg:'Saving...',
success : function(form, action)
{
Ext.Msg.show(
{
title : 'Success'
, msg : 'Feedback submitted successfully'
, modal : true
, icon : Ext.Msg.INFO
, buttons : Ext.Msg.OK
}
);
}
,
failure : function(form, action)
{
this.showError(action.result.error || action.response.responseText);
}
I am hitting breakpoint on Server's Page Load but not sure how to read parameter values.
Please reply if this is not correct way do I need to create webmethod and if yes than please point me to an example to read this parameters in the webmethod.
Please reply ASAP.
Thanks,
Shehul