Jeremy Wadsworth
My Contribution to the ASP.NET Community


Welcome   
Welcome to my personal website. Here you will find blog posts related to web development as well as personal related interests. If you're here for the source code to my Personal Web Site Kit, please register and you'll receive an email when your account has been approved.


Latest Blog Entries

 Monday, January 16, 2006


About my Personal Web Site Kit    

I have made an enormous amount of changes to this site and the way it functions. My changes and additions so far include:

  • Made all of the sections on this page, except for the Friends section, drive from the database. When logged in as the Administrator, all of the sections have a little edit button next to the title. Clicking the edit button loads that section into the EditContent.aspx page where I can edit the title or the content for that section.
  • Designed and added a blog module, Blogger.ascx. Under the Administrator role an Add Blog Entry button displays at the top of the Blog module. In addition, an edit button displays next to each blog entry. Blog entries are added or edited from the BlogEntry.aspx page.
  • Changed the photo albums to use the file system. I added an appsetting to the web.config where the directory for storing albums can be specified. Then when creating an album it creates a folder inside the folder specified in the web.config. Any photos added for that album get put in that folder. The upload folder is still the import folder. When importing the images from the upload folder, the images are deleted from the upload folder after they are successfully added to the album. The random images SPROC still needs some work.
  • Moved the user login to its own page, Login.aspx.
  • Created a crappy Theme that is named GreenLeaf in the Theme dropdown on this page. There was not a lot of time put into the GreenLeaf Theme. I was just trying to learn how Themes worked in ASP.NET 2.0
  • Added the functionality to be able to change Themes on the fly. If you haven't tried the Theme dropdown in the top left corner, give it a try. I created a PageBase class that inherits from the System.Web.UI.Page class and made all the relevant pages inherit from my PageBase class. The PageBase class is responsible for setting the Theme that it pulls from a table in the database. I created a folder named Master Pages where each theme has it's own .master. The Theme dropdown is filled by searching through the Master Pages folder and getting the first part of the .master file names. The master page must have the same name as the Theme in the App_Themes folder. When a Theme is selected in the dropdown that name is written to the database. Then the page is reloaded which causes the PreInit in the PageBase class to fire and load the new value from the database.

Additions or changes I still want to make include:

  • Move the Resume page to drive from the database.
  • Move all link sections to drive from the database and have the links organized into user defined categories.
  • Change the framework and database to allow for many sites from one database and code like DotNetNuke.
  • Allow administrator to enable/disable main menu links.


Jeremy at 11:31 PM | (16) Comments | Add a comment | Permalink





Commments
mark.vd.kerkhof@chello.nl said...

Hello, very nice what you have created with Visual Studio. Currently I'm also working on personlise my "Personal Web Site Kit" site. Can you give me some information on how to integrate the blog and edit features. Keep on the good work. Regards, Mark

Monday, January 30, 2006 8:45 AM

jeremy said...

Mark, You can register, and after I have approved the registration, you can download my source code from the Downloads menu item.

Thursday, February 16, 2006 4:42 PM

Nitin said...

Hello, Your site is very nice. I am working on Personal web site Kit. Can u help me how to add media files in the site?

Tuesday, April 11, 2006 1:01 AM

jeremy said...

If you are trying to implement video uploads and display, you should download and look at Matt's source code found in this forum post. http://forums.asp.net/3/1152559/ShowThread.aspx

Tuesday, April 11, 2006 7:43 AM

Damon Bruccoleri said...

Jeremy, Thank you for sharing this. I have uploaded your personal site to my GoDaddy account (damon4.com) and it is not able to find a SQL stored procedure. GoDaddy does not allow remote connection to SQL. Is there some SQL script I can cut and paste to their SQL to rebuild the database?

Wednesday, May 24, 2006 10:21 AM

Anton said...

Jeremy - thanks for access to your source code. Here is my test implementation: http://gus3.smithhopen.com/

Thursday, June 15, 2006 8:22 AM

jeremy said...

You're welcome. Nice implementation.

Thursday, June 15, 2006 8:48 AM

michael said...

Damon and Jeremy, I too am curently working on a personal site. I, like Damon use Godaddy.com (seems to be a mistake). My problem is the same. How do you get the site to work on their SQL server? I have been working on this for the last couple of weeks and have had no luck. I beg of you....please help. Thanks guys.

Tuesday, July 25, 2006 11:30 AM

jeremy said...

Michael, From what I understand from other users, you will need to create a database from the control panel on goddady. You will then need to script the whole PWS database and run the scripts against the database you created at goddady. If godaddy allows you to restore backups, then you may be able to create a backup file of the PWS db, upload it, and then restore it as the database you want to use.

Tuesday, July 25, 2006 6:09 PM

Michael said...

Jeremy, Question about your code. upon uploading it to the webserver, it says it cannot find stored procedure "Using reader As SqlDataReader = command.ExecuteReader()". Any idea how to correct this with godaddy.com. I think this is the last thing to correct. Thanks.

Friday, July 28, 2006 2:09 PM

Nigelh said...

I received the following message after upload, any idea on how I can solve it. I am learning by the minute but have no idea how to solve this The files '/App_Code/ObjectTypes.cs' and '/App_Code/CommentManager.vb' use a different language, which is not allowed since they need to be compiled together. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: The files '/App_Code/ObjectTypes.cs' and '/App_Code/CommentManager.vb' use a different language, which is not allowed since they need to be compiled together.

Thursday, August 31, 2006 5:16 AM

Jeremy said...

Nigelh, There are no files in my project named ObjectTypes.cs

Thursday, August 31, 2006 8:30 AM

Snehal Rana said...

Hi Jeremy, Nice work. Quick question though, where do I change the admin password? Also I have added 2 album categories but could see only 1 when I start adding Album. Is there any fix or update for that? Keep up good work. Thanks Snehal Rana

Friday, March 02, 2007 7:10 AM

jeremy said...

Snehal, I haven't built in password reset yet, so you will need to create a new admin account and then delete the one that was in my kit when you downloaded it. I'll email you on the other issue.

Friday, March 02, 2007 9:03 AM

ddd said...

dddd

Sunday, July 15, 2007 12:22 PM

tarn said...

Jeremy, I like what you have done with the code but I have been having an issue with the latest version 2.8. I use my own server with sql2000 on it and converted the database and have no issues except that I can’t change the themes and have them stay. I want to default to Greenleaf and when I’m in the manage page and change the site settings to Greenleaf it will change, but once I close the page and reopen it will default back to the default theme. Any suggestions would be great.

Friday, September 12, 2008 12:24 PM

  Leave a comment

Enter Your Name:
 
Enter your website
Security code from image below:  
Need Custom Controls Work or Training?
   


Join WebHost4Life.com






If you would like to help support this project, please click the button below to make a small donation.