An Online Photographer Portal in ASP.Net

An Open Source Project: R-An Online Photographer Portal

This is my open source project developed using Visual Studio 2012, C# and SQL Server 2008 R2.

Basically I developed this project with the name R-An Online Photographer Portal.

Here any photographer can create his/her profile, can upload new photos and can view existing uploaded photos. Any user can view any photographer profile and their uploaded photos.

The following are the 2 tables I used in this project.

PhotograperRegistration

PhotographerRegistration

The following is the script of my table: 

  1. CREATE TABLE [dbo].[PhotograperRegistration](  
  2.     [ID] [int] IDENTITY(1,1) NOT NULL,  
  3.     [Email] [varchar](500) NULL,  
  4.     [Password] [varchar](50) NULL,  
  5.     [First_Name] [varchar](50) NULL,  
  6.     [Last_Name] [varchar](50) NULL,  
  7.     [Gender] [varchar](50) NULL,  
  8.     [MyWebsite] [varchar](50) NULL,  
  9.     [Experience] [varchar](50) NULL,  
  10.     [Compensation] [varchar](50) NULL,  
  11.     [Genres] [varchar](500) NULL,  
  12.     [AboutMe] [text] NULL,  
  13.     [Country] [varchar](50) NULL,  
  14.     [ProfileImage] [varchar](50) NULL,  
  15.     [Profile_CreatedDT] [datetime] NULL,  
  16.  CONSTRAINT [PK_PhotograperRegistration] PRIMARY KEY CLUSTERED   
  17. (  
  18.     [ID] ASC  
  19. )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ONON [PRIMARY]  
  20. ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]  
  21.   
  22. GO  
  23.   
  24. SET ANSI_PADDING OFF  
  25. GO  
  26.   
  27. ALTER TABLE [dbo].[PhotograperRegistration] ADD  CONSTRAINT [DF_PhotograperRegistration_Profile_CreatedDT]  DEFAULT (getdate()) FOR [Profile_CreatedDT]  
  28. GO  

Photos



The following is the script of my table:

  1. CREATE TABLE [dbo].[Photos](  
  2.     [Photo_ID] [int] IDENTITY(1,1) NOT NULL,  
  3.     [Photographer_ID] [intNULL,  
  4.     [Title] [varchar](500) NULL,  
  5.     [Description] [varchar](500) NULL,  
  6.     [ImageName] [varchar](50) NULL,  
  7.     [Upload_Date] [datetime] NULL,  
  8.  CONSTRAINT [PK_Photos] PRIMARY KEY CLUSTERED   
  9. (  
  10.     [Photo_ID] ASC  
  11. )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ONON [PRIMARY]  
  12. ON [PRIMARY]  
  13.   
  14. GO  
  15.   
  16. SET ANSI_PADDING OFF  
  17. GO  
  18.   
  19. ALTER TABLE [dbo].[Photos] ADD  CONSTRAINT [DF_Photos_Upload_Date]  DEFAULT (getdate()) FOR [Upload_Date]  
  20. GO  

 Now I am explaining how my project works.

The following is my Default page. Here you can see all the newly created Photographer profile and all new uploaded photos. From here you can view any photographer profile by clicking the profile image.

In the recently uploaded photos you can view the photo details by clicking on a photo.



Now click on the Create profile link to create a new profile.



After creating the profile this will be displayed on the default page. Now click on any profile in the default page as in the following.



Now click on any photo to view the photo details.

Now if any existing photographer wants to login then click on the Login button.



After logging in the photographer will be redirected to the My Account Page.



From here the Photographer can view his/her profile and see all the uploaded photos and can upload new photos.



Now see your uploaded photos.



Now see this photo is a recently uplaoded photo in the default page.



I have saved my DB inside the App_Data folder. From Here you can attach DB for this project.



Once again I am showing my DB as Database diagram. You can create these tables in you DB.

Enjoy my project. Happy Coding!

Up Next
    Ebook Download
    View all
    Learn
    View all