.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

please help me

Posted By:      Posted Date: September 16, 2010    Points: 0   Category :ASP.Net
 
I have a problem in updating a table in my web application using aspx and c#this is the code:string connection = ConfigurationManager.ConnectionStrings["connname"].ConnectionString;        OleDbConnection conn = new OleDbConnection(connection);        try        {            conn.Open();            OleDbCommand cmd = new OleDbCommand();            cmd.Connection = conn;            cmd.CommandText = "update page set PageTitle=@pagetitle, PageTags=@pagetags, PageContent=@pagecontent, PageUrlName=@pageurlname where ID=@pageid";            cmd.Parameters.AddWithValue("@pageid", ID);            cmd.Parameters.AddWithValue("@pagetitle", ttl.Text);            cmd.Parameters.AddWithValue("@pagetags", tags.Text);            cmd.Parameters.AddWithValue("@pagecontent", cntnt.Value.ToString());&n


View Complete Post


More Related Resource Links

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend