| | |
Update from Asp.net to Sql server db
Please support our ASP.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
Join Date: Jun 2009
Posts: 14
Reputation:
Solved Threads: 0
•
•
•
•
Please post your bind code & the qurey that you use to update.
c# Syntax (Toggle Plain Text)
SqlConnection con1=new SqlConnection(@"Server=sqloledb.1;User ID=sa;password=;Data Source=IRID_BDC1;Initial Catalog=Nisha"); con1.Open(); SqlCommand cmmd=new SqlCommand("Select * from Loc_mast",con1); SqlDataReader dar=cmmd.ExecuteReader(); Droploc.Items.Clear(); Droploc.DataSource=dar; Droploc.DataTextField ="Loc"; Droploc.DataValueField="Slno"; Droploc.DataBind(); con1.Close();
Update
c# Syntax (Toggle Plain Text)
RadioButton1.Checked =false; if(Page.IsValid == true) { using (SqlConnection con1=new SqlConnection(@"Server=sqloledb.1;User ID=sa;password=;Data Source=IRID_BDC1;Initial Catalog=Nisha")) { con1.Open(); SqlCommand cmd=new SqlCommand("Update Loc_mast Set Loc =('"+ txtrnme.Text+"') Where Slno =('"+ Droploc.SelectedItem.Value+"')",con1); cmd.ExecuteNonQuery(); con1.Close(); }}
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.
•
•
Join Date: Jun 2009
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
Please post your bind code & the qurey that you use to update.
All the best for your carrer..
Meganathan
![]() |
Similar Threads
- Senior C#.Net Developer - Oxfordshire - ASP. Net, VB / Net - SQL Server (Web Development Job Offers)
- ASP.NET/SQL Developer/Programmer (Web Development Job Offers)
- ASP.NET SQL Server Setup Wizard: Failure (ASP.NET)
- Senior C#.Net Software Engineer - Oxfordshire - ASP. Net / SQL Server (Web Development Job Offers)
- ASP.NET & SQL Server 05 developer needed (Web Development Job Offers)
- ASP.Net perm full time programmer wanted (Web Development Job Offers)
- Software Engineer (.NET , SQL) (Software Development Job Offers)
- dreamweaver/ asp.net /sql server help needed please!!! (ASP.NET)
Other Threads in the ASP.NET Forum
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 beginner bottomasp.net browser businesslogiclayer c# cac checkbox class commonfunctions compatible content contenttype countryselector courier css dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deployment development dgv dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv formatdecimal formview gridview gudi iframe iis javascript listbox menu microsoft mouse mssql multistepregistration nameisnotdeclared news opera panelmasterpagebuttoncontrols problem redirect registration relationaldatabases reportemail schoolproject security serializesmo.table sessionvariables silverlight smartcard smoobjects software sql sql-server sqlserver2005 ssl textbox tracking treeview unauthorized validatedate validation vb.net video videos virtualdirectory vista visual-studio visualstudio web webapplications webarchitecture webdevelopemnt webdevelopment webprogramming webservice youareanotmemberofthedebuggerusers





