Professional Documents
Culture Documents
{
ViewState["TempTable"] = ViewState["DBCurrentTable"];
int rowIndex_temp = 0;
if (ViewState["TempTable"] != null)
{
//ViewState["TempTable"] = null;
DataTable dbdtCurrentTable_temp = (DataTable)ViewState["TempTable"];
DataRow drCurrentRow_temp = null;
if (dbdtCurrentTable_temp.Rows.Count > 0)
{
//ViewState["TempTable"] = null;
// dbdtCurrentTable_temp2 = null;
for (int i = 1; i <= dbdtCurrentTable_temp.Rows.Count; i++)
{
if (i <= dbdtCurrentTable_temp.Rows.Count)
{
//extract the TextBox values
TextBox box1 = (TextBox)grdDBDtl.Rows[rowIndex_temp].Cel
ls[1].FindControl("txtuid");
TextBox box2 = (TextBox)grdDBDtl.Rows[rowIndex_temp].Cel
ls[2].FindControl("txtpwd");
DropDownList grd = (DropDownList)grdDBDtl.Rows[rowIndex_
temp].Cells[3].FindControl("ddlusertype");
drCurrentRow_temp = dbdtCurrentTable_temp.NewRow();
drCurrentRow_temp["RowNumber"] = i + 1;
drCurrentRow_temp["vsuid"] = box1.Text;
drCurrentRow_temp["vspwd"] = box2.Text;
drCurrentRow_temp["vsname"] = grd.SelectedItem.Text;
drCurrentRow_temp["vssystype"] = grd.SelectedItem.Value;
}
rowIndex_temp++;
}
temp_temptable = temp_11.Clone();
//}
DataRow drCurrentRow_temp = null;
row_count = dbdtCurrentTable_temp.Rows.Count;
if (row_count > 0)
{
//dbdtCurrentTable_temp.Rows.Add(drCurrentRow_temp);
//dbdtCurrentTable_temp2.Rows.Add(drCurrentRow_temp);
================================================================================
================================================================================
================================================================================
================================================================================
================================================================================
================================================================================
================================================================================
================================================================================
================================================================================
================================================================================
================================================================================
================================================================================
================================================================================
================================================================================
================================================================================
================================================================================
================================================================================
=====================================================