Click to See Complete Forum and Search --> : Newbiew question


PetrP
November 29th, 2002, 04:27 AM
Hi all,

I am new in ASP.NET and I have a problem with deletion of record in database.

On the page are two tables in one form. First table is for displaying database, second one is for inserting data into databse.

- Displaying database by DataGrid with ButtonColumn works fine.
- Adding data into database works also fine.
- But deletion of record from databse by "asp:ButtonColumn Text="Delete" ButtonType="PushButton" CommandName="Delete" /" works only after adding some data and not when page is just displayed.

Can anybody help me? I should send a code when needed.

Petr P.