Click here to Skip to main content
       

ASP.NET

 
GeneralRe: Resource files show empty content PinmvpSandeep Mewara20-Jan-13 4:01 
QuestionViewState not working in UserControl PinmemberJassim Rahma19-Jan-13 6:29 
AnswerRe: ViewState not working in UserControl [modified] Pinmemberjkirkerx19-Jan-13 19:35 
AnswerRe: ViewState not working in UserControl PinmemberRichard Deeming21-Jan-13 3:07 
QuestionHow can we export data into csv format in c#.net PinmemberEr Atul Sharma19-Jan-13 0:31 
AnswerRe: How can we export data into csv format in c#.net PinmvpSandeep Mewara19-Jan-13 6:54 
QuestionSQL Server error PinmemberPritam Sankar Roy18-Jan-13 19:31 
AnswerRe: SQL Server error PinmemberNandakishorerao18-Jan-13 22:39 
AnswerRe: SQL Server error PinmemberShameel23-Jan-13 5:51 
QuestionHow to asp:Literal with more..? PinmemberJassim Rahma18-Jan-13 4:19 
AnswerRe: How to asp:Literal with more..? PinmemberParwej Ahamad18-Jan-13 8:13 
AnswerRe: How to asp:Literal with more..? PinmemberNandakishorerao18-Jan-13 22:46 
QuestionFindControl not working in Gridview ItemTemplate of Button PinmemberMember 974870717-Jan-13 20:42 
AnswerRe: FindControl not working in Gridview ItemTemplate of Button Pingroupchester_it2118-Jan-13 7:16 
<ItemTemplate>
 <asp:CheckBox ID="chkItemSelect" runat="server" />
 <asp:Label ID="lblname" Text='<%#Bind("name")%>' runat="server" />              
<asp:Button ID="btnFindx" runat="server" CommandName="Findx" Text="Do Some thing" CommandArgument='<%#Eval("ID")%>'></asp:Button>
                                        </ItemTemplate>
 
So, in event OnRowCommand(Code Behind) :
 
Protected Sub GridView_RowCommand(sender As [Object], e As GridViewCommandEventArgs)
	Select Case e.CommandName
		Case "Findx"
			MethodFindControlValue()
			Exit Select
	End Select
End Sub
 
..in MethodFindControlValue() :
Private Sub MethodFindControlValue()
	For Each row As GridViewRow In ApprovalGrid.Rows
		Dim chkItemSelect As CheckBox = CType(row.FindControl("chkItemSelect"), CheckBox)
		Dim chkItemSelect As Label = CType(row.FindControl("lblname"), CheckBox)
 
		Dim id As String = Convert.ToString(NameGridView.DataKeys(row.RowIndex).Value.ToString())
	Next
End Sub
 
 

hope this help you............Big Grin | :-D
QuestionRe: FindControl not working in Gridview ItemTemplate of Button PinmemberNandakishorerao18-Jan-13 22:48 
AnswerRe: FindControl not working in Gridview ItemTemplate of Button PinmemberKanwal Daud Gill21-Jan-13 21:23 
GeneralRe: FindControl not working in Gridview ItemTemplate of Button PinmemberNandakishorerao21-Jan-13 21:49 
QuestionTracking Emails PinmemberJaison Joe17-Jan-13 18:49 
Questionhow to redirect in a url? PinmemberJassim Rahma17-Jan-13 10:42 
AnswerRe: how to redirect in a url? PinmemberParwej Ahamad18-Jan-13 8:17 
GeneralRe: how to redirect in a url? PinmemberJassim Rahma18-Jan-13 8:36 
GeneralRe: how to redirect in a url? PinmemberParwej Ahamad18-Jan-13 18:23 
AnswerRe: how to redirect in a url? PinmemberRekhash19-Jan-13 0:01 
QuestionHow to add KML file to google Map using javascript in asp.net PinmemberTrivikramarao Vurubandi17-Jan-13 1:40 
QuestionExport data in Excel(xlsx) without using Excel Object from Datatable. Pinmembermca_rameshkumar16-Jan-13 23:00 
AnswerRe: Export data in Excel(xlsx) without using Excel Object from Datatable. Pingroupchester_it2118-Jan-13 7:52 
QuestionButton or ImageButton? PinmemberJassim Rahma16-Jan-13 10:40 
AnswerRe: Button or ImageButton? Pinmemberjkirkerx16-Jan-13 13:40 
QuestionGoogle Translate vb.net PinmemberDotNetFellow15-Jan-13 23:31 
AnswerRe: Google Translate vb.net PinmvpSandeep Mewara16-Jan-13 3:57 
Questionunzipping file in host ? Pinmemberjojoba201115-Jan-13 18:59 
AnswerRe: unzipping file in host ? PinmemberVani Kulkarni16-Jan-13 3:44 
QuestionRe: unzipping file in host ? Pinmemberjojoba201116-Jan-13 8:41 
QuestionProblem with MapPageRoute.. PinmemberJassim Rahma15-Jan-13 11:06 
AnswerRe: Problem with MapPageRoute.. PinmentorBrij15-Jan-13 18:30 
AnswerRe: Problem with MapPageRoute.. PinmvpRichard MacCutchan16-Jan-13 0:02 
Questionhow to install downloaded nested master page template??? PinmemberMember 876986514-Jan-13 4:25 
AnswerRe: how to install downloaded nested master page template??? PinmentorBrij15-Jan-13 19:10 
AnswerRe: how to install downloaded nested master page template??? PinmvpSandeep Mewara15-Jan-13 19:19 
QuestionA strange problem Pinmemberindian14313-Jan-13 23:00 
AnswerRe: A strange problem PinmentorAbhijit Jana14-Jan-13 8:52 
GeneralRe: A strange problem Pinmemberindian14314-Jan-13 14:15 
Questionhow to MapPageRoute this? PinmemberJassim Rahma13-Jan-13 11:48 
AnswerRe: how to MapPageRoute this? Pinmemberjkirkerx13-Jan-13 14:24 
QuestionPublishing files upon Build Pinmembernitin_ion12-Jan-13 3:08 
AnswerRe: Publishing files upon Build PinmvpSandeep Mewara12-Jan-13 8:32 
QuestionImage Export Issue Pinmemberashu_12311-Jan-13 7:54 
AnswerRe: Image Export Issue Pinmemberjkirkerx13-Jan-13 14:29 
Questioncreate Google Analytics site PinmemberJassim Rahma11-Jan-13 5:45 
AnswerRe: create Google Analytics site Pinmembermark merrens11-Jan-13 12:32 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 18 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid