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 are the types of assembly available
So how do you retrieve the customized properties of a .NET application from XML .config file? Can you automate this process ?
What?s the C# equivalent of C++ catch (?), which was a catch-all statement for any possible exception?
Which is algorithm is used to Manage the Memory in .net ??
Why do we use interface in c#?
What are the advantages of interface in c#?
What is the difference between ref and out parameters in c#?
How do I automate my desktop application?
How to find the current application file path while runtime?
Explain about ODP.net
Is versioning applicable to private assemblies?
What is the difference between readkey and readline 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)