Click here to Skip to main content
15,923,557 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Compilation Error - "CS1513: } expected" Pin
badgrs24-May-07 23:41
badgrs24-May-07 23:41 
GeneralRe: Compilation Error - "CS1513: } expected" Pin
Blumen25-May-07 2:15
Blumen25-May-07 2:15 
QuestionStored Procedures - Return Value Pin
J Liang24-May-07 17:52
J Liang24-May-07 17:52 
AnswerRe: Stored Procedures - Return Value Pin
N a v a n e e t h24-May-07 18:13
N a v a n e e t h24-May-07 18:13 
GeneralRe: Stored Procedures - Return Value Pin
J Liang24-May-07 18:20
J Liang24-May-07 18:20 
AnswerRe: Stored Procedures - Return Value Pin
kiran kumar[Intelligroup]24-May-07 19:32
kiran kumar[Intelligroup]24-May-07 19:32 
GeneralRe: Stored Procedures - Return Value Pin
J Liang24-May-07 21:27
J Liang24-May-07 21:27 
AnswerRe: Stored Procedures - Return Value Pin
SimulationofSai24-May-07 19:47
SimulationofSai24-May-07 19:47 
CREATE PROCEDURE IsValidLogin<br />
(<br />
@username varchar(15) = NULL,<br />
@password varchar(12) = NULL ,<br />
@num_of_user INT = 0 --This means that it's an input parameter<br />
)<br />


Try
CREATE PROCEDURE IsValidLogin
(
@username varchar(15) = NULL,
@password varchar(12) = NULL ,
@num_of_user INT = 0 OUTPUT
)
--Your SET statement here
--No need for a RETURN statement

(OR)

In your C# code

int retVal;<br />
retVal = myCommand.ExecuteNonQuery();


Remember:
If you want any custom output from your SP, use an OUTPUT parameter. By default an SP returns 0 if it was successful and non-zero in case of failure. This must be used exclusively for error checking.




SG
GeneralRe: Stored Procedures - Return Value Pin
J Liang24-May-07 21:24
J Liang24-May-07 21:24 
GeneralRe: Stored Procedures - Return Value Pin
SimulationofSai24-May-07 23:51
SimulationofSai24-May-07 23:51 
Questionhow to store values to tables.... Pin
Member 387988124-May-07 17:43
Member 387988124-May-07 17:43 
AnswerRe: how to store values to tables.... Pin
Sherin Iranimose24-May-07 18:11
Sherin Iranimose24-May-07 18:11 
GeneralRe: how to store values to tables.... Pin
Member 387988124-May-07 18:38
Member 387988124-May-07 18:38 
GeneralRe: how to store values to tables.... Pin
Sherin Iranimose24-May-07 19:20
Sherin Iranimose24-May-07 19:20 
GeneralRe: how to store values to tables.... Pin
Member 387988124-May-07 19:36
Member 387988124-May-07 19:36 
GeneralRe: how to store values to tables.... Pin
Sherin Iranimose24-May-07 22:48
Sherin Iranimose24-May-07 22:48 
GeneralRe: how to store values to tables.... Pin
Member 387988124-May-07 22:59
Member 387988124-May-07 22:59 
AnswerRe: how to store values to tables.... Pin
N a v a n e e t h24-May-07 18:16
N a v a n e e t h24-May-07 18:16 
GeneralRe: how to store values to tables.... Pin
Member 387988124-May-07 18:40
Member 387988124-May-07 18:40 
GeneralRe: how to store values to tables.... [modified] Pin
N a v a n e e t h24-May-07 20:12
N a v a n e e t h24-May-07 20:12 
GeneralRe: how to store values to tables.... Pin
Member 387988124-May-07 20:18
Member 387988124-May-07 20:18 
GeneralRe: how to store values to tables.... Pin
N a v a n e e t h24-May-07 20:35
N a v a n e e t h24-May-07 20:35 
GeneralRe: how to store values to tables.... Pin
Member 387988124-May-07 22:38
Member 387988124-May-07 22:38 
Questionhow to get value selected in templatefiled of gridview Pin
mohd imran abdul aziz24-May-07 17:28
mohd imran abdul aziz24-May-07 17:28 
AnswerRe: how to get value selected in templatefiled of gridview Pin
Member 387988124-May-07 17:52
Member 387988124-May-07 17: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.