Solved

user login to maintain own web site

Posted on 2006-10-30
9
209 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tomcat Ports in Xampp 8 152
Best code editor tool for PC 4 132
Visual Studio Professional 2015 4 73
Annoying "thing" blocks my view 4 100
In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
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 set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

770 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