This could just be my lack of understanding about ASP.Net...
I'm using the Calendar control. When someone clicks on an appointment, I want to open a new browser window to a certain URL which I dynamically construct.
I can achieve this with Response.Redirect, but it won't open in a new window (this part is important for various reasons).
So the above code works great (except it won't open in a new window).When I try to change it using various tricks to open links in a new window, nothing seems to work. E.g.
It seems like the event handler executes code server side while i need to execute code client-side, but I don't know how to achieve my goal. Am I approaching the problem in a crazy manner? Is there an easier way to make double-clicking appointments open a new window with an arbitrary URL?
I'm using the Calendar control. When someone clicks on an appointment, I want to open a new browser window to a certain URL which I dynamically construct.
I can achieve this with Response.Redirect, but it won't open in a new window (this part is important for various reasons).
Protected
Sub
r_scheduler_AppointmentClick(sender
As
Object
, e
As
Telerik.Web.UI.SchedulerEventArgs)
Handles
r_scheduler.AppointmentClick
Response.Redirect("http://www.google.com",
False
)
End
Sub
So the above code works great (except it won't open in a new window).When I try to change it using various tricks to open links in a new window, nothing seems to work. E.g.
Response.Write(
"<script>"
)
Response.Write(
"window.open('http://www.google.com','_blank')"
)
Response.Write(
"</script>"
)
It seems like the event handler executes code server side while i need to execute code client-side, but I don't know how to achieve my goal. Am I approaching the problem in a crazy manner? Is there an easier way to make double-clicking appointments open a new window with an arbitrary URL?