ASP Button code:
Add OnClientClick="return NewWindow();"
Javascript:
function NewWindow()
{
document.forms[0].target = "_blank";
}
Change target attribute of Form tag to blank using javascript.
C# Code:
Now add Response.Redirect to Button Click event handler.
This will open the new url in the new window
Add OnClientClick="return NewWindow();"
Javascript:
function NewWindow()
{
document.forms[0].target = "_blank";
}
Change target attribute of Form tag to blank using javascript.
C# Code:
Now add Response.Redirect to Button Click event handler.
This will open the new url in the new window
No comments:
Post a Comment