How to retrieve a DetailsView

  • Thread starter Thread starter Jason Huang
  • Start date Start date
J

Jason Huang

Hi,

In the ASP.Net C# Web, I have a DeatailsView like this:

First Name: John
Last Name: Dole
SSN:XXXXXXXXX
Address: LA

I don't know how to retrieve the value of the 'LA'.
Would someone give me some advice?
Thanks for help.


Jason
 
Hello Jason,

Use DataControlField to extact the rows and get the latest one, where you
LA locates

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

JH> Hi,
JH>
JH> In the ASP.Net C# Web, I have a DeatailsView like this:
JH>
JH> First Name: John
JH> Last Name: Dole
JH> SSN:XXXXXXXXX
JH> Address: LA
JH> I don't know how to retrieve the value of the 'LA'.
JH> Would someone give me some advice?
JH> Thanks for help.
JH> Jason
JH>
 
Hello Jason,

AFAIK you need to use DataControlFieldCell
See sample there http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.datacontrolfieldcell.aspx

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

JH> Thanks Michael.
JH> But it only gets the "Address", not the "LA".
JH> "Michael Nemtsev" <[email protected]>
JH> glsD:[email protected]...
JH>
Hello Jason,

Use DataControlField to extact the rows and get the latest one, where
you LA locates

---
WBR, Michael Nemtsev [.NET/C# MVP]. My blog:
http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/
"The greatest danger for most of us is not that our aim is too high
and we miss it, but that it is too low and we reach it" (c)
Michelangelo

JH> Hi,
JH> JH> In the ASP.Net C# Web, I have a DeatailsView like this:
JH> JH> First Name: John
JH> Last Name: Dole
JH> SSN:XXXXXXXXX
JH> Address: LA
JH> I don't know how to retrieve the value of the 'LA'.
JH> Would someone give me some advice?
JH> Thanks for help.
JH> Jason
JH>
 
Back
Top