Groups | Blog | Home
all groups > asp.net webcontrols > october 2006 >

asp.net webcontrols : how to show dialogbox when click on datagrid template column?


chandu
10/30/2006 12:00:00 AM
hai,
i am using datagrid template column ,it is text box column.
if i put any thing in that cell and when i leave that cell i need to show a
dialog box with that enterd string.
please can any one give answer as early as possible.

marss
10/30/2006 7:19:56 AM

chandu =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=B2:
[quoted text, click to view]

Add client-side function call in the grid item data bound event handler

private void DataGrid1_ItemDataBound(object sender,
System.Web.UI.WebControls.DataGridItemEventArgs e)
{
TextBox TextBox1 =3D e.Item.FindControl("TextBox1") as TextBox;
if (TextBox1 !=3D null)
TextBox1.Attributes["onblur"] =3D "alert(this.value);";
}


"TextBox1" is ID of Texbox
AddThis Social Bookmark Button