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

  • Thread starter Thread starter user
  • Start date Start date
U

user

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 !
 
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"];
}
 
Back
Top