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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

formatting of links

Status
Not open for further replies.

lxon

Technical User
Aug 25, 2002
7
SG
Is there anyway to format or block out the "" to ensure that my command gets done exactly the way i want it?
Coz it seems that when i do this, not only does the pop up window gets directed to mypage.asp the original page does as well. I have to use the response.write() becoz it's within an if else statement.

response.write(&quot;<a href=&quot;)
response.write(&quot;mypage.asp&quot;)
response.write(&quot; onClick=&quot;)
response.write(&quot;NewWindow(this.href,'test','700','500','no','center');return false&quot;)
response.write(&quot;>mypage</a>&quot;)
 
Is this what you need?

<% Response.CacheControl = &quot;no-cache&quot; %>
<% Response.AddHeader &quot;Pragma&quot;, &quot;no-cache&quot; %>
<% Response.Expires = -1
response.write(&quot;<a href=&quot;&quot;&quot;)
response.write(&quot;javascript: &quot;)
response.write(&quot;window.open(this.href,'test','700','500','no','center');&quot;&quot;&quot;)
response.write(&quot;>mypage</a>&quot;)
%>
 
<% if Request.Cookies(&quot;strStatus&quot;)=&quot;admin&quot; then %>

some text
<a href=&quot;mypage.asp&quot; onClick=&quot;NewWindow(this.href,'test','750','500','no','center');return false&quot;>mypage</a>

<%elseif Request.Cookies(&quot;strStatus&quot;)=&quot;guest&quot; then%>

some text
<%end if%>
This was how i solved it. [upsidedown]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top