Friday, October 9, 2009

DreamweaverMX Ultradev is explored (4-1)

Dreamweaver MX Ultradev is explored (the record in 4) modification database

In on one chapter we were told how to new content is added in the database. But do not know everybody to notice a kind of such conditions, if my database records discovery of the ability after be being referred to be in,made mistake? How to do? Be about to revise of course. But will modify the content in the database through WEB,revise us this. Sound seeming also is not too easy. Irrespective, pass in front the introduction of a few chapters, everybody ought to discover, the database is called in DW MX exceedingly simple, want you to nodded a mouse a few times to go only. Ah. . . The content that updates a database this is same also, special simple, let's Go! ~~ !

Good, let all of us understand the basic idea that database content renews. Make an example first, what if the user data in 5D forum is updated,use is database content newer. This kind of page is homepage face normally (before page) - - child page page (hind one page) , homepage face lets an user choose a record to update (the individual information in 5D forum is to let an user choose a record to update) , deliver a parameter next child page, at the same time child the page executed two kinds of different operations. Above all, it shows the data that already existed, can be revised by the user so, next, it updates modified database content.

<1>Above all, we build record volume, tell as place of the 2nd chapter in that way, apply again repeat region behavior to establish many record, here I not repeat these measure. Practical effect graph if (4.1) be shown.



4-1

<2>Does everybody notice above that " editor " ? This is us the leading role of the first pace - - jump turn to detail page to join (Go To Detail Page) . Mention in front refer a parameter in homepage face child page. Here this " editor " it is to have this effect, can deliver a p arameter to arrive when clicking it below one page. We use mouse make choice of first " editor " these two words, again Application- - > Server Behaviors- - > Go To Detail Page, this also is the action of a server that DW MX takes oneself, if pursue (4-2) be shown.



4-2
Interface of a dialog can appear after clicking a mouse, if pursue (4-3) be shown.

Link:
Detail Page: Su Sun Xin is sought investigate the URL address that Han of arsine of Cong of blood clam spade dare take page of SP of  miscellaneous , also can click Browser pushbutton to choose. We input Edit.asp here.
Pass URL Parameter: Sun Xin is sought investigate RL of 齍 of ü of  of guanidine of Cong of blood clam spade passes the parameter name in detail page, remember can wanting to be defeated good write down of a bit ah, at the back we are used even.
Recordset: RL of 齍 of ≡ Lian ü delivers the record volume that parameter place belongs to. Meaning to fr om which be recorded deliver in collect ginseng go out? Here chooses the name that a moment ago we build to be the record volume of Testmx.
Column: The records concentration field title that RL of 齍 of ≡ Lian ü transfers parameter place to belong to, install URL to deliver the origin of the value of parameter namely. Here we choose ID, you also can choose other, but remember at the back change to want to be opposite.
URL Parameters: Tao of  of rice huller Gu takes the advantage of Ma instrument to seek parameter of RL of 猆 of Chi of vasting ブ bottom to be delivered child page. In us we did not use watch sheet on this homepage face, need not choose so.
Form Parameters: The means that Tao of  of rice huller Gu takes the advantage of Ma instrument to seek parameter of RL of 訳 of vasting ブ surname is delivered child page. In child on the page OK and OK read through Request.form take here to deliver the parameter that come over. Alexandrine, did not express sheet, do not choose so. (note: Request.form is ASP in one basic built-in to resembling, detailed method refers to relevant data please. )

After clicking OK pushbutton, former what we choose " editor " will become what contain dynamic content to exceed text to join.



4-3

<3>Hereto, the preparation that the parameter of our homepage face delivers works to already was finished, remain? Nature also is the grand opera of this chapter- - update database content. Build one page, the definition is ASP, script is VBSscript, save for Edit.asp, namely we above what input, can not want to be defeated by a fault, otherwise can make mistake again. Next the thing builds record volume namely, with homepage face, build watch sheet next, with convenient user the input updates a record, specific if pursue,show (4-4) be shown.

Narrate with place of the 3rd chapter, in the name that should remember so that the setting expresses casing of the t ext in sheet likewise and database consistent.



4-4

No comments:

Post a Comment