Click here to Skip to main content
15,903,203 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai Everyone..

I got a problem in developing my web application....my problem is,in my project i have two web pages...the page one contains the buttons display, create and the page two contains tab container with two two tab panels i.e tabpanel1 and tabpanel2 my requirement is whenever I click on display button the page one should be redirected to page two tabpanel1...and by clicking on create button it should be redirected to page two tabpanel2 that is my requirement can anyone help for this....



Thank's in Advance
Mishrutha
Posted

1 solution

In Page1 You Should send the variables to page2,by using the code like

in button1: response.redirect("page2.aspx?value=1");

in button2:response.redirect("page2.aspx?value=2");

in page2 u should take the value in page load

int i=convert.int16(request["value"].tostring());

if(i==1)
{

tabcontainer1.activetabindex=0;
}
else if(i==2)
{

tabcontainer1.activetabindex=1;

}
 
Share this answer
 
v2
Comments
Sandeep Mewara 26-May-12 1:05am    
Is this the resolved answer?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900