Connect to Stored procedure in sql using ADO.NET FROM ASP.NET c#
-
I am trying to write a code for a web site using C# to pass parameters from from1.aspx to a class1.cls and then pass it again to another cls then execute it in a third class to added to stored procedure in Sql server. example: user insert first name in front end form1.aspx. then firstname=txtfirstname.Text in form1.cs then pass firstname parameter to another class called member.cls. and then pass again to third class called EXECUTE.cs class. to insert the record to stored procedure in Sql Database. my problem is between member.cls and execute.cls :confused: Thanks.
-
I am trying to write a code for a web site using C# to pass parameters from from1.aspx to a class1.cls and then pass it again to another cls then execute it in a third class to added to stored procedure in Sql server. example: user insert first name in front end form1.aspx. then firstname=txtfirstname.Text in form1.cs then pass firstname parameter to another class called member.cls. and then pass again to third class called EXECUTE.cs class. to insert the record to stored procedure in Sql Database. my problem is between member.cls and execute.cls :confused: Thanks.
I assume these are cs, not cls files ? Their names don't really matter, but it all sounds very convoluted. What's the problem you're having ? You just want to pass parameters from class to class ? If you posted some code, perhaps we could get an idea of what's going on ? Is all this stuff irrelevant, and your problem is just how to call a stored proc from C# ? If so, I answered that question below earlier today. Christian Graus - Microsoft MVP - C++