Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9023627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:48:23+00:00 2026-06-16T05:48:23+00:00

I want to Create dynamically, custom Tooltips like this or this from code Behind,

  • 0

I want to Create dynamically, custom Tooltips like this or this from code Behind, this is what I ‘ve got so far.

 public void printSubjects()
{
    SqlConnection con = new System.Data.SqlClient.SqlConnection();
    con.ConnectionString = ConfigurationManager.ConnectionStrings["beta"].ConnectionString;

    SqlDataAdapter da = new SqlDataAdapter("select SUBJECT_ID,X_COOR,Y_COOR from M_SUBJECT WHERE TERRITORY_ID =" + Convert.ToInt32(ddMaps.SelectedItem.Value) + " AND X_COOR !='" + 0 + "'", con);
    DataSet ds = new DataSet();
    da.Fill(ds, "SubjectLinked");
    points = new Button[ds.Tables[0].Rows.Count];

    for (int i = 0; i < ds.Tables[0].Rows.Count; i++ )
    {
        points[i] = new Button();
        points[i].CssClass = "fixPoint";
        points[i].Style.Add("top", ds.Tables[0].Rows[i]["Y_COOR"].ToString() + "px");
        points[i].Style.Add("left", ds.Tables[0].Rows[i]["X_COOR"].ToString() + "px");

        SqlDataAdapter daII = new SqlDataAdapter("select USER_NAME from I_SUBJECT WHERE ID =" + Convert.ToInt32(ds.Tables[0].Rows[i]["SUBJECT_ID"].ToString()) + "", con);
        DataSet dsII = new DataSet();
        daII.Fill(dsII, "SubjectName");

        points[i].ToolTip = dsII.Tables[0].Rows[0]["USER_NAME"].ToString();


        points[i].Click += new EventHandler(deleteLink_Click);

        myID.Controls.Add(points[i]);
    }

}

And this is the result enter image description here

How to implement jquery qtip or ajax hover menu or anything else in order to add Subject Image and Other Subject Info inside each Tooltip from Code behind..?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T05:48:24+00:00Added an answer on June 16, 2026 at 5:48 am

    Finally I ended up using ASPNetToolTip. In the .cs file I made an HtmlTable with Subject’s Title(Label) and Image(img) and then I passed it to the AspNetToolTip and that did the trick.
    I didn’t bother with any Javascript or Html code, all the code was written in C#.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to allow the user to create custom screens dynamically by selecting from
How dan I dynamically create some public properties on a custom webcontrol. For example,
I want to create a custom template engine like velocity or freemarker which will
I have a custom RelativeLayout, where i want to dynamically create Rectangles. They arent
Current in code-behind, I dynamically create a WPF Image control and bind the source
I want to dynamically create instance method of child class through class method of
I want to dynamically create object of HtmlDivElement in my jsf managed bean and
I want to dynamically create controls in my bean. I am using JSF 2.0
Im trying to create a TableLayout dynamically. I want to create rows and columns
I want to be able to dynamically create ViewControllers based on a JSON file.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.