Click here to Skip to main content
15,900,906 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionstored procedure Pin
baselanfouqa15-Dec-09 21:02
baselanfouqa15-Dec-09 21:02 
AnswerRe: stored procedure Pin
Abhijit Jana15-Dec-09 21:17
professionalAbhijit Jana15-Dec-09 21:17 
AnswerRe: stored procedure Pin
Abhishek Sur15-Dec-09 21:32
professionalAbhishek Sur15-Dec-09 21:32 
GeneralRe: stored procedure Pin
baselanfouqa15-Dec-09 21:48
baselanfouqa15-Dec-09 21:48 
AnswerRe: stored procedure Pin
Ashfield16-Dec-09 1:27
Ashfield16-Dec-09 1:27 
GeneralRe: stored procedure Pin
ESTAN16-Dec-09 10:20
ESTAN16-Dec-09 10:20 
GeneralRe: stored procedure Pin
Ashfield16-Dec-09 21:00
Ashfield16-Dec-09 21:00 
AnswerRe: stored procedure Pin
ESTAN16-Dec-09 10:15
ESTAN16-Dec-09 10:15 
Hi,

You could use Output parameters to show messages.

An example:

CREATE PROCEDURE [dbo].[PN_ChangePassword]
(
@UserID int,
@Password int,
@OldPassword int,
@NewPassword int,
@ConfirmPassword int,
@Message varchar(255) OUTPUT,
)
AS
BEGIN
SET NOCOUNT ON;

IF(NOT @OldPassword = @Password) BEGIN
SELECT @Message = 'Password does not match Original'
END
ELSE BEGIN
UPDATE BaselAnfouqa_Clients
SET Password = @NewPassword
WHERE UserID=@UserID AND Password=@OldPassword

SELECT @Message = 'OK'
END
END

So if you execute this stored procedure from code you should gather the output parameters so you can use them.
GeneralRe: stored procedure Pin
baselanfouqa20-Dec-09 1:36
baselanfouqa20-Dec-09 1:36 
QuestionAuto complete Extender in asp.net Pin
Any_India15-Dec-09 19:54
Any_India15-Dec-09 19:54 
AnswerRe: Auto complete Extender in asp.net Pin
Abhishek Sur15-Dec-09 21:38
professionalAbhishek Sur15-Dec-09 21:38 
GeneralRe: Auto complete Extender in asp.net [modified] Pin
Any_India15-Dec-09 22:22
Any_India15-Dec-09 22:22 
QuestionCompreValidator for Textbox and FileUpload Pin
anada888615-Dec-09 19:30
anada888615-Dec-09 19:30 
AnswerRe: CompreValidator for Textbox and FileUpload Pin
sashidhar15-Dec-09 20:18
sashidhar15-Dec-09 20:18 
GeneralRe: CompreValidator for Textbox and FileUpload Pin
anada888615-Dec-09 20:43
anada888615-Dec-09 20:43 
GeneralRe: CompreValidator for Textbox and FileUpload Pin
sashidhar15-Dec-09 21:46
sashidhar15-Dec-09 21:46 
GeneralRe: CompreValidator for Textbox and FileUpload Pin
anada888615-Dec-09 22:24
anada888615-Dec-09 22:24 
GeneralRe: CompreValidator for Textbox and FileUpload Pin
sashidhar15-Dec-09 22:35
sashidhar15-Dec-09 22:35 
GeneralRe: CompreValidator for Textbox and FileUpload Pin
anada888615-Dec-09 22:44
anada888615-Dec-09 22:44 
GeneralRe: CompreValidator for Textbox and FileUpload Pin
sashidhar15-Dec-09 22:46
sashidhar15-Dec-09 22:46 
GeneralRe: CompreValidator for Textbox and FileUpload Pin
anada888615-Dec-09 22:55
anada888615-Dec-09 22:55 
QuestionGridview edit cell Pin
Nekkantidivya15-Dec-09 18:20
Nekkantidivya15-Dec-09 18:20 
AnswerRe: Gridview edit cell Pin
Abhijit Jana15-Dec-09 18:30
professionalAbhijit Jana15-Dec-09 18:30 
QuestionBest ASP.NET Forum software and ASP.NET CMS? Pin
Shahdat Hosain15-Dec-09 18:15
Shahdat Hosain15-Dec-09 18:15 
AnswerRe: Best ASP.NET Forum software and ASP.NET CMS? Pin
Abhijit Jana15-Dec-09 18:31
professionalAbhijit Jana15-Dec-09 18:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.