Home Community Submit Tutorials Downloads Gallery Links Contact FAQ's / Help
  Home
  Submit Tutorials
  Community
  Tutorials
  Fonts
  Templates
  Affiliates
  Photography Corner
  Site Map
  Contact Us
 
Affiliates
  Pixel Apex
  Trick Digest
  Racuda
  Free-Brushes
  Pixel2life
  Photoshopstar
  Tutorialized
  Deviantart
  Majesticlicks
 
Tutorial Categories
3D Studio Max
Adobe Photoshop
Adobe Fireworks
Adobe Flash
Adobe Flex
Adobe Illustrator Adobe Illustrator
Articles Articles
ASP.NET
Corel Draw Corel Draw
Dreamweaver
eCommerce
Gimp
JavaScript
Maya
Microsoft Frontpage
PHP Coding
Swift 3D Swift 3D
Windows Operation
Wordpress
 
Tutorial
Name:
Chemistry Flask
Author:
Vforvectors
Tutorial
Name:
PHP Login Script
Author:
Pixel Digest
 
Search:
Search Example: Orb, Oman3d, Adobe Photoshop or Picture Editing
 
 
Delete - Learn how to delete  information stored in a ASP database using dreamweaver.
Introduction: In this tutorial I will teach you how using dreamweaver wizard to delete information stored in a database. This process does not actually delete the information from the database. It hides it using filters. This is useful incase you what to re add the information.  If you are having problems feel free to e-mail us, or post a message on the forum.

Part1: What do I need to setup a server on my computer?

For this to work you will need to have the software below installed.

  1. Dreamweaver 8, this is what I used in the tutorial. I am not sure if you can do this on the previous versions.

  2. Windows XP Professional

  3. (IIS) Internet Information Services has to be installed.

Part2: Follow there previous tutorial

For this tutorial to work you will need to set up Dreamweaver and your computer to run ASP.NET pages. I covered how to do this in a previous tutorial, you can read up on this below. Most of these tutorials also includes video examples.

  1. Installing IIS for Dreamweaver

  2. Working with ASP.NET database

  3. Add Information

  4. ASP.NET Edit

  5. ASP.NET Search Form

Part3: Lets get Started.

At this point I will take it that you have IIS setup and you are able to access a database from Dreamweaver.

Ok, lets get started. Download this database click here and place it into your database folder. The download includes the image, database and default.aspx file. The default.aspx file is already setup to display all the information stored in the database. We will need to edit it a little but its no problem. Open the default.aspx file in Dreamweaver, modify the table and add the two text (Edit | Delete) shown below.

Click File New... and click on Dynamic Page ASP.NET VB and click Create. Hit Ctrl+S and save your site as delete.aspx.  Click on Bindings in the Application window and create the dataset shown below, your dataset name can be different.

with that click ok.

Next Click, Insert Application Objects update Record Record update form wizard. with that you should see the window  below.

Fill in the information according to the image above. referring to the form wizard above, click on ID and remove if from the table using the minus  (-) sign. After that press ok. When you press ok, dreamweaver should have created the form shown below.

Click on the [ASP:CHECKBOX] text on the form, and switch your view to code view. When you do that you should see the code shown below.

<asp:checkbox id="Deleted" runat="server" checked='<%# IIf((ds08.FieldValue("Deleted", Container) = ""), true, false) %>' />

See where it says Container) = "") replace the "" with true. So your new code will look like this:

<asp:checkbox id="Deleted" runat="server" checked='<%# IIf((ds08.FieldValue("Deleted", Container) = true), true, false) %>' />

Save your page.

Click back over to the default.aspx page, double click on Delete.

With Delete Highlighted, click on the yellow folder shown below.

After clicking on the yellow folder it will bring up the select file window, from there click on parameter, with that you will see the window below

In the Name field Type in id, in the value window click on the lightning bolt and select ID as shown below.

After that click ok, two time. You should be at the window below.

Make sure you select the delete.aspx page you previously created and click ok. The delete works by using a filter, since you are not actually deleting the information you are just hiding it from your users. Its recommended not to delete information stored in a database you never know when you may need it back in the future. Click on the default.aspx page, double click on the Dataset name.

With that you should see the window below.

Click on Advanced, in the SQL window place this code.

SELECT *
FROM tbltutdatabase
WHERE Deleted = false

as shown below.

Now Press F+12 to preview the default.aspx page.

Finished:
Well that is it, hope it came out to what you expected. I also created a video tutorial for this example. The file is a 3.63 MB flash file. I have the link up on the video section on the forums. Users have to register to view the file, click here to register and view file.  If you have any question or comment about this tutorial, feel free to post a message on the forum.

This Tutorial was Created By Mark
© 2007 pixeldigest.com. All Rights Reserved.

 
 
Help Support Us
 
 
 
News Updates
PHP Login Script Tutorial
In this tutorial I will explain how to create a php login script using adobe dreamweaver. Its a simple process just follow along and anyone can recreate this example.If you have any problems email us..
 
   

CSS mouse over Table

In this tutorial I will teach you how to create a CSS mouse over Table effect to change the background color of a table using Dreamweaver.
... Read more

 
 
News Update [10/16/07]
Yesterday on the 15th of October my gallery went down for some unknown reason. I was able to get the backup of the images, i just lost all the users. The gallery was not that active but i am sill pissed about what happened. I am in the process of reloading the gallery. Just give me some time and it should be up and running. Yesterday on the 15th of October my gallery went down for some unknown reason. I was able to get the backup of the images, i just lost all the users. The gallery was not that active but i am sill pissed about what happened. I am in the process of reloading the gallery. Just give me some time and it should be up and running.  
... Read More
 
Bookmark This Page
 
 
Untitled Document
Latest Gallery Image
 
Sponsors
Custom Shapes
Custom Shapes
Custom Shapes
 
 

Home | Submit | Tutorials | Forums | Gallery | Fonts | Downloads | Privacy Policy | Affiliates | Sitemap | Contact | FAQ's / Help

© 2005 - 2011 pixeldigest.com