Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > !! How to read a value in a detailsview or in an accessdatasource ??

Reply
Thread Tools

!! How to read a value in a detailsview or in an accessdatasource ??

 
 
user
Guest
Posts: n/a
 
      05-17-2007
Hello,
With ASP.NET 2, i would like to have (to read) a value in a detailsview or
from the accessdatasource that depend on it ..

What's the code for that ?

I would like to use it from the loadpage event ...

Thanks a lot !

 
Reply With Quote
 
 
 
 
Masudur
Guest
Posts: n/a
 
      05-18-2007
On May 18, 2:01 am, "user" <(E-Mail Removed)> wrote:
> Hello,
> With ASP.NET 2, i would like to have (to read) a value in a detailsview or
> from the accessdatasource that depend on it ..
>
> What's the code for that ?
>
> I would like to use it from the loadpage event ...
>
> Thanks a lot !


//here please choose from what mode you like to fetch value
if ( DetailsView1.DefaultMode == DetailsViewMode.ReadOnly )
{
DataRowView drv = DetailsView1.DataItem;
string p = (string )drv["Propertyname"];
}

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How to specify the password for access database file while using AccessDataSource? <eom> nicholas ASP .Net 1 01-12-2006 02:59 PM
DetailsView - Changing to Insert Mode (Not By Using the Insert Button In the DetailsView Control) Feege ASP .Net Web Controls 0 12-20-2005 12:28 AM
GridView/AccessDataSource update msnews.microsoft.com ASP .Net 0 07-18-2005 11:01 PM
[Q]asp.net 2.0 + Gridview +AccessDataSource podong28 ASP .Net 1 04-19-2005 04:50 PM



Advertisments