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 difference between private and protected in c#?
What is the object class in c#?
What is a string? What are the properties of a string class?
What is class in oops with example in c#?
What are the types in c#?
Is comparable a functional interface?
How do I declare inout arguments in c#?
How to declare a property in a class?
Is functional interface runnable?
How can we Achieve Late binding in C#.Can any give one example.
What are the steps to create an assembly and add it to the gac?
What is private virtual in C#?