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

Discussion in 'ASP .Net' started by user, May 17, 2007.

  1. user

    user Guest

    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 !
     
    user, May 17, 2007
    #1
    1. Advertising

  2. user

    Masudur Guest

    On May 18, 2:01 am, "user" <> 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"];
    }
     
    Masudur, May 18, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. podong28
    Replies:
    1
    Views:
    509
    Brock Allen
    Apr 19, 2005
  2. msnews.microsoft.com

    GridView/AccessDataSource update

    msnews.microsoft.com, Jul 19, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    3,309
    msnews.microsoft.com
    Jul 19, 2005
  3. nicholas
    Replies:
    1
    Views:
    1,444
  4. =?Utf-8?B?QWxlc3NhbmRybw==?=

    AccessDataSource, help please;.

    =?Utf-8?B?QWxlc3NhbmRybw==?=, Jan 16, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    370
    =?Utf-8?B?QWxlc3NhbmRybw==?=
    Jan 16, 2006
  5. Feege
    Replies:
    0
    Views:
    490
    Feege
    Dec 20, 2005
Loading...

Share This Page