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

adding TARGET="_blank" on asp ?

Status
Not open for further replies.

zisopoulos

Technical User
May 20, 2009
1
GR
Hi i have the code bellow and i need to redirect the on a new window Response.Write "<a href='" i have tried to ad at the end of the href the _blank command but i get an error can someone give me an example of the right syntax?
Regards Zisopoulos

------------------------------------------------

Response.Write "<table class='myTable' width='100%'><tr>"
Response.Write "<td class='tableline"& iLine & "'>" & vbCrLf
If oRs("PostDate") > sLastVisit Then
Response.Write "<span class='NewNews'>" & GetTranslation("LANG_NEWNEWS") & "</span>" & vbCRLF
End If
Response.Write "<a href='" & GLOBAL_SITE_FORUM_PATH & GLOBAL_SITE_FORUM_PAGE & "?forum=" & oRs("SectionForum") & "&amp;section=" & oRs("PostSection") & "&amp;post=" & oRs("PostParent") & "&amp;page=last"

If oRs("PostID") <> oRs("PostParent") Then Response.Write "#" & oRs("PostID")
Response.Write "'>"
Response.Write CodeMessageEx(HTML2flat(oRs("PostMessage")), 46, false, oRs("PostSmileys").Value) & "</a>" & vbCrLf
Response.Write "</td></tr></table>" & vbCRLF
 
you could add it here:
Code:
...
If oRs("PostID") <> oRs("PostParent") Then Response.Write "#" & oRs("PostID")
Response.Write "' [COLOR=green yellow]target=""_blank""[/color]>"
...

Is that what you were doing when you were getting errors?


hint: put your code snippets in TGML tags, like: [tt][ignore]
Code:
...
[/ignore][/tt]

________________________________
Top 10 reasons to procrastinate:
1)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top