Custom User Control in ToolTip

2 posts, 0 answers
  1. Rudie Chiu
    Rudie Chiu avatar
    9 posts
    Member since:
    Mar 2010

    Posted 28 Feb 2011 Link to this post

    Hi, I am trying to use RadToolTipManager to create on demand tooltip content which is dependant on the value of a particular column on mouse over.... as a starting point I am attempting to recreate as much of the example project - (http://demos.telerik.com/aspnet-ajax/tooltip/examples/loadondemand/defaultcs.aspx) in my own as possible. However I'm getting a ' Type 'ProductDetails' is not defined ' error in the following line of the code behind:

    Dim details As ProductDetails = DirectCast(ctrl, ProductDetails)

    I have tried putting the ascx file in my app_folder, the root, I'm pretty sure I've got all the relevant imports right and registrations at the top of the aspx file... am probably missing something obvious but can't figure out what...

    Thanks in advance,

    Rudie
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 03 Mar 2011 Link to this post

    Hello Rudie Chiu,

    I am not sure what causes the issue but here are some assumptions:

    1) Make sure you have the following reference in the page's aspx and that the Src path is the correct one for your particular case:


     <%@ Register Src="ProductDetails.ascx" TagName="ProductDetails" TagPrefix="uc1" %>

    2) Make sure that the user conrol compiles correctly - e.g put it in teh markup in a separate page and see whether it works.

    3) Since this is general ASP.NET knowledge and not directly related to RadControls you can also search the net, e.g start below:

     
    http://www.google.com/#sclient=psy&hl=en&rlz=1W1ADFA_en&q=loadcontrol+type+undefined&rlz=1W1ADFA_en&aq=f&aqi=&aql=&oq=&pbx=1&bav=on.2,or.&fp=ee7ae51cefa9981c

    Greetings,
    Svetlina
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top