help me

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kartheeksirangi
    New Member
    • Dec 2007
    • 1

    help me

    plz any one give me code for edit and delete the data in c# i am using asp.net ,c#.net and saqlserver2005 it is very urgent
    thanx and regards
    kartheek
  • victorantos
    New Member
    • Dec 2007
    • 3

    #2
    do a search on google for sqldataadapter

    To execute an sql command just do this:

    SqlConnection conn = new SqlConnection(" my conn string");
    SqlCommand comm = new SqlCommand (conn);
    comm.CommandTex t("Update mytable set WebSiteName = 'csstemplatesfo rfree.com'");
    conn.Open();
    comm.ExecuteNon Query();
    conn.Close()

    Comment

    • kenobewan
      Recognized Expert Specialist
      • Dec 2006
      • 4871

      #3
      Please read the posting guidelines and improve the quality of your post. We expect you to try first and then report on your results. Thanks.

      MODERATOR

      Comment

      Working...