Using Telerik ASP.NET Ajax controls in MVC3 webforms

1 posts, 0 answers
  1. Prabhakar
    Prabhakar avatar
    1 posts
    Member since:
    Jun 2012

    Posted 28 Jun 2012 Link to this post

    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
Back to Top