Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

C# .NET - INSERT Statement with parameter using TableAdapter Expand / Collapse
Author
Message
Posted Monday, March 10, 2014 10:38 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Tuesday, May 13, 2014 8:33 AM
Points: 50, Visits: 129
Hello,

I have a Windows Form and am trying to pass a value as part of my INSERT statement. I have one field that requires a new value which is entered in the dataset. Then when clicking update, the row writes to the database.

Here is my line of code:

this.ScriptParametersTableAdapter.Insert("abc", txtScriptType, txtConfigField, txtActive, txtDateNow);

The first data inserted is "abc". I would like to change this to be the value entered into the dataset. Is this possible?
Post #1549375
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse