Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HTML
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
Posted

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.

Quote:
function temp() {
window.location("TS.aspx?PPStartDate="+document.getElementById("hdnPP").Value)
}
 
Share this answer
 

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