Code for updating the database by entering the data into
textboxes in
aspx form?

Answer Posted / manish acharya

Connection con = GetConnection();
String query = update <table> set <column> = 'txtUpdate1.Text';
int i=con.updatequery(query);
if(i!=0)
{
Response.Write("Updation Successful");
}
con.close();

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we make sure that Web API returns JSON data only?

754


What are the validation controls available in ASP.NET?

715


Explain the components of web form in asp.net

751


What is the significance of finalize method in .net?

758


Explain the difference between value type and reference type?

441


How does the cookies work in asp.net?

741


Why do we need asp.net?

772


What is the purpose of url encoding?

684


Define managed code and managed data in .net?

697


Why do we use datasource in asp.net?

702


What is page fragment caching?

717


if i wanna deploy my asp.net project to the production server and situation is that i m still not compiled my project i have as-is on my development side now on production server we dont have a visual studio now what kind of settings i need to be to do in webconfig /machine.config file to deploy my project and in iis too....

1828


What are the uses of reflection?

771


What is the procedure to create the environment for asp.net? : asp.net mvc

698


What is a query string in a url?

731