Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion 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 August 16th, 2011, 07:38 AM
Friend of Wrox
 
Join Date: Dec 2006
Posts: 104
Thanks: 9
Thanked 1 Time in 1 Post
Default Obtain BoundField value using e.CommandName

Ok ..

Upto now i have been a lowly classic asp runt hence name aspless..

Now i am moving to big boys teritory so should now in theory be asp.netless!!

A little nudge would be great!

I have an
Code:
asp:DetailsView ID="MemberDetailsView"
On selection of
Code:
 
asp:ButtonField ButtonType="Button" CommandName="ResetPassword"
i want to extract the value from
Code:
 
asp:BoundField DataField="Surname"
Using
Code:
Sub MemberDetailsView_ItemCommand(ByVal sender AsObject, ByVal e AsDetailsViewCommandEventArgs)
If e.CommandName = "ResetPassword"Then
'create session from DataField="Surname
End If
For ref i am using VB .. Any assist would be great!

Just can find a *simple example so far!!

Cheers Chaps!!
 
Old August 16th, 2011, 08:29 AM
Friend of Wrox
 
Join Date: Dec 2006
Posts: 104
Thanks: 9
Thanked 1 Time in 1 Post
Default Solved!

Dim lastname AsString = MemberDetailsView.Rows(2).Cells(1).Text





Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Validator to plain BoundField without an ItemTemplate nkem BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 May 29th, 2009 05:48 PM
GridView - Boundfield - DataFormatString snufse1 ASP.NET 2.0 Basics 0 September 23rd, 2008 05:56 PM
preserve spaces in boundfield Ivision ASP.NET 2.0 Basics 0 April 29th, 2008 03:16 AM
255 character limit in datagrid boundfield poogles ASP.NET 2.0 Basics 0 July 16th, 2007 04:18 PM
CommandName attribute crazy BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 June 4th, 2007 11:28 AM





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