?
Solved

Hyperlink size

Posted on 2006-06-08
5
Medium Priority
?
325 Views
Last Modified: 2012-08-13
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(hyperLink)



Can anyone tell me pls how to do set the width and height of the new web page.

Cheers
0
Comment
Question by:radhakrishan
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:svy
ID: 16862498
Well you can either have this in BookingPage.aspx:
<body onload="window.resizeTo(width, height)">
Or
.NavigateUrl = "window.open('BookingPage.aspx?id=" & xlrow.Item(8) & "','newBookingPage', 'width=500,height=400');";
0
 

Author Comment

by:radhakrishan
ID: 16862624
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
0
 
LVL 4

Accepted Solution

by:
svy earned 600 total points
ID: 16862894
.NavigateUrl = "javascript:window.open('BookingPage.aspx?id=" & xlrow.Item(8) & "','newBookingPage', 'width=500,height=400');void(0);";
0
 

Author Comment

by:radhakrishan
ID: 16865970
Hi Svy,

Havin tested the answer you gave it actually opens two windows instead of just one....

Any reasons why?
0
 

Author Comment

by:radhakrishan
ID: 16866181
Sorted out the problem..

cheers
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question