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
ashok kumar
NA
89
36.2k
unable to call the jquery function from codebehind,
Jul 27 2013 2:52 AM
hi,
iam using an jquery function which needs to be called in the codebehind,on buttonclick it should be invoked which should set the open the tooltip for the dropdown,
the problem is the dropdown is inside the updatepanel, so iam not able to call the jquery code.break point is reaching the validation function but the jqueryfunction is not invoked.when i remove the dropdown carsegment from update panel its working fine,pls help me out.
aspx:
function ddlcar() {
var controlNames = "<%= ddlCarSegment.ClientID%>";
$('#' + controlNames).tooltip("open");
}
protected void book_click(object sender, EventArgs e)
{
// ClientScript.RegisterClientScriptBlock(this.GetType(), "blah", "ddlcar();", true);
if (!Validation())
{
return;
}}
protected Boolean Validation()
{
if (ddlCarSegment.SelectedIndex == 0)
{
ScriptManager.RegisterStartupScript(this, GetType(), "modalscript",
" ddlcar();", true);
return false;
}
}
Reply
Answers (
14
)
RDLC report export to exel
how to assign values to controls in static method.