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
Expand|Select|Wrap|Line Numbers
- 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
Expand|Select|Wrap|Line Numbers
- 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