Solved

Unable to get the tooltip to work with ajax updatepannel

Posted on 2010-08-19
2
422 Views
Last Modified: 2012-06-27
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
Comment
Question by:shieldguy
  • 2
2 Comments
 
LVL 8

Expert Comment

by:Fareed Ali Khan
ID: 33473385
Hi, please register your script through ScriptManager in ajax call instead of page's RegisterClientScript method.
0
 
LVL 8

Accepted Solution

by:
Fareed Ali Khan earned 500 total points
ID: 33473401
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question