How to detect return value from stored procedure used by a Details

Discussion in 'ASP .Net' started by =?Utf-8?B?QmlzaG95?=, Dec 24, 2006.

  1. Hi all,
    I have an asp.net 2.0 web site with a DetailsView control to select and
    insert data from database.
    I made the insert statement for that DetailsView by a stored procedure.
    I made some logic in the stored procedure so it returns a value in certain
    cases.
    How to detect the return value from that stored procedure that is used by
    the DetailsView control.

    Many Thanks,
    Bishoy
    =?Utf-8?B?QmlzaG95?=, Dec 24, 2006
    #1
    1. Advertising

  2. You need to add pass a parameter to your code that talks to the stored
    procedure. This parameter is always the first one (position 0 in the array).
    This is always an integer value. The name of the parameter should always be
    @return_value.


    --

    Hope this helps,
    Mark Fitzpatrick
    Former Microsoft FrontPage MVP 199?-2006



    "Bishoy" <> wrote in message
    news:...
    > Hi all,
    > I have an asp.net 2.0 web site with a DetailsView control to select and
    > insert data from database.
    > I made the insert statement for that DetailsView by a stored procedure.
    > I made some logic in the stored procedure so it returns a value in certain
    > cases.
    > How to detect the return value from that stored procedure that is used by
    > the DetailsView control.
    >
    > Many Thanks,
    > Bishoy
    Mark Fitzpatrick, Dec 24, 2006
    #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. Neo Chou
    Replies:
    1
    Views:
    760
  2. Paul
    Replies:
    1
    Views:
    364
    =?Utf-8?B?UmFtaXJvIENhbGRlcm9u?=
    Jan 19, 2004
  3. Nick
    Replies:
    8
    Views:
    3,259
  4. philip
    Replies:
    2
    Views:
    11,550
    bruce barker \(sqlwork.com\)
    Aug 10, 2006
  5. Replies:
    1
    Views:
    382
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Jun 18, 2007
Loading...

Share This Page