New Members FAQ
Talk to Webmaster Tony John
inserting records through textboxes in c#
20 Sep 2008
Can anybody provide me the code for inserting values of two fields in to sql server table through textboxes using c# winforms. The two fields are Name and Age. The datatypes of the respective fields are varchar(50) and Int. The records should be inserted using stored procedures.
Here is the stored procedure i have written
create procedure [dbo].[insertrecords]
insert into emp(Name, Age) values (@Name, @Age)
Pls help me with the full c# code
Mohd. Azharuddin Ansari
Date: 22/Sep/2008 Rating:
Use following lines of code for data manupulation in dot net.
string strSql=StoredProcedureName+" '"+UserNameParameter+"',"
cmd = DatabaseConnectionObject.CreateCommand();
cmd.CommandType = CmdType;
cmd.CommandText = strSql;
Hope This code will help you
This thread is locked for new responses. Please post your comments and questions as a
If required, refer to the URL of this page in your
regarding .NET Certification
Hi Need Latest .NET Certification Dumps
Return to Discussion Forum
Post New Message
Is there any expert to solve this?
what is difference between String and string(data type) in c#?
what is a resource file...
Horizontal Scroll Bar for a listview control
Asheej T K
Last 7 Days
Awards & Gifts
Articles Rss Feeds
Forum Rss Feeds
Revenue Sharing sites
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.