radhakrishan
asked on
Hyperlink size
Hello Experts,
I dynamically designing hyperlinks for my calendar control as follows:
Dim hyperLink As System.Web.UI.WebControls. HyperLink
hyperLink = New System.Web.UI.WebControls. HyperLink
With hyperLink
.ID = "myNewHyperLink"
.Text = "<BR>" + xlrow.Item(0) + "- All Day"
.NavigateUrl = "BookingPage.aspx?id=" & xlrow.Item(8)
End With
e.Cell.Controls.Add(hyperL ink)
Can anyone tell me pls how to do set the width and height of the new web page.
Cheers
I dynamically designing hyperlinks for my calendar control as follows:
Dim hyperLink As System.Web.UI.WebControls.
hyperLink = New System.Web.UI.WebControls.
With hyperLink
.ID = "myNewHyperLink"
.Text = "<BR>" + xlrow.Item(0) + "- All Day"
.NavigateUrl = "BookingPage.aspx?id=" & xlrow.Item(8)
End With
e.Cell.Controls.Add(hyperL
Can anyone tell me pls how to do set the width and height of the new web page.
Cheers
ASKER
Hi,
.NavigateUrl = "window.open('BookingPage. aspx?id=" & xlrow.Item(8) & "','newBookingPage', 'width=500,height=400');";
Doing this throws an exception error...
what very strange happening is when i click on those hyperlinks it directing the page rather then opening a new page, can u pls tell me how shall i make it open in a
new window and not the current window....
with the peice of code i wrote above.
thnx
.NavigateUrl = "window.open('BookingPage.
Doing this throws an exception error...
what very strange happening is when i click on those hyperlinks it directing the page rather then opening a new page, can u pls tell me how shall i make it open in a
new window and not the current window....
with the peice of code i wrote above.
thnx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Svy,
Havin tested the answer you gave it actually opens two windows instead of just one....
Any reasons why?
Havin tested the answer you gave it actually opens two windows instead of just one....
Any reasons why?
ASKER
Sorted out the problem..
cheers
cheers
<body onload="window.resizeTo(wi
Or
.NavigateUrl = "window.open('BookingPage.