A
AAaron123
I've learned a lot in this NG recently. I learned about <%# and about
UrlEncode but apparently not quite enough.
I want to open the page Events_View.aspx when a button is clicked, so I
tried:
<input type="button" value="Return to Event"
onclick="window.location='<%#Server.UrlEncode("Events_View.aspx") %>'" />
Debugging show that the resulting markup is:
<input type="button" value="Return to Event" onclick="window.location=''" />
Can you see what is wrong with my statement?
Also reading about window.location I don't see the difference between:
window.location="EventsView.aspx")
and
window.location.href="EventsView.aspx")
Is there a difference?
Thanks
UrlEncode but apparently not quite enough.
I want to open the page Events_View.aspx when a button is clicked, so I
tried:
<input type="button" value="Return to Event"
onclick="window.location='<%#Server.UrlEncode("Events_View.aspx") %>'" />
Debugging show that the resulting markup is:
<input type="button" value="Return to Event" onclick="window.location=''" />
Can you see what is wrong with my statement?
Also reading about window.location I don't see the difference between:
window.location="EventsView.aspx")
and
window.location.href="EventsView.aspx")
Is there a difference?
Thanks