Ask a Question related to ASP.NET Building Controls, Design and Development.
-
boeledi #1
custom web control +client-side javascript + postback
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
boeledi Guest
-
Client-Side Validation of asp:TextBox with Javascript
Hi - I'm trying to do client-side validation of the text in a Asp.Net textbox control using javascript. My page has the following: <form... -
Hit Counter in Javascript on client side.
Have opportunity to use free web server space but can only use client scripting. How to code hit counter in javascript? Any help would be... -
Custom Client-Side Validation in Web User Control
Guys, I have a custom validator that has the default property ControlToValidate plus one called SecondControlToValidate that I have created, like... -
Client side action to cause postback
Hi As soon as anything is added to the textbox set radio checked and submit? myBox.Attributes.Add("onkeypress","if(this.value != '')... -
how can i add client side javascript to a web user control?
hi, i have a web user control that i wish to add some client-side javascript to. something like this: onChange="javascript:DoSomething();" ... -
Gaurav Vaish \(www.Edujini-Labs.com\) #2
Re: custom web control +client-side javascript + postback
What's the ID that you are using? Is it textBox1 or textBox1.ID?
Use textBox1.ClientID
--
Happy Hacking,
Gaurav Vaish | [url]www.mastergaurav.com[/url]
[url]www.edujini-labs.com[/url]
[url]http://eduzine.edujinionline.com[/url]
-----------------------------------------
"boeledi" <didier.boelens@steams.be> wrote in message
news:1166143999.831438.80840@f1g2000cwa.googlegrou ps.com...> 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
>
Gaurav Vaish \(www.Edujini-Labs.com\) Guest



Reply With Quote

