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 does it mean to override a method?
Indexers in c#?
8 Answers Intaglio, Microsoft, TCS,
What is a console file?
Which of these string definitions will prevent escaping on backslashes in c#?
Can I call a virtual method from a constructor/destructor?
What is the data encapsulation?
What is a destructor in c#?
Is java better than c#?
Can you access a hidden base class method in the derived class?
What is writeline in c#?
What is ienumerable t in c#?
What is difference between throw and throws in c#?