• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 472
  • Last Modified:

Unable to get the tooltip to work with ajax updatepannel

I have code where i am showing the image, employee name and button in a datalist all inside a ajax updatepannel when user click on the button the tooltip will display that item is being added to the basket but the code behind function of click event is not running

I had added the code

Thanks
RadToolTipDataList.zip
0
shieldguy
Asked:
shieldguy
  • 2
1 Solution
 
Fareed Ali KhanCommented:
Hi, please register your script through ScriptManager in ajax call instead of page's RegisterClientScript method.
0
 
Fareed Ali KhanCommented:
Following sample code explains how to register script through scriptManager:
        ScriptManager sm = ScriptManager.GetCurrent(Page);

        if (sm.IsInAsyncPostBack) {

            StringBuilder sb = new StringBuilder();

            base.Render(new HtmlTextWriter(new StringWriter(sb)));

            string script = sb.ToString();

            ScriptManager.RegisterStartupScript(this, typeof(this.Page), UniqueID, script, false);

        }

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now