Thread is closed for posting
2 posts, 0 answers
  1. Sub
    Sub avatar
    91 posts
    Member since:
    Nov 2007

    Posted 13 May 2009 Link to this post


    I have set of RadNumericTextBoxes in the partial view. I would like to assign the ID with the value from View Data.

    I tried something like ID="test<% ViewData["test"].Tostring() %>.

    But I get an error. Can you please help me to identify the correct syntax?

  2. Dallas Sehlhorst
    Dallas Sehlhorst avatar
    19 posts
    Member since:
    Feb 2006

    Posted 13 May 2009 Link to this post


    No reason to do this other than to dynamically add new instances on a page, in which case you can just use a loop or counter var.  Even if you do manage to achieve this, your ID will be mangled because the RadTextBox has runat="server"- you'll still get the "control_ct" junk where JQuery won't be able to access it.

  3. DevCraft R3 2016 release webinar banner
Back to Top