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 |
Explain the use of virtual, sealed, override, and abstract method?
How to make a class not inheritable other than sealed?
What are the value types in c#?
Is string a class in c#?
What are PE(Portable Executable)?
How do you sort a list in c#?
What is or operator in c#?
Can we have multiple constructors in a class c#?
What are actions in c#?
Hi all,I am the beginner. Please tell use of finally block.
What do you mean by thread safe in c#?
What is a hashset 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)