|
There are 3 tables: categoryrogy (course), fields: categoryrogyid, categoryrogyname, categoryrogydescription, viewcount, datetime, ohter (address); department (department) table, fields: departmentid, departmentname, viewcount; category_in_depart table, fields:
departid, caterogyid, caterogyname, viewcount
Now it's time for administrators to add functionality:
<tr> <td style = "height: 68px"> Department name </ td>
<td style = "height: 68px">
<asp: DropDownList ID = "DropDownList1" runat = "server" DataSourceID = "AccessDataSource1"
DataTextField = "departname" DataValueField = "departid">
</ asp: DropDownList>
<asp: AccessDataSource ID = "AccessDataSource1" runat = "server" DataFile = "~ / App_Data / videoplay.mdb"
SelectCommand = "SELECT [departid], [departname] FROM [depart]"> </ asp: AccessDataSource>
</ td>
</ tr>
<tr>
<td> course name </ td>
<td>
<asp: TextBox ID = "TextBox2" runat = "server"> </ asp: TextBox> </ td> </ tr>
<tr> <td> Course ID </ td>
<td>
<asp: TextBox ID = "TextBox1" runat = "server"> </ asp: TextBox> </ td> </ tr>
<tr> <td> Course description </ td>
<td>
<asp: TextBox ID = "TextBox3" runat = "server" Height = "62px" Width = "168px"> </ asp: TextBox> </ td> </ tr>
<tr> <td> address </ td>
<td>
<asp: TextBox ID = "TextBox4" runat = "server"> </ asp: TextBox> </ td> </ tr>
<tr> <td>
<asp: Button ID = "Button1" runat = "server" Text = "post" OnClick = "Button1_Click" /> </ td>
<td> <asp: Label runat = "server" ID = "result"> </ asp: Label> </ td> </ tr>
That is to say, to insert new records into two tables and write access statements? |
|