Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > how to show dialogbox when click on datagrid template column?

Reply
Thread Tools

how to show dialogbox when click on datagrid template column?

 
 
chandu
Guest
Posts: n/a
 
      10-30-2006
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.


 
Reply With Quote
 
 
 
 
marss
Guest
Posts: n/a
 
      10-30-2006

chandu написав:
> 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 showa
> dialog box with that enterd string.
> please can any one give answer as early as possible.


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 = e.Item.FindControl("TextBox1") as TextBox;
if (TextBox1 != null)
TextBox1.Attributes["onblur"] = "alert(this.value);";
}


"TextBox1" is ID of Texbox

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
dialogbox postback problem majid ASP .Net 4 04-17-2007 02:24 PM
dialogbox ? Chris ASP .Net 2 04-25-2004 04:02 PM
Datagrid on Dialogbox C ASP .Net Datagrid Control 0 01-14-2004 06:14 PM
Problem get result of a confirm dialogbox after some server code Billy ASP .Net 1 11-27-2003 03:34 AM



Advertisments