Hello, could someone please help me with the VS 2008 website project
I've linked below:

http://rapidshare.com/files/175651724/WebApplication1.rar.html

The RAR file's password is "darthcontinent".

Basically, this is a website project which uses a GridView control to
edit a couple of rows of data.  The rows will initially be blank, be
edited by the user, and eventually saved to a table.  In the meantime,
the user is given the option to Edit a particular row (you can ignore
the Delete button for purposes of my question).

I can run the project and choose the Edit button for a row of data,
and the fields in this row become editable, which is super.  However,
the problem I'm having trouble wrapping my head around is that after
the fields become editable, the Edit button should no longer say Edit,
but instead should say Update (i.e. btnEdit is to be hidden, and
btnUpdate becomes visible).

If you attempt this process, you'll notice that you get an Object
reference not set error when the code tries to act on a reference to
the (at that point nonexistent) btnUpdate.

Could someone please help me?!  In debugging this I'm now quite
confused about which events aren't firing or being handled in the
right sequence to make this happen.  If for any reason you can't
download the file from the link above, please email me at
DarthContinent (@) gmail.com and I can send it to you directly.  Or if
preferable I can post the code here, please let me know.

Thanks in advance for any help!!

Reply via email to