Click here to Skip to main content
15,881,588 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: menu Pin
Sandeep Mewara18-May-10 6:46
mveSandeep Mewara18-May-10 6:46 
GeneralRe: menu Pin
tek 200918-May-10 22:35
tek 200918-May-10 22:35 
QuestionUser Control Pin
MWRivera18-May-10 4:54
MWRivera18-May-10 4:54 
AnswerRe: User Control Pin
Not Active18-May-10 5:55
mentorNot Active18-May-10 5:55 
AnswerRe: User Control Pin
Dhyanga18-May-10 6:00
Dhyanga18-May-10 6:00 
GeneralRe: User Control Pin
Sandeep Mewara18-May-10 6:50
mveSandeep Mewara18-May-10 6:50 
GeneralRe: User Control Pin
MWRivera19-May-10 4:30
MWRivera19-May-10 4:30 
QuestionStored procedure Pin
Morgs Morgan18-May-10 4:39
Morgs Morgan18-May-10 4:39 
Hi guys,
I am executing a stored procedure from my webservices, i would like this store procedure to check is a userid exist and if it does then i would like to return a value saying so.
Here is a quick proc...i don't know how to carry on from here.
USE [reportserver]
GO

--Create the Procedure
CREATE PROCEDURE FindCurrentUser(@userid VARCHAR(10), @RowCount VARCHAR(10) output)
AS
BEGIN
	IF EXISTS(SELECT * FROM [UserProfile] WHERE [userid] = @userid)
	BEGIN
		RETURN @RowCount = 'Exists'
	END
	ELSE
	BEGIN
		RETURN @RowCount = 'NotExists'
	END
END

but it gives me an error:
'Incorrect syntax near '='
Any help please??

Thanks,
Morg
AnswerRe: Stored procedure Pin
R. Giskard Reventlov18-May-10 4:55
R. Giskard Reventlov18-May-10 4:55 
GeneralRe: Stored procedure Pin
Morgs Morgan18-May-10 5:53
Morgs Morgan18-May-10 5:53 
AnswerRe: Stored procedure Pin
T M Gray18-May-10 7:50
T M Gray18-May-10 7:50 
Questionscheduling in ASP.Net Pin
Amit Patel198518-May-10 4:14
Amit Patel198518-May-10 4:14 
AnswerRe: scheduling in ASP.Net Pin
John Bhajan18-May-10 4:41
John Bhajan18-May-10 4:41 
GeneralRe: scheduling in ASP.Net Pin
Sandeep Mewara18-May-10 6:55
mveSandeep Mewara18-May-10 6:55 
QuestionPrevent querystring from changing when using Response.Redirect or Server.Transfer Pin
Adam Brown 318-May-10 4:10
Adam Brown 318-May-10 4:10 
AnswerRe: Prevent querystring from changing when using Response.Redirect or Server.Transfer Pin
Sandeep Mewara18-May-10 6:59
mveSandeep Mewara18-May-10 6:59 
QuestionHow Can I Add MasterPage My Existing Projet Pin
nevzatagan18-May-10 3:37
nevzatagan18-May-10 3:37 
AnswerRe: How Can I Add MasterPage My Existing Projet Pin
Not Active18-May-10 3:52
mentorNot Active18-May-10 3:52 
AnswerRe: How Can I Add MasterPage My Existing Projet Pin
Sandeep Mewara18-May-10 7:12
mveSandeep Mewara18-May-10 7:12 
Questionwebsite got hacked Pin
Rohit16db18-May-10 2:10
Rohit16db18-May-10 2:10 
AnswerRe: website got hacked Pin
R. Giskard Reventlov18-May-10 2:29
R. Giskard Reventlov18-May-10 2:29 
GeneralRe: website got hacked Pin
Rohit16db18-May-10 3:01
Rohit16db18-May-10 3:01 
GeneralRe: website got hacked Pin
Ankur\m/18-May-10 3:33
professionalAnkur\m/18-May-10 3:33 
AnswerRe: website got hacked Pin
Sandeep Mewara18-May-10 9:43
mveSandeep Mewara18-May-10 9:43 
QuestionProblem in form view empty data template in c#.net [modified] Pin
sudheera p18-May-10 0:52
sudheera p18-May-10 0:52 

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.