DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 25 Jul 2007 16:03:56 +0800,    posted on: microsoft.public.dotnet.framework.aspnet.webcontrols        back       

Thread Index
  1    jiatiejun
          2    Steve C. Orr [MCSD, MVP, CSM, ASP Insider]


How change Label's Text value in client side and postback to Server?   
I want change the Label's Text value in client side by javascript

I use getElementById to set control's innerText value

but the new value can't postback to Server

how to pass the value to Server?

thanks
Date:Wed, 25 Jul 2007 16:03:56 +0800   Author:  

Re: How change Label's Text value in client side and postback to Server?   
The common approach would be to write the new name into a hidden field using 
client side code.
Then upon postback you can get the value from the hidden field with server 
side code and then assign it to the label's text property.

-- 
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net


"jiatiejun"  wrote in message 
news:u4UVdJpzHHA.5772@TK2MSFTNGP02.phx.gbl...

>I want change the Label's Text value in client side by javascript
>
> I use getElementById to set control's innerText value
>
> but the new value can't postback to Server
>
> how to pass the value to Server?
>
> thanks
> 
Date:Wed, 25 Jul 2007 07:16:54 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us