Home > Software engineering >  For the great god of asp problems please
For the great god of asp problems please

Time:09-27

Resultid=split (right (request (" resultid "), len (request (" resultid ")) - 2), ", ")

Is there a safe hidden trouble, under the code written by an online exam system, calculation of abnormal scores, a total of 52 problem, resultid purpose each item is the front desk id string, Mosaic of background processing time into 102 questions, and become the 260 questions but the chance is very small, one percent of the time

CodePudding user response:

The error message?
Resultid value is when something goes wrong?

The Split () even if to an empty string is not wrong,
Right () only when the second parameter is negative wrong
Namely resultid only when the value of the length less than 2 will be wrong, you can add a judgment, in front of the

CodePudding user response:

Resultid is each topic to tag patchwork string, and then use the split into each item id value purpose, a total of 52 subject is divided 52, the exception is more than 52 to 104, 260 and so on there are 3 small questions in such as the initial resulid value is ",, 1, 2, 3 "more front two commas, so len (request (" resultid")) - 2) this will be minus two

CodePudding user response:

Still didn't know what you mean
You fixed in front of 52 and two empty,
Don't understand is his force output
All the data in the asp exposed
"Resultid
"Len (request (" resultid ")) - 2)
What time these values are in the wrong value
Why is the wrong case

CodePudding user response:

Response. Write to the page to see what these values are respectively when the error
  • Related