Ask a Question related to ASP.NET General, Design and Development.
-
Adhik #1
Return Value from SqlCommand in ASP.Net
Hi,
My application has frontend in ASP.Net, middle tier in vb.Net and backend
SQL Server.
I have created one function in Middle tier for adding any records by passing
Procedure Name and Parameters Array.
Here i am using SQLCommnd Object to Call procedure, to take return value
i.e. Id or flag of successful insert/update, I have added one
@retVal as integer as OUTPUT parameter. But if i didn't declare this @retVal
parameter in Procedure as OTUPUT parameter, then it gives error.
Before this is ASP and VB as middle tier, I dont need to declare output
parameter in procedure, just i have to call retrun at end of procedure which
retrun the reqired value.
What should i have to do this same to work with ASP.Net.
Hoping some solution.
Regards
Adhik
Adhik Guest
-
Retrieve result from SqlCommand
Dear developer, I'm developing a web service with VS .NET and using C#. And part of the webservice is to get data from database (by using... -
SqlConnection, SqlCommand
I'm trying to understand SqlConnection(), SqlCommand() For example. I use SqlConnection() as a parameter when I create a new SqlCommand. Then I... -
return xml
The following function is used in my webservice which returns a dataset. I now need to return the dataset as xml and have no idea how to do it.... -
goToNetPage, return or not return
hi, I have read in the director's help the netDone() command indicates whether a background loading operation (such as getNetText,... -
"Internal connection fatal error" when calling SQLCommand.ExecuteReader
We are getting this error intermittently (about 5-10 times an hour) from one of our applications. It is not restricted to any particular page or... -
Patrick Steele [MVP] #2
Re: Return Value from SqlCommand in ASP.Net
In article <eu$6JedTDHA.1556@TK2MSFTNGP10.phx.gbl>, [email]adhik@hotpop.com[/email]
says...See:> Hi,
>
> My application has frontend in ASP.Net, middle tier in vb.Net and backend
> SQL Server.
>
> I have created one function in Middle tier for adding any records by passing
> Procedure Name and Parameters Array.
> Here i am using SQLCommnd Object to Call procedure, to take return value
> i.e. Id or flag of successful insert/update, I have added one
> @retVal as integer as OUTPUT parameter. But if i didn't declare this @retVal
> parameter in Procedure as OTUPUT parameter, then it gives error.
>
> Before this is ASP and VB as middle tier, I dont need to declare output
> parameter in procedure, just i have to call retrun at end of procedure which
> retrun the reqired value.
>
> What should i have to do this same to work with ASP.Net.
"HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET"
[url]http://support.microsoft.com/default.aspx?scid=kb;en-us;308049[/url]
--
Patrick Steele
Microsoft .NET MVP
[url]http://weblogs.asp.net/psteele[/url]
Patrick Steele [MVP] Guest



Reply With Quote

