Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MouseOver event to retrieve data from database
Message
 
To
04/05/2005 19:27:58
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01010926
Message ID:
01011362
Views:
20
>Im using IE.. does not work for me..

It works for me! What version of IE are you using?

>Plus where do you put that code?
>is there a mouseover event?
You can put the code in the event, method or function in Codebehind of the ASPX page where you retrieve the data from the database. Below is a sample of such code in then Page_Load event:
private void Page_Load(object sender, System.EventArgs e)
{
*let's say that you've retrieved your data into a DataSet
*mybutton is a server side button on the page
 foreach(DataRow loRow in this.myDataSet.Tables["mytable"].Rows)
 {
  this.mybutton.Tooltip += loRow["myfield"].ToString().Trim() + ((char)13).ToString();
 }
}
You don't need to implement a MouseOver Event if you set the Tooltip property of the button.
When the ASPX page is processed and sent back the client(browser), the Tooltip becomes the Title of the HTML control e.g.:
<input type="submit" name="mybutton" value="send" Title="The tips">
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Previous
Reply
Map
View

Click here to load this message in the networking platform