Hi,
I am using Telerik Asp.net Ajax Controls in MVC3 with WCF. I am using webforms(aspx). when i am passing data from View to Controller as form collection. I am not able to retrieve the controls information.
I am using in the Controller method
var val = FormCollection["txtApplicationName"].ToString();
I am getting object reference not set error.
If I am using
var val=FormCollection["ct100_MainContent_txtApplicationName_text"].ToString();
I am getting the correct text value of the TextBox in the View.
Can anybody help .
What code is to be written in Controller
Thanks,
Prabhakar
I am using Telerik Asp.net Ajax Controls in MVC3 with WCF. I am using webforms(aspx). when i am passing data from View to Controller as form collection. I am not able to retrieve the controls information.
I am using in the Controller method
var val = FormCollection["txtApplicationName"].ToString();
I am getting object reference not set error.
If I am using
var val=FormCollection["ct100_MainContent_txtApplicationName_text"].ToString();
I am getting the correct text value of the TextBox in the View.
Can anybody help .
What code is to be written in Controller
Thanks,
Prabhakar