Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Popup window with Sql return values

Status
Not open for further replies.

strtech

Technical User
Oct 30, 2006
27
US
I have created a web application with Sql 2005 stored procedures. I want to show the return value messages in a pop up window in the application but have been unsuccessful in getting it to display. I have tested it in SQL Query Analyzer and it is working successfully.

How can I display it in the ASP.net application in a popup window?
 
What do you mean by return value? Do you mean an output variable that you are using to pass back a value, or the return code of the SP?
 
For example, in my stored procedure I'm checking for duplicate records before inserting the record in the table. The stored procedure returns a code of Return (5) and prints the message "A duplicate record has been found". I want that message to show up in a message box. I hope I have clarified it.
 
You will have to pass back message in an output paramater and display it.
 
>>I want that message to show up in a message box. I hope I have clarified it

AND

u need to use JavaScript for this. Check the alert() function of JS...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top