Friday, October 9, 2009

Ultradev example tutorial: 3.3 application database founds dynamic webpage

The 3rd chapter: Applied database founds dynamic webpage

The 3rd: Indication database is recorded


Arrived to show Dreamweaver Ultradev power eventually when, let us look how to realize the indication function of data with Ultradev first. Very simple, follow me to come.

After last time we had established data set, show with respect to what have as follows in Data Bindings face plate:



Next we found by 2 * 6 form, the row counts the field that expresses by data to count a decision, as to why to want two, saw you can understand. Fill on the page after necessary information shows like plan institute:



Next the work is very simple, the field name that pitch on appears in Data Bindings face plate, pull him in putting the form that we a moment ago founded, the effect is shown like plan institute, the value of a certain field in the database indicates in stating we want the unit standard in correspondence so. But this appearance is insufficient still, still need one pace ability to show the record inside the database entirely come.



We a moment ago pulled pitch on that group that puts a field to go in, the effect shows like plan institute:

Switch face plate arrives Server Behaviors, our leading role should enter the court. We should bring to bear on for these data a few movements, the audition that makes them darling our word, the look that wants by us is shown come. Choose Repeat Region:



Next the dialog box is to want you to show how many record in one page. When there is thousands of record inside your database, we show them impossibly entirely come, such meetings make speed of webpage to load slows, it is to use the form of minute of page to show data commonly, those who use is behavior of this Repeat Region. We choose every page to show 3 records here.



If plan institute shows,click OK hind:



Let our switch arrive browser window, watch the program that we a moment ago created, oh, did not forget to save this one page government serves in Internet information for you implement in the acquiescent documentation name of set, here is Default.asp. The effect th at in the address column of browser window input Http://localhost sees is as follows. Ah, it is very excited, the data inside the database shows before in us, you also discover, founding a Web application so also is not very difficult. Hum, glad a little while, seeming to discover where is not right is, was opposite, here showed 3 records only, and we a moment ago were defeated by hand in the database in us went in 5 records, other? Good, let us receive the order that goes down to perfect us.


Choose menu Insert ->Live Objects ->Recordset Navigation Bar displays the function that adds to turn over a page for our record:



The join that this dialog box asks to you turn over a page uses a written language or express with image, simple for the purpose of, we use Text:



After OK, you can discover Ultradev made a form for us, there are 4 inside, it is First, Previous, Next, Last respectively, it is our common the first page re spectively, on one page, issue one page, the expression of last page method, you can repair him instead Chinese.



Arrive in switch browser window, we discover some differred, much two join, next and Last, wow! Our record can divide a page to show. Although be opposite ace, dividing a page to show also is a more troublesome issue, and will tell to Ultradev, it is the thing between raise one's hand however.



Click Next join, show the record of the 2nd page, in the meantime, the join of Previous and First appeared automatically also. Because our record has 5 only in all, every page shows 3 word does not have the 3rd page, the join that also did not have Next and Last so, ah, feel Ultradev holds out intelligence.



Good, see here, friends should have known how to show the record of the database, also learned how to divide a page to show, next content is to learn how to be gone to the record is added inside the database, listen to next answering to decompose please.

No comments:

Post a Comment