Try to set a breakpoint at line #9 and check if the value of?nextKeyexists.If it is null,you will get "Object reference not set to an instance of an object" exception when the codes of Line #11 and Line #12 are executed. If this happens,you need to debugpostedValuesand check if it is correct.
If you still have this issue,try to post a simple web page with this issue here,we will try our best to help you.
No comments:
Post a Comment