IT Community - Software Programming, Web Development and Technical Support

how can i disable teh viewstate in asp .net application ?

This is a discussion on how can i disable teh viewstate in asp .net application ? within the ASP and ASP.NET Programming forums, part of the Web Development category; how can i Disable the viewstate in my asp .net application ?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-20-2007, 06:15 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Red face how can i disable teh viewstate in asp .net application ?

how can i Disable the viewstate in my asp .net application ?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-20-2007, 06:30 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Thumbs up Re: how can i disable the viewstate in asp .net application ?

Hi.....


With the help of automatic state management feature, the server control is re-populate their values without writing any code. And it affects the performance. The always set EnableViewState = false when not requires.
For control
<asp: datagrid EnableViewState="false" datasource="..." runat="server"/>
For Page
<%@ Page EnableViewState="false" %>
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application has failed to start because the application configuration is incorrect kingmaker ASP and ASP.NET Programming 5 01-03-2008 03:18 AM
Ajax and Viewstate variables Balasubramanian.S C# Programming 1 09-20-2007 08:10 AM
Is any drawbacks in using VIewState["key"] in forms kingmaker C# Programming 1 08-11-2007 04:59 AM
How to increase viewstate variable in asp .net? oxygen ASP and ASP.NET Programming 1 07-30-2007 09:15 AM
When during the page processing cycle is ViewState available? prasath ASP and ASP.NET Programming 1 07-19-2007 03:29 AM


All times are GMT -7. The time now is 01:11 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0