Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Controls / October 2006

Tip: Looking for answers? Try searching our database.

how to show dialogbox when click on datagrid template column?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
chandu - 30 Oct 2006 10:55 GMT
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 - 30 Oct 2006 16:19 GMT
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 show a
> 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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.