2.0: enableviewstate

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Here is an interesting one. If I disable viewstate in the web.config file,
but enable it on a specific page, it doesnt save the viewstate on postbacks.
I have to actually enable it in web.config.

Thanks!
 
Hi Param,

Welcome.
For the ViewState setting, I think there may have some other thing that
make it work incorrectly. Page level enableViewState setting will always
override the web.config level setting. Also, is the strange behavior occurs
on other projects on the server?

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| From: <[email protected]>
| Subject: 2.0: enableviewstate
| Date: Tue, 24 Jan 2006 17:46:01 -0600
| Lines: 7
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: corp.lazardgroup.com 69.2.40.60
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:373316
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Here is an interesting one. If I disable viewstate in the web.config
file,
| but enable it on a specific page, it doesnt save the viewstate on
postbacks.
| I have to actually enable it in web.config.
|
| Thanks!
|
|
|
 
I havent tried other projects, but I can sure try and let you know. It does
seem a bit weird. I dont know of any other setting I changed.

TIA!
 
Seems a bit strange. Do you think it necessary that I attach a test website
project on my side to you for testing?

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| From: <[email protected]>
| References: <[email protected]>
<[email protected]>
| Subject: Re: 2.0: enableviewstate
| Date: Wed, 25 Jan 2006 08:37:16 -0600
| Lines: 57
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: corp.lazardgroup.com 69.2.40.60
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:373412
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I havent tried other projects, but I can sure try and let you know. It
does
| seem a bit weird. I dont know of any other setting I changed.
|
| TIA!
|
| | > Hi Param,
| >
| > Welcome.
| > For the ViewState setting, I think there may have some other thing that
| > make it work incorrectly. Page level enableViewState setting will always
| > override the web.config level setting. Also, is the strange behavior
| > occurs
| > on other projects on the server?
| >
| > Regards,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| > --------------------
| > | From: <[email protected]>
| > | Subject: 2.0: enableviewstate
| > | Date: Tue, 24 Jan 2006 17:46:01 -0600
| > | Lines: 7
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| > | X-RFC2646: Format=Flowed; Original
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| > | Message-ID: <[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: corp.lazardgroup.com 69.2.40.60
| > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:373316
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | Here is an interesting one. If I disable viewstate in the web.config
| > file,
| > | but enable it on a specific page, it doesnt save the viewstate on
| > postbacks.
| > | I have to actually enable it in web.config.
| > |
| > | Thanks!
| > |
| > |
| > |
| >
|
|
|
 
Back
Top