Preparation of simple message board of asp + version (1)

Source: Internet
Author: User
Tags sql server connection string

Http://www.asp888.net bean curd technology station

Preface:
As the saying goes, it is better to write it over a thousand times. Indeed, there are many purely theoretical things, but there is a simple one.
In fact, in the specific program debugging process, there will certainly be a lot of problems
I have always wanted to write a program for everyone, but tofu has been very busy recently. At the end of the year, everything should be settled.
I tried to write some articles to give to everyone. I finally spent an afternoon working on this program and forgot to turn off OICQ,
Many netizens have no time to reply to the message. Here, they apologize to jspfuns and blue.

Preparations before the program starts:
The first thing to consider is how to set the SQL server connection string where all programs can access it.
Is working all out to prepare a site for the current http://www.asp888.net's aspx version, if just for this message board separately
Create a conn connection string, too... in asp +, MS copies some jsp concepts and practices, and has the config. xml file in jsp.
In asp +, the config. web file is placed in the virtual directory where the message board is located, and the connection string is placed here. Please refer to my connection string.
<Configuration>
<Deleetask>
<Add key = "Conn" value = "server = localhost; uid = sa; pwd =; Database = doufu"/>
</Appsettings>
</Configuration>

Well, after all preparations are done, we are ready to start the entry of the message board and start to use the web forms function of vs7,
Later, it was found that there were some practical inconveniences, so some traditional methods were used in combination with web forms, but vs7
It's a pity that the smart sensing function is useless. The content of default. aspx is as follows:
<% @ Page language = "c #" %>
<HTML> <HEAD>
<Meta name = "GENERATOR" Content = "Microsoft Visual Studio 7.0">
<Meta name = "CODE_LANGUAGE" Content = "C #"> </HEAD>
<Body>
<A href = "http://www.asp888.net"> bean curd technology station </a> family dedication
<Form method = "post" action = "doLiuyan. aspx" runat = "server">

<Table border = 1>
<Tr>
<Td width = "20%"> What do you mean: </td>
<Td> <asp: TextBox BackColor = "# ccffff" id = txtName Runat = server> </asp: TextBox> </td>
</Tr>
<Tr>
<Td width = "20%"> your contact Email: </td>
& Lt; td width = "80%" & gt; & lt; asp: textBox id = txtMail runat = "SERVER" BackColor = "PowderBlue" Width = "154" Height = "26" MaxLength = "40"> </asp: TextBox> </td>
</Tr>
<Tr>
<Td width = "20%"> subject: </td>
<Td width = "80%"> <asp: TextBox id = txtTitle runat = "SERVER" BackColor = "PowderBlue"> </asp: TextBox> </td>
</Tr>
<Tr>
<Td width = "20%"> your message content </td>
& Lt; td width = "80%" & gt; & lt; asp: textBox id = txtContent runat = "SERVER" BackColor = "PowderBlue" Width = "244" Height = "129" TextMode = "MultiLine"> </asp: TextBox> </td>
</Tr>
</Table>
<Input type = "submit" name = "Button1" value = "submit a message" id = "Button1" style = "background-color: Wheat; border-style: Dotted;">

<Input type = "reset" name = "Button2" value = "Cancel message" id = "Button2" style = "background-color: Wheat; border-style: Dotted;">

<A id = "HyperLink1" title = "Click here to view all messages" href = "showmsg. aspx "style =" background-color: AntiqueWhite; border-style: Dotted; "> View All messages </a> </p>
</Form>
</Body> </HTML>
Haha, I used this page to test web form, so I made some things that are not well known, haha :)


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.