Click here to Skip to main content
15,910,603 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dim url = "PR.aspx?PRID=" & PRID & "&PRNo=" & PRNo & "&PRIssues=" & PRIssues & "&ReqDueDate=" & ReqDueDate & "&Requestor=" & Requestor & "&Dept=" & Dept & _
                            "&Company=" & Company & "&ProjectName=" & ProjectName & "&ProjectCode=" & ProjectCode & "&Justification=" & Justification & " &ModelName=" & ModelName & "&Location=" & Location & "&ItemType=" & ItemType & "&ItemType2=" & ItemType2 & "&ReqItemType=" & ReqItemType & "&ReqItemType2=" & ReqItemType2 & "&ExtNo = " & ExtNo & "&userid=" & Session("userid") & "&branchid=" & Session("branchid")

Response.Redirect(<script>window.open(url,'_blank');</script>")


What I have tried:

the result is
The page cannot be found
Posted
Updated 10-Jan-19 17:02pm

The browser is the only thing that can open up a new window.

Please try this and let me know.I will suggest another solution.

response.write("<script>");
response.write("window.open('page.aspx','_blank')");
response.write("</script>"); 
 
Share this answer
 
Comments
Reena Aleesya 10-Jan-19 0:56am    
Hi Prasad, it clickiing form gridview image button, and it redirect to new tab, but the problem is the just blank page no value, which im using Request.QueryString.
Please advise...
Try this

string url = "testpage.aspx?TestID="  + ID;
 string fullURL = "window.open('" + url + "', '_blank' );";
               ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", fullURL, true);
 
Share this answer
 
v2
Hi Prasad,

Many thanks. It works now.

but i'm using this way;

Dim scripturl = "<script>window.open('" & url & "','_blank');</script>"
   Response.Write(scripturl)
 
Share this 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