If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Visual Basic > data source output parameters

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-25-09, 01:48
kpeeroo kpeeroo is offline
Registered User
 
Join Date: Jul 2009
Posts: 143
data source output parameters

Hi,

I am using VS 2008 and created a web page. I have a number of controls which I dragged and dropped on the form including the SQLDataSource. I used the properties table to set the input to 'stored procedure'. So in my aspx.vb file I just use the code:

mySQLDataSource.insert()

Everything works fine but now I need to get the output parameters from this data source. More precisely I need the newly inserted row to pass on to another data source control's stored procedure. Any help on this? thanks
Reply With Quote
  #2 (permalink)  
Old 11-25-09, 15:49
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
You can pull output parameters from the SqlDataSourceStatusEventArgs object by handling the SQLDataSource's Inserted() event.


msdn:

http://msdn.microsoft.com/en-us/libr....inserted.aspx
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #3 (permalink)  
Old 11-25-09, 17:26
kpeeroo kpeeroo is offline
Registered User
 
Join Date: Jul 2009
Posts: 143
hey teddy thanks so much man. so simple but so precious. cheers
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On