ASP Advanced Tutorial: To run down the color of the guest book

Source: Internet
Author: User
Tags client
In order to make our guest book more beautiful, let us to the last chapter of the simple guest book run color, and then make its message in another separate page display.
So how do you polish the guest book? The background of the message form interface can't you? And in order for the content of the message form to be more structured, is it necessary to frame the contents of the message form? Think it over, now let's do it immediately to our guest book whitewash refresh.

Step One: Add the background to the message form first

I don't have to waste my breath here on this question. As for how to add an undertone to the contents of the form and then use the virtual box, we can change the "define the display format" section of the program in the previous chapter. I just added a little background to the contents of the message form. My approach is very simple to just code:

Line3 = "$#@60; TABLE border=1$#@62;$#@60; tr$#@62;$#@60; td$#@62; "
Line3 = Line3 & "Your message:" & Memo & "$#@60; /td$#@62;$#@60; /tr$#@62;$#@60; /table$#@62; " The changes are as follows:
Line1 = "$#@60; TABLE border=0 bgcolor= #33CCCC width=781$#@62;$#@60; tr$#@62;$#@60; td$#@62; "
Line1 = Line1 & Name & String (5, "") & Email & "$#@60; /td$#@62;$#@60; /tr$#@62;$#@60; /table$#@62; " Line2 = "$#@60; TABLE border=0 bgcolor= #33CCCC width=781$#@62;$#@60; tr$#@62;$#@60; td$#@62; "
Line2 = Line2 & "theme: & Subject &" $#@60; /td$#@62;$#@60; /tr$#@62;$#@60; /table$#@62; "
Line3 = "$#@60; TABLE border=0 bgcolor= #33CCCC width=781$#@62;$#@60; tr$#@62;$#@60; td$#@62; "
Line3 = Line3 & "Your message:" & Memo & "$#@60; /td$#@62;$#@60; /tr$#@62;$#@60; /table$#@62; "

I would like to remind you here again not to use FontPage98 or DreamWeaver2.0 and other homepage making software to make changes.

Step two, how to let the message another page to show it?

We can save the guestbook1.asp in step three by removing the HTML code from the first chapter and then saving it as a guestbook2.htm; the last sentence of manage1.asp: Response.Redirect "guestbook1.asp "Change to: Response.Redirect" book2.asp "Save as manage2.asp." In fact, the above two changes just to achieve this? Situation, is: The original "Guide client browser to guestbook1.asp to see the message" Change to "guide the client browser to another new Web page book2.asp to watch the message." ( Note :Guestbook2.htm and Manage2.asp source code involved in the file name to make the corresponding changes, I do not repeat here.
Since in the manage2.asp, we guide the client browser to book2.asp to see the message, then we have to create a new book2.asp, and open the message record in book2.asp. We can cut down the following code and coexist into book2.asp.

$#@60; html$#@62;
$#@60; head$#@62;
$#@60; Meta http-equiv= "Content-type" content= "text/html;" charset=gb2312 "$#@62;
$#@60; title$#@62, message thin $#@60; /title$#@62;
$#@60; Link rel= "stylesheet" href= ". /images/text.css "$#@62;
$#@60; /head$#@62;
$#@60; Body text= "#000000" bgcolor= "#FFFFFF" does not background= "b01.jpg" $#@62;
$#@60; H2 align= "CENTER" $#@62, message thin $#@60; /h2$#@62; $#@60; HR NoShade color= "Red" $#@62;
$#@60!--#include file= "Book2.txt"--$#@62;
$#@60; A href= "guestbook2.htm" class= "Text2" $#@62;
$#@60; P align= "Center" $#@62 return message thin $#@60; /a$#@62;
$#@60; /p$#@62;
$#@60; /body$#@62;
$#@60; /html$#@62;

To the guest book to polish, we can according to their own likes and dislikes to set, which is relatively simple. But have we ever thought that it would just show all the messages on one page
Is it a bit inappropriate? Just imagine, if the message is only so ten or 20, but if we have hundreds or even thousands of message records, God, I really want to wait until when the message interface is fully displayed? And with so many messages on the same page, does it make you interested to check your messages?
In order to manage the message display, make the guest book more practical, easier to manage, we will begin in the next chapter to learn the database version of the guest books written.


Related Article

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.