ASP Advanced Tutorial Ⅲ: Run down the color for the guest book

Source: Internet
Author: User
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 = "< TABLE border=1>< tr>< td>"
Line3 = Line3 & "Your message:" & Memo & "</td></tr></table>" Changes are as follows:
Line1 = "< TABLE border=0 bgcolor= #33CCCC width=781>< tr>< td>"
Line1 = Line1 & Name & String (5, "") & Email & "</td></tr></table>" Line2 = "< T Able border=0 bgcolor= #33CCCC width=781>< tr>< td> "
Line2 = Line2 & "Subject:" & Subject & "</td></tr></table>"
Line3 = "< TABLE border=0 bgcolor= #33CCCC width=781>< tr>< td>"
Line3 = Line3 & "Your message:" & Memo & "</td></tr></table>"
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 are only to achieve such a situation, that is: the original "Guidance client browser to guestbook1.asp to see the message" Change to "guide the client browser to the new Web page book2.asp to watch the message." (Note: guestbook2.htm and manage2.asp in the 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.

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.