Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ViewState

Reply
Thread Tools

ViewState

 
 
Seema Multani
Guest
Posts: n/a
 
      08-11-2006
I have two a user controls in which I have two buttons "btnAdd" and
"btnRemove". I have a multiview and I have two views in that multiview
named"View1" and "View2". I want that when I click on "btnAdd' then show
"View1" and when click on "btnRemove" then show "View2" depending on
postback and not postback. I want to use viewstate property. I don't know
how to do that.


 
Reply With Quote
 
 
 
 
Siva M
Guest
Posts: n/a
 
      08-12-2006
Not sure why you want to use ViewState here but to show a specific View in a
MultiView, set the latter's ActiveViewIndex to the index of the former.
However, setting ActiveViewIndex can only happen on the server-side, in your
case in the button click of the buttons.

HTH.

"Seema Multani" <> wrote in message
news:%...
I have two a user controls in which I have two buttons "btnAdd" and
"btnRemove". I have a multiview and I have two views in that multiview
named"View1" and "View2". I want that when I click on "btnAdd' then show
"View1" and when click on "btnRemove" then show "View2" depending on
postback and not postback. I want to use viewstate property. I don't know
how to do that.


 
Reply With Quote
 
 
 
Reply

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with ViewState: "function 'ViewState.get_Item' evaluated and returned null" Steph ASP .Net 2 05-11-2011 02:35 PM
Errors: Failed to load viewstate. & Validation of viewstate MAC failed. sck10 ASP .Net 6 09-01-2006 05:59 PM
Loading usercontrols, viewstate problem, slighly different from all others "viewstate uc problems" please help... ujjc001 ASP .Net 0 07-27-2005 01:52 PM
Viewstate errors... how do I get viewstate working? mark ASP .Net Building Controls 0 02-20-2004 02:17 PM
Corrupted ViewState (Yes, another issue concerning viewstate) Ben Rush ASP .Net 2 12-05-2003 04:17 PM



Advertisments