-
ViewState in ASP.net
Hi, I want to know the details about the ViewState from the ASP.net. If anyone is having details about it, then please help me to get more information about it. It will be helpful to me. Please, give me some details which will help me to get more information about it. I am waiting for your reply.
-
Re: ViewState in ASP.net
ViewState is used to maintain values on postback. That means it simply helps in preserving the a page. Viewstate maintained by making use of the hidden field which are encrypted and along with a key. There are many more conditions are occur which requires this type of functioning while making a website. So, .net has added this feature in it. It is very helpful to maintain the page which are visited before.
-
Re: ViewState in ASP.net
Viewstate in VB.net is having following Advantages and disadvantages:
Advantages:
i) It would not provide you the server resources.
ii) Viewstate provides you security.
iii) Viewstates are simple. There are properties which help to enable or disable the viewstate.
iv) It gives you option of page level or control level implementation.
Disadvantages:
i) It may be problematic to store large amount of data on the page.
ii) It does not track across pages. That means the information of Viewstate on does not automatically transfer from page to page.
-
Re: ViewState in ASP.net
Hi, I am new in .net technology. I have just begin my asp.net. I want to know more about it. I have read this term of ViewState first time. If anyone is having more information about it, which will help me to get more knowledge then please give me that. I am waiting for the reply which will help me to get more information about the viewstate. If you have basic concepts regarding this then please forward me that.
-
Re: ViewState in ASP.net
Hi, basically when a form is submitted with the use of asp.net in any type of web project, all form values are cleared. So, consider if user submit his form which contains more information and he gets an error while submitting it. Then if he click on back button then he would not able to get any type of information. So, it is needed that to store that information which is maintained by the viewstate.
-
Re: ViewState in ASP.net
Hello, I am also the beginner in ASP.net, but I have come to know that the ViewState is a mechanism to maintain state in ASP.net pages. As you know the HTTP is a stateless protocol. This state can be saved on either server or on client using sessions, cookies, hidden variables, URL, etc. ViewState is a hidden field maintained by ASP.Net to contain page data. That's what I know. I am not have more about this.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Page generated in 1,750,464,979.13676 seconds with 15 queries
Bookmarks