Database Storage with the ASP.NET Web Matrix: Unsubscribe Page
(Page 1 of 4 )
Using the Microsoft ASP.NET Web Matrix application along with a SQL variant database allows developers to create dynamic, data-driven websites. This article focuses on deleting data from a database table.
I’m continuing the recent series on using the Microsoft ASP.NET Web Matrix application in conjunction with a SQL variant database server to create dynamic, data-driven web sites. So far, we have looked at adding data to a database table and retrieving that data in order to run queries on it. This article will focus on deleting data from the table.
Like the two preceding examples, the page created during this tutorial will consist purely of the elements needed to get the job done; there will be no aesthetics, I’m afraid. Before we start building the page, ensure that the database connection we’ve been using so far is connected by checking the Data pane at the right-hand side of the application window.
First then, open a new standard ASP.NET page from the general section of the available templates. The page should open in design view, but if not, switch to it, and from the web controls toolbox drag a label a textbox and another label control onto the page. On the next line down, drag a button control, and finally, on the next line down from that, drag another label control on to the page.
These are the only elements we will need on this relatively simple page. Don’t forget that in a pre-production scenario you would have to consider other elements in keeping with your site layout and theme such as a navigation system.
Next: Setting up the Page >>
More ASP.NET Articles
More By Dan Wellman