Save/Upload files in folder and download files from folder in asp.net

Save/Upload files in folder and download files from folder in asp.net

To implement this first design table in your database like below to save file details in database. Column Name Data Type Allow Nulls Id int(set identity property=true) No FileName varchar(50) Yes FilePath varchar(50) Yes Now create new website after that right click on your website and add new folder and give name as Filesbecause here I am using same name for my sample if you want to change folder name you need to change the Files folder name in your code behind also After that design your aspx page like this Save and Download Files from file system
Implementing Referential Integrity and Cascading Actions in SQL

Implementing Referential Integrity and Cascading Actions in SQL

Many a times you need to delete the record but at the same time you need to make sure all the related or referenced records are also deleted. This is because you can not delete a record if it is referenced in another table. In this case you can either delete the referenced record or you can set the “Cascade Delete On”. CREATE TABLE [dbo].[Tracks]( [TrackID] [int] NOT NULL PRIMARY KEY, [Title] [varchar](50) NULL, [AlbumID] [int] NULL, [Duration] [time](0) NULL)