Click here to Skip to main content
12,623,903 members (28,456 online)
   

ASP.NET

 
QuestionSQL Server error Pin
Pritam Sankar Roy18-Jan-13 19:31
memberPritam Sankar Roy18-Jan-13 19:31 
AnswerRe: SQL Server error Pin
Nandakishorerao18-Jan-13 22:39
memberNandakishorerao18-Jan-13 22:39 
AnswerRe: SQL Server error Pin
Shameel23-Jan-13 5:51
memberShameel23-Jan-13 5:51 
QuestionHow to asp:Literal with more..? Pin
Jassim Rahma18-Jan-13 4:19
memberJassim Rahma18-Jan-13 4:19 
AnswerRe: How to asp:Literal with more..? Pin
Parwej Ahamad18-Jan-13 8:13
memberParwej Ahamad18-Jan-13 8:13 
AnswerRe: How to asp:Literal with more..? Pin
Nandakishorerao18-Jan-13 22:46
memberNandakishorerao18-Jan-13 22:46 
QuestionFindControl not working in Gridview ItemTemplate of Button Pin
Member 974870717-Jan-13 20:42
memberMember 974870717-Jan-13 20:42 
AnswerRe: FindControl not working in Gridview ItemTemplate of Button Pin
chester_it2118-Jan-13 7:16
groupchester_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")%>'>

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 Pin
Nandakishorerao18-Jan-13 22:48
memberNandakishorerao18-Jan-13 22:48 
AnswerRe: FindControl not working in Gridview ItemTemplate of Button Pin
Kanwal Daud Gill21-Jan-13 21:23
memberKanwal Daud Gill21-Jan-13 21:23 
GeneralRe: FindControl not working in Gridview ItemTemplate of Button Pin
Nandakishorerao21-Jan-13 21:49
memberNandakishorerao21-Jan-13 21:49 
QuestionTracking Emails Pin
Jaison Joe17-Jan-13 18:49
memberJaison Joe17-Jan-13 18:49 
Questionhow to redirect in a url? Pin
Jassim Rahma17-Jan-13 10:42
memberJassim Rahma17-Jan-13 10:42 
AnswerRe: how to redirect in a url? Pin
Parwej Ahamad18-Jan-13 8:17
memberParwej Ahamad18-Jan-13 8:17 
GeneralRe: how to redirect in a url? Pin
Jassim Rahma18-Jan-13 8:36
memberJassim Rahma18-Jan-13 8:36 
GeneralRe: how to redirect in a url? Pin
Parwej Ahamad18-Jan-13 18:23
memberParwej Ahamad18-Jan-13 18:23 
AnswerRe: how to redirect in a url? Pin
Rekhash19-Jan-13 0:01
memberRekhash19-Jan-13 0:01 
QuestionHow to add KML file to google Map using javascript in asp.net Pin
Trivikramarao Vurubandi17-Jan-13 1:40
memberTrivikramarao Vurubandi17-Jan-13 1:40 
QuestionExport data in Excel(xlsx) without using Excel Object from Datatable. Pin
mca_rameshkumar16-Jan-13 23:00
membermca_rameshkumar16-Jan-13 23:00 
AnswerRe: Export data in Excel(xlsx) without using Excel Object from Datatable. Pin
chester_it2118-Jan-13 7:52
groupchester_it2118-Jan-13 7:52 
QuestionButton or ImageButton? Pin
Jassim Rahma16-Jan-13 10:40
memberJassim Rahma16-Jan-13 10:40 
AnswerRe: Button or ImageButton? Pin
jkirkerx16-Jan-13 13:40
memberjkirkerx16-Jan-13 13:40 
QuestionGoogle Translate vb.net Pin
DotNetFellow15-Jan-13 23:31
memberDotNetFellow15-Jan-13 23:31 
AnswerRe: Google Translate vb.net Pin
Sandeep Mewara16-Jan-13 3:57
mvpSandeep Mewara16-Jan-13 3:57 
Questionunzipping file in host ? Pin
jojoba201115-Jan-13 18:59
memberjojoba201115-Jan-13 18:59 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.161128.1 | Last Updated 3 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid