温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:汽车配件公司网站(VB.net+Access数据库)源码
当前文件:
VbNetCompany/news.aspx,打开代码结构图
VbNetCompany/news.aspx,打开代码结构图1<%@ Page Language="vb" AutoEventWireup="true" CodeFile="news.aspx.vb" Inherits="news" %> 2
3
4
<HTML><HEAD> 5
<TITLE>汽配制造有限公司</TITLE> 6
<STYLE type=text/css></STYLE> 7
<META content="Microsoft FrontPage 4.0" name=GENERATOR> 8
<script language="JavaScript"> 9
function NewsWindow(id) 10
{ 11
window.open('new/newswind.aspx?id='+id,'infoWin', 'height=400,width=600,scrollbars=yes,resizable=yes'); 12
} 13
</script> 14
<link rel="stylesheet" type="text/css" href="css.css"> 15
</HEAD> 16
<BODY leftMargin=0 topMargin=0 marginheight="0" marginwidth="0"> 17
<form runat =server > 18
<TABLE align=center border=0> 19
<TBODY> 20
<TR> 21
<TD background=images/001.jpg height=113 width=778> </TD> 22
</TR> 23
</TBODY> 24
</TABLE> 25
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=778> 26
<TBODY> 27
<TR> 28
<TD height=39><IMG border=0 height=39 src="images/002.gif" 29
useMap=#Map2 width=778></TD> 30
</TR> 31
32
</TBODY> 33
</TABLE> 34
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=778> 35
<TBODY> 36
<TR> 37
<TD bgColor=#f0f0f0 vAlign=top> <TABLE height="172" border=0> 38
<TBODY> 39
<TR borderColor=#000000> 40
<TD bgColor=#ffe6c2 vAlign=top width=212><img src="images/q.gif" width="200" height="250"> 41
</TD> 42
<TD vAlign=top width=31> </TD> 43
<TD vAlign=top width=521> 44
<asp:AccessDataSource ID="SqlDataSource1" runat="server" datafile="<%$ ConnectionStrings:newsConnectionString %>" SelectCommand="Select top 8 * From data Order By time DESC" > </asp:AccessDataSource> 45
<asp:GridView ID="GridView1" runat="server" AllowPaging="False" AutoGenerateColumns="False" ShowHeader="False" GridLines="None" DataSourceID="SqlDataSource1" PageSize="6"> 46
<Columns> 47
<asp:TemplateField> 48
<ItemTemplate> 49
<table width="100%" border="0"> 50
<tr> 51
<td> 52
<img src=images/dot.gif width="15" height="11"><a href="new/newswind.aspx?id=<%# Eval("id") %>" target=_blank><u><%# Eval("name") %></u></a> 53
<font size="1"><%# Eval("time") %></font> <br> 54
</td></tr> 55
</table> 56
</ItemTemplate> 57
</asp:TemplateField> 58
</Columns> 59
</asp:GridView> 60
<p> </p></TD> 61
</TR> 62
</TBODY> 63
</TABLE></TD> 64
</TR> 65
</TBODY> 66
</TABLE> 67
<table width="778" border="0" align="center"> 68
<tr> 69
<td width="778" height="118" bgcolor="#00734E"><div align="center"><font color="#FFFFFF">Copyright©® 70
2003-2004.汽配制造有限公司, All Rights Reserved<br> 71
</font></div></td> 72
</tr> 73
</table> 74
<div align="center"> 75
<MAP name=Map2> 76
<AREA coords=30,9,58,26 77
href="index.aspx" shape=RECT> 78
<AREA 79
shape=RECT 80
coords=81,8,132,29 href="news.aspx"> 81
<AREA shape=RECT coords=155,10,209,26 82
href="chanpin.aspx"> 83
<AREA 84
shape=RECT 85
coords=231,9,281,26 href="biao.aspx"> 86
<AREA shape=RECT coords=295,9,346,27 87
href="order.aspx"> 88
<AREA 89
shape=RECT 90
coords=371,9,421,27 href="guestbook.aspx"> 91
<AREA 92
shape=RECT coords=445,8,504,28 93
href="lianxi.aspx"> 94
</MAP> 95
</div> 96
</form> 97
</BODY></HTML> 98






}