Click here to Skip to main content
15,903,385 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello sir.
i have a stored procedure which returns string as a out parameter. that string is
print 'Records are successfully inserted'
i want to print this message on a label in aspx page.
how to do this. any body plz help me.
thanking you.
Posted

Hi Sathish,
below are steps to retrieve value from outputparameter.

1. set direction of commandparameter to output.
2. execute command
3. label.text = commandparameter.value.toString().
 
Share this answer
 
Comments
sathish.jampala 29-Dec-10 23:57pm    
thankyou sir.
sathish.jampala 30-Dec-10 14:18pm    
hello sir. i tried what ever u say.
but dataset is displaying empty
 
Share this answer
 
Comments
Sandeep Mewara 30-Dec-10 0:38am    
Ok, I was about to write why the downvote. I can see now, why it was. Question asked for parameter return value from stored procedure to code and not code to SP.

Yet, I am compensating as you are new and trying to help. Keep going. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900