Click here to Skip to main content
15,357,358 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
function temp() {
       <% Response.Redirect("TS.aspx?PPStartDate="+HttpUtility.UrlEncode(hdnPP.Value),true)%>

<img alt="" class="style1" src="../Asps/Images/calendar.gif"   önclick="temp();" />

I'm calling this function on button onclick event from aspx which isn't working. Please share your ideas. Thanks

1 solution

You can use the javascript method name window.location to redirect to the other page in case you are just redirecting from one page to the other.

function temp() {

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900