LIKE US ON FACE BOOK

Wednesday, 10 April 2013

Writing C# Code in JavaScript & Using Window.Location.href to reload Page in Javascript

Guys Here is Simplest Code ,I wrote it for my Work.


file.aspx:-

<input type="button" class="button" id="btncancle" onclick="javascript:cancle()"/>

Here is Java Script Used:--

function cancle(){
     window.location.href="Notification.aspx?ID=<%=base.WebsiteID%>";
}

Here <%=base.WebsiteID%>" is C# code called into javascript


Any Doubts Please do ask,Thanks Guys

No comments:

Post a Comment