private void SaveData() { DataTable DTLocal = null; DataView DVLocal = null; DataRow DRLocal = null; string strSQL = ""; try { DTLocal = new DataTable(); DVLocal = new DataView(); strSQL = "Select * from tblMachinaryType where MTCode = '" + txtMachinaryCode.Text.Trim() + "'"; ConManager.DBConnection("TERMSHR"); ConManager.OpenDataTableThroughAdapter(strSQL, out DTLocal, true); DTLocal.TableName = "MachinaryType"; DVLocal.Table = DTLocal; DRLocal = DTLocal.NewRow(); DRLocal["MTCode"] = txtMachinaryCode.Text.Trim(); DRLocal["MachinaryType"] = txtMachinaryType.Text.Trim(); DTLocal.Rows.Add(DRLocal); ConManager.BeginTransaction(); ConManager.SaveDataTableThroughAdapter(ref DTLocal, true); ConManager.CommitTransaction(); ConManager.CloseConnection(); } catch (System.Exception ex) { throw ex; } finally { // } }
<td class="TDRightInput" width="32%"> <asp:TextBox ID="txtMachinaryType" CssClass=& quot;TextBoxFixed" runat="server" AutoPostBack="True"></asp:TextBox>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)