ViewState

S

Seema Multani

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.
 
S

Siva M

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.

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top