Results 1 to 6 of 6

Thread: ViewState in ASP.net

  1. #1
    Join Date
    Nov 2009
    Posts
    140

    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.

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    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.

  3. #3
    Join Date
    Apr 2008
    Posts
    1,948

    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.

  4. #4
    Join Date
    May 2008
    Posts
    2,012

    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.

  5. #5
    Join Date
    Apr 2008
    Posts
    2,005

    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.

  6. #6
    Join Date
    May 2008
    Posts
    2,297

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,464,979.13676 seconds with 15 queries