This is the error i Get
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
It points to this code
This is the last error i need to solve to get my compleet application to work again but it all points to 1 webpage and i get different errors if i try different things so i dont now anymore what the best way is pleas somone help me i only need to solve this page error so my copmpleet application works
The error points to line number 5
But if i delete the ! before IsPostBack than it goes to this error almost the same code
Also the error poitns to line number 5
The weird thing is it only shows the error when i start debuging and that whont work but when i stop debugging the error is not is my Error List at the bottum
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
It points to this code
Code:
if (!IsPostBack)
{
localhost1.dbConnection dbConn = new localhost1.dbConnection();
NameValueCollection Query = Request.QueryString;
string[] sQuery = Query.GetValues(0);
string[] RefRen = Query.GetValues(1);
The error points to line number 5
But if i delete the ! before IsPostBack than it goes to this error almost the same code
Code:
else
{
localhost1.dbConnection dbConn = new localhost1.dbConnection();
NameValueCollection Query = Request.QueryString;
string[] RefRen = Query.GetValues(1);
nieuw = dbConn.IsOfferteNieuw(RefRen[0].ToString());
The weird thing is it only shows the error when i start debuging and that whont work but when i stop debugging the error is not is my Error List at the bottum
Comment