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 read only and constant
How to add a readonly property in c#.net
What is a delegate how is it type safe?
What are c# attributes and its significance?
Can enum be null c#?
Define parsing? Explain how to parse a datetime string?
Why do we use stringbuilder in c#?
What is the difference between CreateObject() and GetObject()?
Why delegate is used in c#?
What is a private constructor? where will you use it?
Can you prevent your class from being inherited and becoming a base class for some other classes?
Define Virtual folder?
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)