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
Chevy Mark Sunderland
NA
188
167.3k
How to call function in code-behind in c# with jquery?
Mar 25 2014 9:41 AM
How to call function in code-behind in c# with jquery?
I have this code behind :
protected void btn_Click(object sender, EventArgs e)
{
if (btn != null && btn.Checked)
{
Response.Redirect(string.Format("get.aspx?a={0}&b={1}",
a.SelectedValue, b.SelectedValue));
}
}
And I have a Checkbox :
<asp:CheckBox ID="btn" runat="server" Checked="false" />
I am tryong to call that function btn_Click in jquery :
$(document).ready(function () {
if ($('#btn').is(':checked')) {
$(button).trigger("btn_Click");
}
});
But not worked!!!
Why? Thanks.
Reply
Answers (
4
)
How to add and delete controls dynamically on runtime ?
how to track user information (pages he visited, task perfor