Hi,
I've a function named fillgrid() which fills the grid with data.This function works correctly on pageload,but after inserting into database i've called this function again, which is not getting executed.
This issue happens only in real time server not in my local system,
Im not getting any error and i cannot recognize why fillgrid() function is not getting called??I've used update panel.
This is the code for insert function which inserts over 500records.
Is there any timeout possibility ??
DataTable dtMob = new DataTable();
dtMob = dtMobilizn.Copy();
DataSet dsMobilizn=new DataSet("dsMobilization");
dsMobilizn.Tables.Add(dtMob);
int i = clsMob.InsertMobilizationDetails(dsMobilizn.GetXml());//i am getting the value as 1 when i debugged in local system
if (i != -1)//Im getting the value of i as 1 when i debugged locally
{
FillGrid();//This function is not getting called.
}
else
{
string str = "<script>alert('Cannot mobilize')</script>";
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "Validation Error", str, false);
return;
}