Hi,
Please help.
I got one article for the subject i mentioned above from this site but that is not sufficient for me.. I want some articles or tutorial which can give me knowledge how we can use stored procedure in asp.net like updating,deleting,manipulate tables using stored procedure.. Hope u guys r getting what i am asking.. Please share that with me.. i need it..
Thanks
Loading

Suthish NairRank #92 · 22.8K reputationPosted Mar 31, 2011, 8:31 PM EDT
DataGridView - Insert, Update, Delete and Retrieve records using stored procedure
Blocked AccountRank #403 · 6.2K reputationPosted Mar 31, 2011, 7:30 PM EDT
Take the reference of this article.
Using Stored Procedure in ASP.NET
Savita Joshi124 reputationPosted Mar 31, 2011, 8:01 PM EDT
As i have told in my post i have already read that article and that is not enough.. I guess u have not read my post completely..
Deepthi Aravind53 reputationPosted Mar 31, 2011, 9:56 PM EDT
Please try this code,
SqlCommand cmd=new SqlCommand();
cmd.CommandText="Stored Procedure Name";
cmd.CommandType=CommandType.StoredProcedure;
cmd.Parameters.Add("@Name", SqlDbType.VarChar, 50).Value = "Value passed into this field";//Input Parameter
cmd.Parameters.Add("@Age", SqlDbType.Int).Value ="Value passed into this field"; //Input Parameter
cmd.ExecuteNonQuery();
Regards,
Deepthi
Mayur GujrathiRank #666 · 3.6K reputationPosted Mar 31, 2011, 11:19 PM EDT
cmd.connection=con(sqlconnection variable not necessary to be con it must be what you have declared)