Solved

user login to maintain own web site

Posted on 2006-10-30
9
208 Views
Last Modified: 2010-04-07
I have written a web site for a company who want to keep changing photographs of properties for sale. There is no database so how can i enable them to log on to the site and make these changes to just the (pages) section that contains the photographs?
0
Comment
Question by:webbyflanagan
  • 3
  • 2
9 Comments
 
LVL 11

Expert Comment

by:ethoths
ID: 17842891
If using ASP.Net...

1) Put the admin pages in a seperate folder
2) Create a new app on that folder and put a web.config file in it (your it department / web hosting company can help you out here).
3) Enable forms authentication and store the users credentials in the config file...

  <authentication mode="Forms">
    <forms loginUrl="~/login.aspx">
      <credentials passwordFormat="Clear">
          <user name="Administrator" password="password" />
      </credentials>
   </forms>
  </authentication>
  <authorization>
  <deny users="?" />
  </authorization>

4) You will of course need a log on form. You can find dozens of examples on the web or on MSDN.

PS Don't forget write permissions on the file upload folder!
0
 
LVL 35

Accepted Solution

by:
mrichmon earned 250 total points
ID: 17845224
You can't.  At least not easily, nor with only admin pages.

If the information is coded into the pages itself and not stored in a database, then the code tiself needs to be changed.  Most likely - with no database - it is simple html too right?  Not a server side code?

So you basically have to allow them to edit the entire file.

Or you can change the site to read images from a specific directory named a specific way and have them have FTP or some other access to that directory where they can change photos
0
 
LVL 11

Assisted Solution

by:ethoths
ethoths earned 250 total points
ID: 17848381
My response assumed you did not want to change the name of the images. If you simply want to have a page that will allow your users to upload new images of existing properties and replace the existing ones then my solution will work.

If it was your intention to upload new images and have them added (not replace) those already on the page, you could do this with a little server side code that pulled all the images from a folder (you'd need one folder per property) and displayed them in a list.

You could use FTP as mrichmon suggests but you would then allow access to all of the site and allow people to do what ever they liked - possibly by accident. With a single keypress they could delete the whole site! FTP tools are also not the easiest to use for non experts.

A word of caution though. If your users are not experts be careful to advise them not to upload hi resolution jps straight from their cameras. These images are typiocally 100's of times larger then those displayed on the web and will make your site very very very slow. You will need some image editing software to lower the resolution and optimise the images for the web.
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

Author Comment

by:webbyflanagan
ID: 18059173
I dont believe either suggestions have been detailed enough for a new developer to be happy with what method and how it can be provided
0
 
LVL 11

Expert Comment

by:ethoths
ID: 18067347
I didagree with webbyflanagan. There was pleanty of detail here for anybody who was prepared to do a little work themselves. I provided a four step plan to acheive the rquirement and even went so far as to fully specify the web.config settings to the letter. Sorry webbyflanagan but this site is to help YOU solve your problems not us.

0
 

Author Comment

by:webbyflanagan
ID: 18079192
Thanks ethoths - has anyone out there any usefull simple information that i can use
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now