TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ekrem Tapan
NA
967
81.2k
use javascript calling code behind function.
Jun 20 2016 10:15 PM
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)
{
//my code is here
}
Reply
Answers (
5
)
how to install zebra scanner in system , step by step proc
Desktop Application Design