Click here to Skip to main content
16,011,702 members
Home / Discussions / Web Development
   

Web Development

 
Generalmeta tags Pin
Sarvesvara (BVKS) Dasa15-Feb-03 2:18
Sarvesvara (BVKS) Dasa15-Feb-03 2:18 
GeneralProblem with Html Dropdown and JavaScript Pin
Vasudevan Deepak Kumar14-Feb-03 19:35
Vasudevan Deepak Kumar14-Feb-03 19:35 
GeneralRe: Problem with Html Dropdown and JavaScript Pin
Jonavis19-Feb-03 22:26
Jonavis19-Feb-03 22:26 
Generaltwo simple questions: DataGrid Pin
devvvy14-Feb-03 18:06
devvvy14-Feb-03 18:06 
GeneralRe: two simple questions: DataGrid Pin
Jeremy Oldham15-Feb-03 6:24
Jeremy Oldham15-Feb-03 6:24 
GeneralRe: two simple questions: DataGrid Pin
Anonymous15-Feb-03 17:55
Anonymous15-Feb-03 17:55 
GeneralRe: two simple questions: DataGrid Pin
Jeremy Oldham15-Feb-03 18:21
Jeremy Oldham15-Feb-03 18:21 
GeneralRe: two simple questions: DataGrid Pin
Jeremy Oldham16-Feb-03 8:27
Jeremy Oldham16-Feb-03 8:27 
norm,

I looked at your first post again this morning and tested a few things on my server. I have also attached a good link to help with some of the javascript I used in the code below. Hope this helps. I used a datagrid with AutogenerateColumns set to True.

<br />
Private Sub DataGrid1_ItemDataBound(ByVal sender As Object, ByVal e As  System.Web.UI.WebControls.DataGridItemEventArgs) Handles DataGrid1.ItemDataBound<br />
        If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then<br />
            e.Item.Attributes.Add("onmouseover", "this.style.backgroundColor='Silver'")<br />
            e.Item.Attributes.Add("onmouseout", "this.style.backgroundColor='White'")<br />
            If e.Item.DataItem("ShowMobile") Then<br />
                e.Item.Cells(6).Text = "Yes"<br />
            Else<br />
                e.Item.Cells(6).Text = " "<br />
            End If<br />
        End If<br />
    End Sub<br />


In this sample I do two things. 1) If it is a Item or alternating Item, then I add the javascript to highlight the row onMouseOver and unhighlight onMouseOut. e.Item refers to the current row of the datagrid. 2) I check the "ShowMobile" column of the current row and if it is true as returned from the database, then I change the text of a cell to Yes, if not, I blank the text out of the cell. You should be able to do something similar for your Delete button.

Be very careful about the javascript as it seems to be case sensative.

http://aspalliance.com/Colt/Articles/Article3.aspx[^]

Good Luck!


Jeremy Oldham
Generaltried the code... same old problem remained unresolved... help! Pin
devvvy17-Feb-03 4:35
devvvy17-Feb-03 4:35 
GeneralRe: tried the code... same old problem remained unresolved... help! Pin
Jeremy Oldham17-Feb-03 14:29
Jeremy Oldham17-Feb-03 14:29 
GeneralRe: tried the code... same old problem remained unresolved... help! Pin
devvvy17-Feb-03 19:40
devvvy17-Feb-03 19:40 
GeneralRe: tried the code... same old problem remained unresolved... help! Pin
devvvy17-Feb-03 19:54
devvvy17-Feb-03 19:54 
GeneralHelp! error: Object required "this" Pin
devvvy17-Feb-03 22:13
devvvy17-Feb-03 22:13 
GeneralRe: tried the code... same old problem remained unresolved... help! Pin
Jeremy Oldham18-Feb-03 6:47
Jeremy Oldham18-Feb-03 6:47 
GeneralRe: tried the code... same old problem remained unresolved... help! Pin
devvvy18-Feb-03 13:04
devvvy18-Feb-03 13:04 
GeneralRe: tried the code... same old problem remained unresolved... help! Pin
devvvy18-Feb-03 15:24
devvvy18-Feb-03 15:24 
GeneralRe: two simple questions: DataGrid Pin
devvvy17-Feb-03 20:43
devvvy17-Feb-03 20:43 
QuestionAdding video to the Web page?? Pin
Kant14-Feb-03 13:26
Kant14-Feb-03 13:26 
AnswerRe: Adding video to the Web page?? Pin
devvvy17-Feb-03 4:30
devvvy17-Feb-03 4:30 
QuestionHow does one go about proposing a new HTML tag? Pin
Ray Cassick13-Feb-03 5:18
Ray Cassick13-Feb-03 5:18 
AnswerRe: How does one go about proposing a new HTML tag? Pin
leppie13-Feb-03 6:56
leppie13-Feb-03 6:56 
GeneralRe: How does one go about proposing a new HTML tag? Pin
Ray Cassick13-Feb-03 6:59
Ray Cassick13-Feb-03 6:59 
AnswerRe: How does one go about proposing a new HTML tag? Pin
markkuk13-Feb-03 11:52
markkuk13-Feb-03 11:52 
GeneralProblem connecting to Access database Pin
Chris LaQuerre13-Feb-03 3:12
Chris LaQuerre13-Feb-03 3:12 
GeneralRe: Problem connecting to Access database Pin
palbano13-Feb-03 5:18
palbano13-Feb-03 5:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.