Join Dotnetcodes DotnetCodes.com is online Discussion Forum for Software professionals . It lets you find friends around the world and Create professional network that share similar interests as you. Get help on ur projects by industry specialists. Also get answers to all ur technical/placement related querries.Get an edge over others.
Already MemberClick here to login
ASP.net MVC Interview Questions Answers Interview Questions
Serial Number in SSRS Articles
How to Print a Crystal Report direct to printer Articles
Get Started Developing for Android Apps with Eclipse Articles
Razor View Engine Interview Questions Answers Interview Questions
.Net framework 4.0 Interview Questions Answers Interview Questions
SQL server reporting services Interview Questions (SSRS) part 1 Articles
Whats New in ASP.NET 4.0 Part 2 Articles
Difference between Encapsulation and Abstraction Interview Questions
Explaining SDLC -System Development Life Cycle Articles
SPIRE PDF Library Articles
Infosys Interview Questions Interview Questions
Html5 interview questions and answers Interview Questions
Dynamic Menu using HTML List Tag and CSS in ASP.Net Articles
SharePoint 2010 interview Questions Answers Interview Questions
Submit Articles | More Articles..

How to Work With Dynamic ToolTip

Posted By: [email protected] on 10/18/2012 10:39:23 PM | Comments:3 [Forward This]
Well, a very good morning to everyone here in DotNet Codes, Please help me regarding ToolTip!!! Well my problem is I am Having Dynamic Button which is actually number of Rooms in a Hostel belonging to Hotel and Its Floor... Ex- Hostel A- having Two Floors i.e. A & B When user select Hostel A and Floor A- It displays No of Rooms in the form of dynamic buttons-- Now what I want is While hovering from one button to another dynamically- with the help of tool tip it will bind information related to that particular Room-- Like Room Name, Nos of Empty Bed- Attached/Vacant, Please Help me how can I bind data to tool tip-- I searched a lot but could not find the way to bind data from database to ToolTip.. Please help!!!!

Dear Friends, Dont forget to bookmark and submit your posting to social websites listed above.It will bring more visibility, buzz and fast action to attend your post

Responses to the Discussion: How to Work With Dynamic ToolTip
Reply by: [email protected] on: 11/7/2012 9:28:35 AM
Oh its very nice... thanks a lot for your reply.....
Reply by: mitu678 on: 11/7/2012 5:18:56 AM
Hi Satya, This is possible, below i show you a code that does something similar to what you need: Default.aspx: <%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Default</title> </head> <body> <form id="frmDefault" runat="server"> <asp:ScriptManager ID="smDefault" runat="server" /> <div> <asp:Label ID="lblTest" runat="server" Text="Test" /><br /> <asp:TextBox ID="txtTest" runat="server" /> </div> </form> </body> </html> Default.aspx.vb: Partial Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim scConnection As New SqlClient.SqlConnection("Data Source=ServerName;Initial Catalog=DataBaseName;Integrated Security=True") Try Dim strQuery As String = "SELECT Field FROM TableName;" Dim scCommand As New SqlClient.SqlCommand(strQuery, scConnection) scConnection.Open() lblTest.ToolTip = scCommand.ExecuteScalar txtTest.ToolTip = scCommand.ExecuteScalar Catch exMessage As Exception Response.Write("<!-- Error D001: " + exMessage.Message + ControlChars.NewLine + exMessage.StackTrace + "-->" & ControlChars.NewLine) Finally scConnection.Close() End Try End Sub End Class I really hope this can help you to solve your problem and if you have any questions regarding this issue do not hesitate to communicate with me.
Reply by: rakesh on: 10/28/2012 11:02:57 AM
Hi, You need to generate Html or string with all required details then simply set title property as generated string whenever you want. I hope it will help u.
 
You have not Logged In,  click here to Login
Reply Here
, I agree the terms and conditions of this website
  
  .NET Framework
  ADO.NET
  AJAX
  Android
  ASP.NET
  ASP.NET AJAX
  ASP.NET MVC
  Azure
  Best Practices
  BizTalk Server
  C++
  CSharp
  CSS
  DBMS
  Error and Resolution
  HTML
  IIS
  JAVA
  JavaScript
  JQwery
  JSP
  LINQ
  Management
  Mobile
  ODP.NET
  OOPS
  Oracle
  Others
  Pattern and Practices
  PHP
  SAP
  SEO
  SharePoint
  Silverlight
  Sql Server
  SSAS
  SSIS
  SSRS
  Survey
  UML
  UNIX
  VB
  VB.NET
  VS 2010
  WCF
  Web Analytics
  Windows Forms
  WPF
  WWF
  XML
  XSLT
  .NET Framework
  ADO.NET
  AJAX
  Android
  ASP.NET
  ASP.NET AJAX
  ASP.NET MVC
  Azure
  Best Practices
  BizTalk Server
  C++
  CSharp
  CSS
  DBMS
  Error and Resolution
  HTML
  IIS
  JAVA
  JavaScript
  JQwery
  JSP
  LINQ
  Management
  Mobile
  ODP.NET
  OOPS
  Oracle
  Others
  Pattern and Practices
  PHP
  SAP
  SEO
  SharePoint
  Silverlight
  Sql Server
  SSAS
  SSIS
  SSRS
  Survey
  UML
  UNIX
  VB
  VB.NET
  VS 2010
  WCF
  Web Analytics
  Windows Forms
  WPF
  WWF
  XML
  XSLT

Advertise About Us Private Policy Terms of use
All rights reserved to dotnetcodes. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks.
Best viewed at 1024 x 768 resolution with Internet Explorer 5.0 or Mozila Firefox 3.5 or Google Crome and higher