all groups > asp.net building controls > december 2006 >
You're in the

asp.net building controls

group:

custom web control +client-side javascript + postback



custom web control +client-side javascript + postback boeledi
12/14/2006 4:53:19 PM
asp.net building controls: Hello,

I am trying to create a new Web Control (ASP.NET 1.1) that contains
among other textboxes. The content of these textboxes (runat=server)
might be changed by client-side Javascript code, like:
document.getElementById('txt...').value='...';
Then, at server side, I will need to retrieve the NEW content of these
textboxes later on...
The problem I am facing is that I don't retrieve the new content of the
textboxes... It seems that after postback, I don't get these new
values...

Could someone explain me how to achieve this?

Many thanks
Re: custom web control +client-side javascript + postback Gaurav Vaish (www.Edujini-Labs.com)
1/10/2007 4:21:52 PM
What's the ID that you are using? Is it textBox1 or textBox1.ID?
Use textBox1.ClientID

--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujinionline.com
-----------------------------------------


[quoted text, click to view]

AddThis Social Bookmark Button