Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 29th, 2004, 09:55 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default Pop up hint in a datagrid


For each row in a datagrid I want to have a cell that is
either a button or a text field. When the user either
clicks or hovers over the cell - how can I make it either
pop up some hint help or call a jscript function that
could do an alert ?

Any ideas?
TIA as always.

 
Old June 30th, 2004, 03:36 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

In The Grid_ItemCreated Event Write this code for A Select Button:

this is an example:

        If e.Item.ItemIndex <> -1 Then
            For Each cont As Control In e.Item.Cells(0).Controls
                If TypeOf (cont) Is Button Then
                 If Not cont Is Nothing Then
                    If CType(cont, Button).CommandName = "Select" Then
                 CType(cont, Button).Attributes("onclick") = "alert('its clicked');"
                     End If
                 End If
                End If
            Next
        End If





Ahmed Ali
Software Developer





Similar Threads
Thread Thread Starter Forum Replies Last Post
Form Hint buttons help bucky483 XSLT 0 June 21st, 2007 01:12 AM
Show hint in <option ? NilovSerge Javascript 0 May 16th, 2007 02:40 AM
READPAST Hint in SELECT statement won't work mike_abc SQL Server 2000 0 June 29th, 2005 08:08 AM
open a new pop-up from a pop-up crmpicco Javascript How-To 1 January 18th, 2005 10:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.