473,395 Members | 1,577 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to retrieve a DetailsView

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
Jun 14 '07 #1
3 1377
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

JHHi,
JH>
JHIn the ASP.Net C# Web, I have a DeatailsView like this:
JH>
JHFirst Name: John
JHLast Name: Dole
JHSSN:XXXXXXXXX
JHAddress: LA
JHI don't know how to retrieve the value of the 'LA'.
JHWould someone give me some advice?
JHThanks for help.
JHJason
JH>
Jun 14 '07 #2
Thanks Michael.
But it only gets the "Address", not the "LA".

"Michael Nemtsev" <ne*****@msn.com¼¶¼g©ó¶l¥ó·s»D:a2***************** **********@msnews.microsoft.com...
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

JHHi,
JHJHIn the ASP.Net C# Web, I have a DeatailsView like this:
JHJHFirst Name: John
JHLast Name: Dole
JHSSN:XXXXXXXXX
JHAddress: LA
JHI don't know how to retrieve the value of the 'LA'.
JHWould someone give me some advice?
JHThanks for help.
JHJason
JH>

Jun 14 '07 #3
Hello Jason,

AFAIK you need to use DataControlFieldCell
See sample there http://msdn2.microsoft.com/en-us/lib...fieldcell.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

JHThanks Michael.
JHBut it only gets the "Address", not the "LA".
JH"Michael Nemtsev" <ne*****@msn.com>
JHglsD:a2***************************@msnews.micros oft.com...
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

JHHi,
JHJHIn the ASP.Net C# Web, I have a DeatailsView like this:
JHJHFirst Name: John
JHLast Name: Dole
JHSSN:XXXXXXXXX
JHAddress: LA
JHI don't know how to retrieve the value of the 'LA'.
JHWould someone give me some advice?
JHThanks for help.
JHJason
JH>

Jun 14 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Jim Hammond | last post by:
I am passing the whole object instead or parameters in my select and update methods. I can get the updated object if I set UpdateMethod, let ASP.NET autogenerate an update button, and then press...
1
by: sck10 | last post by:
Hello, I am trying to change a value when a user goes into edit mode on a DetailsView control. I am trying to use the following, but can not figure out how to get to the bound field...
4
by: Frits van Soldt | last post by:
Hello, I hope somebody can help me with this! I have 2 listboxes in the edititemtemplate of a detailsview. In the databound event of the detailsview I would like to fill the listboxes...
0
by: george_Martinho | last post by:
It seems that the ASP.NET Microsoft team didn't think about this!! The profilemanager class has the following methods: - DeleteInactiveProfiles. Enables you to delete all profiles older than a...
3
by: chrisn | last post by:
Hi, (Using ASP.Net 2.0) I have a wizard control inside a detailsview control. When I attempt to call the InsertItem method on the DetailsView I get an error "ObjectDataSource...
4
by: Kjell Arne | last post by:
Hi! I have a detailsview control in a webpart with some templated fields on. I set the ValidationGroup property to som value on these fields to distinguish from other web parts on the page....
2
by: rockdale | last post by:
Hi, I am upgrading my asp.net 1.x to asp.net 2.0. In my page I have a datagrid and a group of textbox, dropdownlist, checkbox... etc. the datagrid and the group of controls are hooked up - when...
0
by: Andreas Wöckl | last post by:
HI Group! I am really getting crazy with my DetailsView. I have the following code initializing the Page where the DetailsView is in it: If Session("firmaNr") = 0 Then...
1
by: needhelp1 | last post by:
I have gridview with a detailsview below. When I click on 'New' in brings up the DetailsView for inserting. When I click on 'Edit' in does not brink up the DetailsView. What am I doing wrong? I...
5
by: =?Utf-8?B?bXBhaW5l?= | last post by:
Hello, I am completely lost as to why I can't update a DropDownList inside a DetailsView after I perform an insert into an object datasource. I tried to simply it down to the core demostration:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.