W
wildman
In the Page_load my code check to see if session variable is set, if
it is, it calls some subroutines that loads some grids and binds them.
In my prerender, when the grids row is in update mode, and the key = 0
(meaning I'm inserting) I'd like to set a date field to current date.
the above logic works great in another page I have where I am not
checking for session information in the page load, but in th is code
results in the error.
Object reference not set to an instance of an object.
dumb question, in my prerender, how can check if my gridview has been
instantiated to avoid this error. I suspect this the problem. I guess
I could just wrap the whole thing in a try catch.
Actually, I just tried that and this does not seem to correct the
problem, I don't get the error, but I am unable to set the column.
Thanks for any help or information.
it is, it calls some subroutines that loads some grids and binds them.
In my prerender, when the grids row is in update mode, and the key = 0
(meaning I'm inserting) I'd like to set a date field to current date.
the above logic works great in another page I have where I am not
checking for session information in the page load, but in th is code
results in the error.
Object reference not set to an instance of an object.
dumb question, in my prerender, how can check if my gridview has been
instantiated to avoid this error. I suspect this the problem. I guess
I could just wrap the whole thing in a try catch.
Actually, I just tried that and this does not seem to correct the
problem, I don't get the error, but I am unable to set the column.
Thanks for any help or information.