Click here to Skip to main content
15,881,424 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: URGENT!! How to embed excel in Webpage? Pin
Bradml9-Apr-07 22:41
Bradml9-Apr-07 22:41 
GeneralRe: URGENT!! How to embed excel in Webpage? Pin
neo_60539-Apr-07 23:03
neo_60539-Apr-07 23:03 
AnswerRe: URGENT!! How to embed excel in Webpage? Pin
neo_605310-Apr-07 20:51
neo_605310-Apr-07 20:51 
QuestionHow can make a flash banner as a ref link? Pin
Omar Mallat9-Apr-07 21:23
professionalOmar Mallat9-Apr-07 21:23 
AnswerRe: How can make a flash banner as a ref link? Pin
Bradml9-Apr-07 22:12
Bradml9-Apr-07 22:12 
GeneralRe: How can make a flash banner as a ref link? Pin
haggenx16-Apr-07 12:12
haggenx16-Apr-07 12:12 
QuestionHow can I determine the right button image for my custom combobox button for the selected desktop motif? [modified] Pin
howardjr9-Apr-07 14:23
howardjr9-Apr-07 14:23 
QuestionDataGrid - Selected Item problem Pin
No-e9-Apr-07 7:08
No-e9-Apr-07 7:08 
I am having difficulty with a detail button on a datagrid, I just need a button or something next to each record I list, when the user clicks it I give them more detail or something. I immediatly went to the Microsoft help and found an example where they do this:

<asp:datagrid id="ItemsGrid" bordercolor="Black" showfooter="False" cellpadding="3" cellspacing="0" headerstyle-backcolor="#aaaadd" onselectedindexchanged="IndexChange_Command" runat="server">
<columns>
<asp:buttoncolumn text="Select" commandname="Select">



they declare this:

Sub IndexChange_Command(sender As Object, e As EventArgs)
' Display the details of the selected item.
DetailsLabel.Text = _
"Item Number: " & ItemsGrid.SelectedItem.Cells(1).Text & "
" & _
"Description: " & ItemsGrid.SelectedItem.Cells(2).Text & "
" & _
"Price: $" & ItemsGrid.SelectedItem.Cells(3).Text & "
"
End Sub

I run their example and it works the IndexChange gets called when I click a link in the table. (I did not include all the detail where the fill the grid that works fine) so I decide to try the same thing and declare this:

<asp:datagrid id="DataGrid1" runat="server" width="959px" height="94px" caption="Lots Currently Running" allowsorting="True" allowpaging="True" allowcustompaging="True" onsortcommand="Sort_Grid" onselectedindexchanged="IndexChange_Command">
<columns> <asp:buttoncolumn text="Select" commandname="SelectCurrentLot" buttontype="PushButton">



And declare this:
Sub Select_CurrentLot(ByVal sender As Object, ByVal e As EventArgs)
' Display the details of the selected item.
DetailsLabel1.Text = "You Clicked " & DataGrid1.SelectedItem.Cells(1).Text
End Sub

My grid shows up, gets populated, but when I click the button nothing gets called... where oh where did I go wrong? I am new at this so there may be something else I am missing... BTW, the Sort_Grid works fine.

Thanks in advance

P.S. as a side question I am using VS .NET, I wss putting my code in XXX.aspx.VB, HTML and such in XXX.ASPX, the MS example has it all in one XXX.aspx with runat server directives) is there any particular reason for this?
AnswerRe: DataGrid - Selected Item problem Pin
kubben9-Apr-07 13:47
kubben9-Apr-07 13:47 
GeneralRe: DataGrid - Selected Item problem Pin
No-e10-Apr-07 2:40
No-e10-Apr-07 2:40 
GeneralRe: DataGrid - Selected Item problem Pin
kubben10-Apr-07 2:46
kubben10-Apr-07 2:46 
GeneralRe: DataGrid - Selected Item problem Pin
No-e10-Apr-07 5:54
No-e10-Apr-07 5:54 
QuestionCHECKBOX - GET VALUE USING RECORDSET FIELD Pin
hifiger20049-Apr-07 6:45
hifiger20049-Apr-07 6:45 
QuestionServer not remembering Session Variables Pin
MaxRelaxman9-Apr-07 4:53
MaxRelaxman9-Apr-07 4:53 
AnswerRe: Server not remembering Session Variables Pin
Paddy Boyd10-Apr-07 5:22
Paddy Boyd10-Apr-07 5:22 
GeneralRe: Server not remembering Session Variables Pin
MaxRelaxman11-Apr-07 3:20
MaxRelaxman11-Apr-07 3:20 
AnswerRe: Server not remembering Session Variables Pin
Morantex11-Apr-07 8:44
Morantex11-Apr-07 8:44 
QuestionMonitering an internet connection of a system remotely Pin
kyreddy9-Apr-07 3:52
kyreddy9-Apr-07 3:52 
Questionjavascript search item Pin
Socheat.Net9-Apr-07 0:44
Socheat.Net9-Apr-07 0:44 
AnswerRe: javascript search item Pin
Bradml9-Apr-07 3:21
Bradml9-Apr-07 3:21 
GeneralRe: javascript search item Pin
Socheat.Net9-Apr-07 15:16
Socheat.Net9-Apr-07 15:16 
AnswerRe: javascript search item Pin
Guffa10-Apr-07 0:43
Guffa10-Apr-07 0:43 
GeneralRe: javascript search item Pin
Socheat.Net10-Apr-07 0:56
Socheat.Net10-Apr-07 0:56 
Questionmail from php Pin
hiral_shah8-Apr-07 23:35
hiral_shah8-Apr-07 23:35 
AnswerRe: mail from php [modified] Pin
Bradml9-Apr-07 2:41
Bradml9-Apr-07 2:41 

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.