Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Sun, 31 Aug 2008 21:40:58 -0400,    group: microsoft.public.dotnet.framework.aspnet        back       


Radio buttons change state when page changes   
I have a master containing radio buttons all with the same group name.

If I select one of the buttons and then navigate to a different page the 
buttons revert to their initial state.

Is that what you'd expect?

How can I make the state persist?



Thanks
date: Sun, 31 Aug 2008 21:40:58 -0400   author:   _Who

Re: Radio buttons change state when page changes   
Yes, that is expected. Think of master pages as user controls embedded in 
content pages. A different page has no knowledge about the previous one 
unless you cater for that. You may want to save the selection in a session 
variable and restore it on the next page in Page_Load event.

-- 
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"_Who"  wrote in message 
news:u1AEJP9CJHA.3348@TK2MSFTNGP04.phx.gbl...
>I have a master containing radio buttons all with the same group name.
>
> If I select one of the buttons and then navigate to a different page the 
> buttons revert to their initial state.
>
> Is that what you'd expect?
>
> How can I make the state persist?
>
>
>
> Thanks
>
date: Mon, 1 Sep 2008 11:05:30 +0300   author:   Eliyahu Goldin

Re: Radio buttons change state when page changes   
"_Who"  wrote in message 
news:u1AEJP9CJHA.3348@TK2MSFTNGP04.phx.gbl...

> I have a master [page] containing radio buttons all with the same group 
> name.
>
> If I select one of the buttons and then navigate to a different page the 
> buttons revert to their initial state.
>
> Is that what you'd expect?

Yes, just like with any other UserControl, which is all a MasterPage is...

> How can I make the state persist?

Store them in a Session variable.


-- 
Mark Rae
ASP.NET MVP
http://www.markrae.net
date: Mon, 1 Sep 2008 09:27:17 +0100   author:   Mark Rae [MVP]

Re: Radio buttons change state when page changes   
thanks

"Mark Rae [MVP]"  wrote in message 
news:u4hKRyADJHA.4704@TK2MSFTNGP06.phx.gbl...
> "_Who"  wrote in message 
> news:u1AEJP9CJHA.3348@TK2MSFTNGP04.phx.gbl...
>
>> I have a master [page] containing radio buttons all with the same group 
>> name.
>>
>> If I select one of the buttons and then navigate to a different page the 
>> buttons revert to their initial state.
>>
>> Is that what you'd expect?
>
> Yes, just like with any other UserControl, which is all a MasterPage is...
>
>> How can I make the state persist?
>
> Store them in a Session variable.
>
>
> -- 
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net
date: Mon, 1 Sep 2008 08:22:22 -0400   author:   _Who

Re: Radio buttons change state when page changes   
thanks

"Eliyahu Goldin"  wrote in 
message news:eRasOnADJHA.5316@TK2MSFTNGP04.phx.gbl...
> Yes, that is expected. Think of master pages as user controls embedded in 
> content pages. A different page has no knowledge about the previous one 
> unless you cater for that. You may want to save the selection in a session 
> variable and restore it on the next page in Page_Load event.
>
> -- 
> Eliyahu Goldin,
> Software Developer
> Microsoft MVP [ASP.NET]
> http://msmvps.com/blogs/egoldin
> http://usableasp.net
>
>
> "_Who"  wrote in message 
> news:u1AEJP9CJHA.3348@TK2MSFTNGP04.phx.gbl...
>>I have a master containing radio buttons all with the same group name.
>>
>> If I select one of the buttons and then navigate to a different page the 
>> buttons revert to their initial state.
>>
>> Is that what you'd expect?
>>
>> How can I make the state persist?
>>
>>
>>
>> Thanks
>>
>
>
date: Mon, 1 Sep 2008 08:23:20 -0400   author:   _Who

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us