WebCallOut allows you to easily set text and title from server side.
In this topic, you will learn how to implement the scenario above.
To set text and title from server side
- Drag WebCallOut and ASP.NET Label controls from toolbox to the WebForm.
- Right click on WebCallOut control and choose Properties.
- Switch to Events and double click on Show server side event. It will automatically create an event called WebCallOut1_Show in server side.
- Put the following code in the event:
C#
Copy Codeprotected
void WebCallOut1_Show(object sender, ISNet.WebUI.WebDesktop.WebCallOutEventDataArgs e)
{
e.Text = Label1.Text;
}
- Save and run the project. When you hover the mouse to the label, it will display the callout like following:
