| | |
Update from Asp.net to Sql server db
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
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 3.5 activexcontrol ajax alltypeofvideos appliances asp asp.net bc30451 beginner box browser businesslogiclayer button c# cac checkbox class commonfunctions control countryselector dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deployment development dgv dialog dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol expose fileuploader fill findcontrol flash formatdecimal formview gridview gudi iis javascript list listbox microsoft mouse mssql nameisnotdeclared news novell numerical opera panelmasterpagebuttoncontrols problem radio redirect registration relationaldatabases reportemail save schoolproject search security sessionvariables silverlight smartcard smoobjects software sql sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos vista visualstudio vs2008 web webapplications webdevelopemnt webdevelopment webprogramming webservice wizard xsl youareanotmemberofthedebuggerusers





