This is a migrated thread and some comments may be shown as answers.

Using Telerik ASP.NET Ajax controls in MVC3 webforms

0 Answers 78 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Prabhakar
Top achievements
Rank 1
Prabhakar asked on 28 Jun 2012, 12:36 PM
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

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Prabhakar
Top achievements
Rank 1
Share this question
or