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

RadNumericTextBox

1 Answer 43 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Sub
Top achievements
Rank 1
Sub asked on 13 May 2009, 07:12 PM
Hi,

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?

thanks

1 Answer, 1 is accepted

Sort by
0
Dallas Sehlhorst
Top achievements
Rank 1
answered on 13 May 2009, 08:54 PM
Sub,

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.

-Dallas
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Sub
Top achievements
Rank 1
Answers by
Dallas Sehlhorst
Top achievements
Rank 1
Share this question
or