hi.
i want to use javascript code then call to code behind method. im trying some thing but something is wrong not working . anybody can help me ?
- <script type="text/javascript">
- function checkMe() {
- alert("hello");
- PageMethods.Counting;
- }
- function onComplete(result, response, content) {
- alert(result);
- }
- </script>
when i click to <a href=""> tag how to call the below function ?
- string.Format(@"<a href='{0}' onclick='checkMe();' runat='server'>{1}</a>", newlink.NavigateUrl, dt.Rows[contID]["FAQTITLE"].ToString()) ;
and then my code behind method what i want to call
- protected void Counting(object sender, EventArgs e)
- {
-
- }