Ultradev Example Tutorial: 5 make a relatively simple site backstage (3

Source: Internet
Author: User
Tags add access
Backstage | tutorials the fifth chapter: makes a relatively simple website backstage (3)

What do you do with deleted pages? Hey? Have you forgotten what we said above? With the command object, it's simple to do:



Test it first. Delete the data we just edited, well, it's normal----not normal:)



Generally we add, delete, edit the data will have some prompts, or to jump to another page. For example, we delete operations (del_article.asp) after the completion of the jump back to the data display page, how to do? Use the refresh tag inside the HTML. Oh, is not suddenly patted the head has the feeling of epiphany. Always around the ASP, the HTML things are forgotten.

Insert-> head Tags->refresh, as shown:





In fact, this jump function is better than the redirect in ASP, because some old browsers or Netscape to redirect support is not very good, sometimes not normal to jump to the page you want. Here we edit, delete, add pages are done, we do a feature selection page out, you can quickly jump:



Finished this, we should be relieved, HoHo, a simple website backstage management program is done, so simple ah. Wait, there's no protection on your page! That is to say, whoever knows the address of your website admin page, he can add, delete, edit the operation, such as ... $%^#&*

Oh, early preparation, don't forget we have a special Administrator user table, is used to record administrator information!

Open the server bahaviors-> authentication-> Login User to make a password validation page---Don't forget to create a form that contains a list of several text types. Access to those admin pages only after validation passes!

The use of each column in the diagram I believe you see it, do not understand the words to see the example of clay is clear:)



After the completion of the figure:


Only this is not enough, we have to do for each page you do not want to be authenticated by people to visit the Tian One behavior: Server behaviors-> authentication-> Restrict access to page that is, if not validated, Could not access. As shown in figure:



If Access Denied goes to: if it is not validated, jump to which page. Here for fail.asp.

Look at the source code, you can see that the mechanism of protection is the use of the session. Upon landing, the server creates a session variable that cannot be accessed without landing directly on other pages because the session does not exist:





Here, a real and relatively perfect but relatively simple is completed! Also congratulate you, you have been able to more skilled application Ultradev, I believe you can use him to make outstanding multi-functional rich Web Applications!

In the last section, we will talk about some of the advanced application techniques of Ultradev, but don't miss them!

If you need more information about Ultradev, please visit www.4u2v.com.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.