How to Insert a TextBox value in to Sql database using
C#.Net coding
Answer Posted / jayatirtha joshi
assign the textbox valuu to a string than using sqlcommand
in c# writing insert querry . insert the value into the
database.
ex; sqlcommand cmd=new sqlcommand("insert into emp values
('"+textbox1.text+"'),con");
cmd.executenonquerry();
| Is This Answer Correct ? | 24 Yes | 3 No |
Post New Answer View All Answers
Will there be a .net compact framework 3.0 release with release of .net framework 3.0?
what is entity graph in entity framework?
Does Tempdata hold the data for other request in ASP.Net MVC?
What is .net framework & its benefits?
What are the 2 ways of adding constraints to a route?
Mention two instances where routing is not implemented or required?
What is entitytypes? : Entity framework
Where is the new functionality in the .net framework 3.0 (such as wcf, wf, wpf, and cardspace) installed to? Is that different from where the .net framework 2.0 is installed to?
What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?
Explain what is the difference between view and partial view?
Explain the request flow in asp.net mvc framework?
What is a razor file?
How does the 'page lifecycle' of asp.net mvc works?
Can I add mvc testcases in visual studio express?
Is it possible to cancel filter execution?