Click here to Skip to main content
15,559,491 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using asp.net,C#,VS 2005,sql server 2005..

i have a .aspx page already designed and coded...

now my problem is i am using master page ....

i have a master page having:

content1 and content2...

in content1 i have a set of 3 buttons i.e.,add,delete and edit

now my problem is when i click on add button addpage.aspx should be displayed on content2...

but it is displaying in separate page...

I dont want to display the addpage.aspx in separate page.. it should be displayed there only with left side having 3 buttons and right side(content2) having the addpage.aspx

i have written code like : response.redirect("AddPage.aspx")..

how to solve this?

please help me

regards

karan
Posted
Updated 17-May-11 19:36pm
v3

put multiview in your contentpage and then place view in that one as per your requirement.and change multiview active index -1 to 0.when add button is click multiview1.activeindex=0;
when delete button multiview1.activeindex=1 .................
 
Share this answer
 
Comments
ambarishtv 18-May-11 1:44am    
hi.. my 5 :)
karan joshua 18-May-11 1:59am    
thank u very much...
karan joshua 18-May-11 2:24am    
Is it possible to add existing aspx page to multiview beacause the aspx page also contains javascript function that will display calender....
In AddPage.aspx try Adding @Page MasterPageFile= "~\your Master Page name........"
and
After Page dirctive Tag add your content place holder
For Example :
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
 
Share this answer
 
Comments
karan joshua 17-May-11 13:05pm    
it is giving error..

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