how to retrive a TextBox value in to Sql database using C#
windows form application coding
Answers were Sorted based on User's Feedback
Answer / sathish
how to retreive a TextBox value from Sql database using
C#.net coding
| Is This Answer Correct ? | 11 Yes | 2 No |
Answer / shikha kalyan
If you want to store value of a textbox in SQL Server
database then you should use an Insert query:
Let the textbox name be textbox1
Insert into <tablename>(<fieldname>) values('"+textbox1.Text+"')
Eliminate ' if textbox does not contain a string value.
| Is This Answer Correct ? | 18 Yes | 11 No |
Answer / shanta
You should pass query as
insert into <tablename>('"+textbox.text+"')
no matter whether it contains number or string type value
| Is This Answer Correct ? | 8 Yes | 9 No |
What is a constructor in c#?
What is deadly diamond problem?
syntax for writing private method in a interface
Can a struct have a default constructor (a constructor without parameters) or a destructor in c#?
How to add controls dynamically to the form using c#.net.
What is difference between array and list in c#?
STATIC METHOD CAN BE OVERLOADING AND OVERIDNG? IS POSSIBLE IN iN c# .NET AND WHAT IS THE REASON??
What does assert() do?
What does the term immutable mean?
3 Answers Satyam, Siebel Systems, Techno Labs,
How do I count the length of a string in c#?
Is null or empty in c#?
Why do we need abstraction in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)