Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Smart Nav and Response.redirect

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
US
On one of my pages I have SN enabled. I am trying to get the below code to work using SN. I have got all my other response.redirect to work but can't get this one to work.

strRedirect = "../Sales/PrintCA.aspx?CANo=" & lblCANo.Text
Response.Write("<script language='javascript'>" & vbCrLf)
'Response.Write("wndcht=window.open('" + strRedirect + "');")
Response.Write("wndcht=window.open('" + strRedirect + "','_new', 'toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes,left=0,top=0');")
Response.Write("<" & "/" & "script" & ">" & vbCrLf)

any help would be appreciated.

 
well, I added SN after the page was built. the code does work. I was just having a very hard time keeping the page at a down position on a post back. all the example code I have seen I can't get it to work and seems to have issues as well. I just wanted to go with a simple solution.

I can get all the other repsone.redirect's to work on this page by doing... response.redirect("Page.aspx",true)

that seems to work but just not on my code.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top