Shortcuts

New page in asp.net

i am very new to web application, now i have to create new page on on_click of master page button.that new page is not new window or new tab , it like printable page. i dont know how to create in the new page also i have to give 2 buttons , header and
footer.

Re: New page in asp.net

you want to create new page or you want to call a new page while clicking on button.

If you want to call a new page. first add the page in your solution and then on click event. write
Response.Redirect("secondpage.aspx");

When you add this second page in your solution you can drag and drop the button control from tool box in the page page with your desired attributes:
<asp:Button ID="btnHeader" runat="server" Text="Header" />
<asp:Button ID="btnHeader" runat="server" Text="Footer" />

Re: New page in asp.net

my doubt is , in on click i wrote Response.Redirect("Newpage.aspx");, so it will open new tab or window, but i dont want new tab or window. i want one white page with 2 buttons and maximun of 10 labels. (note: i dont want new tab or window)