Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Sep 15, 2010 10:11 AM by engineerachu
Member
30 Points
49 Posts
Sep 15, 2010 02:39 AM|LINK
Hi, I have problem to append asp control into my table.
error msg: 'Text' + index + '' is not a valid identifier.
var index = 1; $('#table').last().append('<asp:TextBox ID="Text' + index + '" runat="server" CssClass="DDTextBox" />');
JQuery
Contributor
3077 Points
851 Posts
Sep 15, 2010 06:50 AM|LINK
You cannot create server controls using javascript or jQuery. You can only create HTML controls. You can try: $('#table').last().append("<input type='text' id='Text" + index + "' class='DDTextBox' />");
You cannot create server controls using javascript or jQuery. You can only create HTML controls.
You can try:
Sep 15, 2010 08:54 AM|LINK
The problem is i cant get my control from code behind..Pls advice any other solution
Thx!
Sep 15, 2010 10:11 AM|LINK
You cannot access client control (html controls) from code behind any time. Hidden fields can be used to achieve in scenarios like that. Can you explain your scenario so that I can suggest you good ideas?
ps7131
Member
30 Points
49 Posts
Jquery Append Asp control
Sep 15, 2010 02:39 AM|LINK
Hi, I have problem to append asp control into my table.
error msg: 'Text' + index + '' is not a valid identifier.
var index = 1; $('#table').last().append('<asp:TextBox ID="Text' + index + '" runat="server" CssClass="DDTextBox" />');JQuery
engineerachu
Contributor
3077 Points
851 Posts
Re: Jquery Append Asp control
Sep 15, 2010 06:50 AM|LINK
Achutha Krishnan
ps7131
Member
30 Points
49 Posts
Re: Jquery Append Asp control
Sep 15, 2010 08:54 AM|LINK
The problem is i cant get my control from code behind..Pls advice any other solution
Thx!
engineerachu
Contributor
3077 Points
851 Posts
Re: Jquery Append Asp control
Sep 15, 2010 10:11 AM|LINK
You cannot access client control (html controls) from code behind any time. Hidden fields can be used to achieve in scenarios like that. Can you explain your scenario so that I can suggest you good ideas?
Achutha Krishnan