Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > server side code access the text of <asp:label> changed by client-side javascript code?

Reply
Thread Tools

server side code access the text of <asp:label> changed by client-side javascript code?

 
 
nick
Guest
Posts: n/a
 
      12-15-2004
Is possible for server side code to access the text of <asp:label> changed
by client side javascript code?


 
Reply With Quote
 
 
 
 
Saravana
Guest
Posts: n/a
 
      12-15-2004
Yes, of course you can do it.

--
-Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com

"nick" <> wrote in message
news:%...
> Is possible for server side code to access the text of <asp:label> changed
> by client side javascript code?
>
>



 
Reply With Quote
 
 
 
 
William F. Robertson, Jr.
Guest
Posts: n/a
 
      12-15-2004
No, you will need to double the new value into a hidden text field, or some
other postable field, and then look for the change of the text through the
Request.Forms["txtHidden1"] property on postback to determine if the text
has changed.

bill

"nick" <> wrote in message
news:%...
> Is possible for server side code to access the text of <asp:label> changed
> by client side javascript code?
>
>



 
Reply With Quote
 
Eliyahu Goldin
Guest
Posts: n/a
 
      12-15-2004
If you mean accessing the text via the label's Text property, the answer is
no.

You can pass the changed text to the server in one of the common ways of
passing values from client to server, for example in a hidden field.

Eliyahu

"nick" <> wrote in message
news:%...
> Is possible for server side code to access the text of <asp:label> changed
> by client side javascript code?
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LinkButton Client side code firing before server side code alexmac262@hotmail.com ASP .Net 1 03-22-2007 06:13 PM
Server side access the text of <asp:label> changed by client side javascript code? nick ASP .Net Web Controls 1 12-23-2004 04:18 AM
how client-side presentation code interacts with server-side sorting/filter code? jrefactors@hotmail.com Java 1 12-08-2004 12:30 AM
ListBox items changed client-side are not available server-side Valerian John ASP .Net 6 05-17-2004 06:45 PM
Re: Access control values changed via Client-Side Javascript John Saunders ASP .Net 0 08-29-2003 12:16 PM



Advertisments