Update from Asp.net to Sql server db

Please support our ASP.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Reply

Join Date: Jun 2009
Posts: 14
Reputation: nikichu is an unknown quantity at this point 
Solved Threads: 0
nikichu nikichu is offline Offline
Newbie Poster

Re: Update from Asp.net to Sql server db

 
0
  #11
Jun 24th, 2009
Originally Posted by mail2saion View Post
Please post your bind code & the qurey that you use to update.
Bind:
  1. SqlConnection con1=new SqlConnection(@"Server=sqloledb.1;User ID=sa;password=;Data Source=IRID_BDC1;Initial Catalog=Nisha");
  2. con1.Open();
  3. SqlCommand cmmd=new SqlCommand("Select * from Loc_mast",con1);
  4. SqlDataReader dar=cmmd.ExecuteReader();
  5. Droploc.Items.Clear();
  6. Droploc.DataSource=dar;
  7. Droploc.DataTextField ="Loc";
  8. Droploc.DataValueField="Slno";
  9. Droploc.DataBind();
  10. con1.Close();


Update

  1. RadioButton1.Checked =false;
  2. if(Page.IsValid == true)
  3. {
  4. using (SqlConnection con1=new SqlConnection(@"Server=sqloledb.1;User ID=sa;password=;Data Source=IRID_BDC1;Initial Catalog=Nisha"))
  5. {
  6. con1.Open();
  7. SqlCommand cmd=new SqlCommand("Update Loc_mast Set Loc =('"+ txtrnme.Text+"') Where Slno =('"+ Droploc.SelectedItem.Value+"')",con1);
  8. cmd.ExecuteNonQuery();
  9. con1.Close();
  10. }}
Last edited by peter_budo; Jun 25th, 2009 at 1:44 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 1
Reputation: vplmega is an unknown quantity at this point 
Solved Threads: 0
vplmega vplmega is offline Offline
Newbie Poster

Re: Update from Asp.net to Sql server db

 
0
  #12
Jun 26th, 2009
Originally Posted by mail2saion View Post
Please post your bind code & the qurey that you use to update.
The ASP.NET Application Service APIs are designed to be pluggable and implementation agnostic, which means that the APIs do not hardcode the details of where data is stored with them. Instead, the APIs call into “providers”,you can get lot of information about the Software Testing from Macrotesting . Any of you guys get useful information about this please share wih me.

All the best for your carrer..
Meganathan
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 14
Reputation: nikichu is an unknown quantity at this point 
Solved Threads: 0
nikichu nikichu is offline Offline
Newbie Poster

Re: Update from Asp.net to Sql server db

 
0
  #13
Jul 6th, 2009
hello someone thre to help please............
still stuck in the code,which updates only the first record!!!!!!!!!!!!!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC