473,396 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

View State

Hi
Im having one doubt in Viewstate. Actually Viewstate is used to maintain the
state of the controls for postback of the page. If I Set the Page level
EnableViewState=False and the Viewstate for the control (say Textbox) as
False. Now Im posting form for process then again im getting the value in the
textbox(i disabled the viewstate) then why?
Jul 21 '05 #1
2 1096
Sundar,

When you set the viewstate to false the let desrtiption of the properties of
the textbox is not in a viewstate however inline in HTML code.

Open for that the sourcecode from a showed page than you will see that.

I hope this helps?

Cor

"Sundar" <Su****@discussions.microsoft.com>
Hi
Im having one doubt in Viewstate. Actually Viewstate is used to maintain
the
state of the controls for postback of the page. If I Set the Page level
EnableViewState=False and the Viewstate for the control (say Textbox) as
False. Now Im posting form for process then again im getting the value in
the
textbox(i disabled the viewstate) then why?

Jul 21 '05 #2
Thanks Cor
I got the answer.
Actually I expect if I disable the viewstate the data may not be loaded. But
its wrong the data will be loaded by the load postdata event. In the
loadviewstate it loads only the State of the Control. for Example
TextBox1.Font.Bold=True like this.

B. Sundar

"Cor Ligthert" wrote:
Sundar,

When you set the viewstate to false the let desrtiption of the properties of
the textbox is not in a viewstate however inline in HTML code.

Open for that the sourcecode from a showed page than you will see that.

I hope this helps?

Cor

"Sundar" <Su****@discussions.microsoft.com>
Hi
Im having one doubt in Viewstate. Actually Viewstate is used to maintain
the
state of the controls for postback of the page. If I Set the Page level
EnableViewState=False and the Viewstate for the control (say Textbox) as
False. Now Im posting form for process then again im getting the value in
the
textbox(i disabled the viewstate) then why?


Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bren | last post by:
I am developing a web based app. in .net, with C# as the code behind.the problem I am having is with view state for a page. the page is capturing an event fired in an object. the event changes the...
0
by: Bren | last post by:
I am developing a web based app. in .net, with C# as the code behind.the problem I am having is with view state for a page. the page is capturing an event fired in an object. the event changes the...
2
by: Brad | last post by:
I have an intranet app that has just started sporadically getting the following error "The viewstate is invalid for this page and might be corrupted." By sproadic I mean 3-4 times during the past...
3
by: Philip Tripp | last post by:
I've read numerous sources stating that view state can be disabled per control, and per page, but can't seem to keep web form controls from remembering their state on a postback. I'm using VS.Net...
10
by: Zack Sessions | last post by:
Has anyone tried to create a SQL7 view using the CREATE VIEW command and ADO.NET? If so, is there a trick in trapping a SQL error when trying to create the view? I have a VB.NET app that, amoung...
20
by: raptor | last post by:
hi, I want to make the following thing : select-based updatable VIEW, which have two more virtual-fields. One of them is concatenation of others and the second is calculated on the fly. Can I...
3
by: gaDev | last post by:
1) I build a Html Table dynamically (Header Row, and then 2 rows with data All 2 rows have 2 cells: cell(0) contains a delete button (ASP Button), cell(1) contains a HTML Text box 2) On Form Load...
2
by: Michael | last post by:
Hi, I need to access view state data in my CreateChildControls method. Is there anyway to achieve that? I'm using ASP.NET 1.1. Thanks.
12
by: Doug | last post by:
Hi, I learned a little about the model view presenter pattern at a conference this last week and am experimenting with it. It's working pretty well but I have a question. I am trying to use...
9
by: Siddu | last post by:
Hi All, I am new to this group and this is my first doubt i am facing at present. I am doing data migration. In this sequence i need to alter few views. Alter in the sense, inside the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.