943,724 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 2780
  • ASP.NET RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Jun 24th, 2009
0

Re: Update from Asp.net to Sql server db

Click to Expand / Collapse  Quote originally posted by mail2saion ...
Please post your bind code & the qurey that you use to update.
Bind:
c# Syntax (Toggle Plain Text)
  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

c# Syntax (Toggle Plain Text)
  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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nikichu is offline Offline
14 posts
since Jun 2009
Jun 26th, 2009
0

Re: Update from Asp.net to Sql server db

Click to Expand / Collapse  Quote originally posted by mail2saion ...
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vplmega is offline Offline
1 posts
since Jun 2009
Jul 6th, 2009
0

Re: Update from Asp.net to Sql server db

hello someone thre to help please............
still stuck in the code,which updates only the first record!!!!!!!!!!!!!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nikichu is offline Offline
14 posts
since Jun 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC