Solved

Unable to get the tooltip to work with ajax updatepannel

Posted on 2010-08-19
2
399 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now