Friday, October 9, 2009

Ultradev example tutorial: 5Become a relatively simple website backstage supporter (3)

The 5th chapter: Become a relatively simple website backstage supporter (3)

How is the page that delete done? Well? Forgot to be told above us? With Command object, finished very simply:



Check first. Expunge that data that we just had compiled, hum, very normal also----Abnormal ability is strange:)



General we are added, delete, there can be a few clews after compiling data, perhaps should jump turn to another page. For instance we delete an operation (Del_article.asp) after finishing, should jump data shows a page, how to do? With the Refresh mark inside Html. Ah, pat the feeling that pats a head to have suddenly see the light suddenly. Often walk back and forth in Asp, the thing of Html forgot.

Insert ->Head Tags ->Refresh, if pursue:





Actually this jumps turn the Redirect in functional comparing Asp is close friends, because have some of old browser or what Netscape supports R edirect is not very good, cannot jump normally to the page that you mean occasionally. Arrived our editor, delete, add a page to had been done, we are doing a function to choose a page to come out, can jump quickly turn:



Finished this, we are gas of this release what is held, hoho, a simple website tiring-room managed a program to finish, very simple. Wait a moment, your page still does not have any safeguard! That is to say, no matter be the address that the website tiring-room that who wanted to know you only runs a page, he can undertake additive, delete, editorial operation, such word. . . . $%^#&*

Ah, have preparation early, did not forget we have list of an administrator user technically, use record administrator information!

Open Server Bahaviors ->Authentication ->Login User makes page of test and verify of a password---Did not forget, realize the Form of the territory expressing sheet that you want to found to include type of a few Text first, the ability after only test and verify is passed visits those tiring-room management pages!

The utility of each column in the graph believes you looked to understand, the case that clay figurine sees if understanding also was clear about:)



The graph is like after finishing:


Such only returning is insufficient, the page cropland home that we still must not hope to be visited by the person without test and verify for every you a behavior: Server Behaviors ->Authentication ->That is to say of Restrict Access To Page, if without test and verify, cannot visit unexpectedly. If pursue:



If Access Denied Go To: Ail.asp of 猣 of engrave of Yu of U of grey field of bursa of Jiao of  of  of scar of act of さ of scull of  of Quan  honest.

Look carefully at source code, the mechanism that can see protection was to use Session. When land, the server can found conversational variable of a Session, if visit other page directly without landing, because Session is nonexistent, cannot visit so:





Arrived here, a true comparison is perfect but compare simple ability to be again finished! You also congratulation in the meantime, you can have compared skilled applied Ultradev, the Web that believes you can make numerous function abound with him uses a program!

In last in, we will stress the advanced application skill of a few Ultradev, friends can be not missed!

If you need more data about Ultradev, visit Www.4u2v.com please.

No comments:

Post a Comment