Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic asp.net - hyperlink (Read 3823 times)
pengwin
YaBB Newbies
*
Offline


U2 UniVerse | SB+

Posts: 9
Joined: May 15th, 2006
asp.net - hyperlink
May 16th, 2006 at 6:41am
Print Post  
Hi,
is there a way to specify the target detail when a box has a hyperlink (asp.net)

<AREA SHAPE="RECT" COORDS="261,1152,336,1227"
HREF="www.mypage.com" TARGET="_blank" ALT="">

with the target as built by default the hyperlink opens in a new browser window - is there a way to specify an alternate target detail for the box's hyperlink?

Many thanks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: asp.net - hyperlink
Reply #1 - May 16th, 2006 at 7:16am
Print Post  
Hi,

Yes, that's possible. Set the HtmlBuilder.LinkTarget property to "_self" or to the name of the frame where you need the link to open.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
pengwin
YaBB Newbies
*
Offline


U2 UniVerse | SB+

Posts: 9
Joined: May 15th, 2006
Re: asp.net - hyperlink
Reply #2 - May 16th, 2006 at 8:52am
Print Post  
sorry for this next "stupid" question, but is there a small sample of where HtmlBuilder.LinkTarget attaches to, so that I can mod the property as per the answer?
Many thanks.
  
Back to top
 
IP Logged
 
pengwin
YaBB Newbies
*
Offline


U2 UniVerse | SB+

Posts: 9
Joined: May 15th, 2006
Re: asp.net - hyperlink
Reply #3 - May 16th, 2006 at 9:28am
Print Post  
i've added

Code
Select All
Dim hb As New HtmlBuilder(fc)
hb.LinkTarget = "_self"
 



and "watched" hb , it's LinkTarget is "self"

I add the box with :

Code
Select All
im node As Box = fc.CreateBox(xVal, yVal, xBoxSize, yBoxSize)
	  node.Text = strBoxText
	  node.TextFormat.LineAlignment = StringAlignment.Center
	  'node.FitSizeToPicture()
	  node.Transparent = False
	  node.FrameColor = boxFrameColour.Black
	  node.FillColor = boxColour
	  node.TextColor = boxTextColour

	  node.HyperLink = "www.mypage.com"
 



but the area is still specified
Code
Select All
HREF="www.mypage.com" TARGET="_blank" ALT="">
 



is there something i'm doing wrong with the order?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: asp.net - hyperlink
Reply #4 - May 16th, 2006 at 9:39am
Print Post  
Actually "_self" is the default value. Could you check whether "_blank" isn't set somewhere later in the code ?

Stoyan
  
Back to top
 
IP Logged
 
pengwin
YaBB Newbies
*
Offline


U2 UniVerse | SB+

Posts: 9
Joined: May 15th, 2006
Re: asp.net - hyperlink
Reply #5 - May 16th, 2006 at 9:46am
Print Post  
Embarrassed Embarrassed Embarrassed <--- blushes

doh! sorry 'bout that one, rechecked "higher" up in the code and found it !

Code
Select All
fc = Me.Session.Item("fcx")
	  If Not fc Is Nothing Then
		Dim hb As New HtmlBuilder(fc)
		'hb.LinkTarget = "_blank"
		Return hb.CreateImageMap("map1")
	  End If
 



thanks soooo much for the help (even with my stoooopid question) - but then again some of the gr8 discoveries were from mistakes Wink .. here's hoping! Thanks again. Smiley
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: asp.net - hyperlink
Reply #6 - May 16th, 2006 at 9:53am
Print Post  
way to go Wink
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint