See more: C#3.0Oracle
I m working on an web application which gives information of user which use specific mailing system
i get user name, mobilenumber,...., account lock status of user from oracle database.
this information is diplayed in Grid.
this is bound to webpage at runtime.
i m using web service to bind datagrid to page at runtime
i m asked to add one more column to this grid with name "Unlock user" which contains a link.
if 'account lock status' value taken from database is "Y" then i need to show the "unlock link" in "Unlock Column" else show nothing.
i have bound the column to grid and I fulfilled above condition too
I have bound this column using XML document.
but my problem is the above program runs fine for some time
that is when i click unlock button the program works fine
when i do this for 3 or more time(not fixed) even for first time also i get following error
"
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
"
at line
public void DisableControls()
{
BtnAdd.Visible = false;
FlexiGrid1.Items[7].Hide = true;
}
the exception goes and again when i try to load page again sometimes it shows above exception again and when i click F5 program runs
I m not understanding when i click F5 then exception goes although i dont do anything then why its coming and to remove this what should i do?