Author: hdv212 | Posted on: 4/11/2010 12:49:04 AM | Views : 281

hi
i have a webForm which can update dataRow like this :
private static string _mode; private NorthwindDataSet _dateSet; private NorthwindDataSet.CustomersRow _row; protected void Page_Load(object sender, EventArgs e) { _mode = Request.QueryString["mode"]; _dateSet = new NorthwindDataSet(); if (_mode != null) { if (_mode.Equals("new")) { // new mode } else { // edit mode string id = Request.QueryString["id"]; _row = GetRowByID(id) as NorthwindDataSet.CustomersRow; this.SetControlsDataBindings(_row); } } } protected void btnSubmit_Click(object sender, EventArgs e) { this.UpdateRow("~/FrmCustomersList.aspx"); } private ...

Go to the complete details ...