PC Review


Reply
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average.

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

 
 
nick
Guest
Posts: n/a
 
      15th Dec 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
 
      15th Dec 2004
Yes, of course you can do it.

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

"nick" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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
 
      15th Dec 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" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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
 
      15th Dec 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" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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
Rate This Thread
Rate This Thread:

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
Run Server-side Function *immediately after* executing client-side JavaScript. Guadala Harry Microsoft ASP .NET 4 15th Jun 2004 08:04 AM
suggestions on: Create/delete/modify element(s) for server side from Javascript/client-side? Shaul Feldman Microsoft ASP .NET 0 16th Apr 2004 10:55 PM
Using Side-by-Side Calendars, would like side-by-side DAYS Matt Landis Microsoft Outlook Calendar 6 19th Mar 2004 10:49 AM
How to call server side (VB/C#) function from client side (Javascript)? =?Utf-8?B?ZGR0?= Microsoft ASP .NET 3 12th Mar 2004 11:01 AM
Calling client side Javascript from a server side button =?Utf-8?B?Qw==?= Microsoft ASP .NET 1 16th Jan 2004 06:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:33 AM.