new page in server side
-
i have a button which should open a new page in server side. and after clicking it, there will be two browser page. what is its server side code. my server side language is c#.net.
thanks rastgar
Either you don't want what you asked for, or you have some very unusal reason for wanting it. If you open a new page in server side, it will be opened on the server, and it won't be available to the user. If you don't want to open it in server side at all, but on the client side, you have to do that from the browser. You can use Javascript to do that:
window.open('PageToOpen.aspx', '_blank');
--- b { font-weight: normal; }
-
Either you don't want what you asked for, or you have some very unusal reason for wanting it. If you open a new page in server side, it will be opened on the server, and it won't be available to the user. If you don't want to open it in server side at all, but on the client side, you have to do that from the browser. You can use Javascript to do that:
window.open('PageToOpen.aspx', '_blank');
--- b { font-weight: normal; }
there are alot of axample for what i want to do. mmmmmmmmmmmmmmmmmmmmmm for example: in yahoo mail. have ever seen whenever you want to delete a mail, yahoo opens a new page for you to confirm deletion? doesn't it process in server side? of course yes. because your request is sent to server. how can i implement it? i know that javascript code but you suppose that i want to write some code in buttonclick event depending on my database, and for each condition i sould open a new page in new window not the old window. how can i do that? thanks rastgar
-
there are alot of axample for what i want to do. mmmmmmmmmmmmmmmmmmmmmm for example: in yahoo mail. have ever seen whenever you want to delete a mail, yahoo opens a new page for you to confirm deletion? doesn't it process in server side? of course yes. because your request is sent to server. how can i implement it? i know that javascript code but you suppose that i want to write some code in buttonclick event depending on my database, and for each condition i sould open a new page in new window not the old window. how can i do that? thanks rastgar
Yes boss. On buttonclick of that button write as Response.Write("Call javascript function here") Thats it. Best of Luck
-
Either you don't want what you asked for, or you have some very unusal reason for wanting it. If you open a new page in server side, it will be opened on the server, and it won't be available to the user. If you don't want to open it in server side at all, but on the client side, you have to do that from the browser. You can use Javascript to do that:
window.open('PageToOpen.aspx', '_blank');
--- b { font-weight: normal; }