首页
新闻
论坛
群组
Blog
文档
下载
读书
Tag
网摘
搜索
.NET
Java
游戏
视频
人才
外包
培训
数据库
书店
程序员
欢迎您:
游客
| 退出
| 登录
注册
帮助
我的帖子
我参与的帖子
我的空间
我的网摘
CSDN
CSDN社区
.NET技术
ASP.NET
将帖子提前
放进我的网摘
推荐给好友
我要提问
帖子加分
生成帖子
置顶
推荐(加精)
取消推荐(加精)
锁定帖子
移动帖子
结贴去...
管理菜单
页面风格切换
标准风格
老版本论坛
看看吧,这是母板页有啥错
加为好友
发送私信
在线聊天
tian_fang
fangfang
等级:
发表于:
2008-05-10 16:10:38
楼主
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<%@ Register Src="../UserControl/navigationControl.ascx" TagName="navigationControl" TagPrefix="uc2" %>
<%@ Register Src="../UserControl/MHelp.ascx" TagName="MHelp" TagPrefix="uc1" %>
<%@ Register Src="../UserControl/bottom.ascx" TagName="bottom" TagPrefix="uc6" %>
<%@ Register Src="../UserControl/LoadingControl.ascx" TagName="LoadingControl" TagPrefix="uc7" %>
<%@ Register Src="../UserControl/ShoppingCarControl.ascx" TagName="ShoppingCarControl" TagPrefix="uc8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>母版页 </title>
<style >
body {margin-top:0px}
</style>
</head>
<body >
<form id="form1" runat="server" >
<br />
<table style=" width :1002px; height :855px; font-size: 9pt; font-family: 宋体; background-image: url(../Images/index/左右两侧背景.jpg); vertical-align :top" align ="center" >
<tr valign =top align =left >
<td bordercolor =ActiveBorder style="width: 998px">
<table style="width :780px; height :97px; font-size: 9pt; font-family: 宋体; background-image: url(../Images/index/navigation.jpg);" align ="center" border="0" cellpadding="0" cellspacing="0">
<tr valign =top > <td colspan =2 align =left style="width: 785px; height: 93px;" valign =top rowspan="2" > <br />
<asp:LinkButton ID="lnkbtnShopCart" runat="server" OnClick="lnkbtnShopCart_Click" Font-Names="宋体" Font-Underline="False" ForeColor="Black" CausesValidation="False">购物车 </asp:LinkButton>
¦ <a href="mailto:mingrisoft@mingrisoft.com" style=" color:Black; font-size: 9pt; font-family: 宋体; text-decoration :none;">联系管理员 </a> ¦ <a href="#" style=" color:Black; font-size: 9pt; font-family: 宋体; text-decoration :none;" onclick ="this.style.behavior='url(#default#homepage)';this.sethomepage('hppt://www.mingrisoft.com')">设置主页 </a>
¦ <a href="#" onclick="window.external.addFavorite('http://www.mingrisoft.com');"> <font color="white" style=" color:Black; font-size: 9pt; font-family: 宋体; text-decoration :none;">收藏本站 </font> </a>
<br /> <br />
<font color="white">今天是: </font> <asp:Label ID="labDate" runat="server" Font-Names="宋体" ForeColor="White"> <%# System.DateTime.Now.ToLongDateString() %> </asp:Label>
<asp:HyperLink ID="HyperLink7" runat="server" NavigateUrl="~/User/index.aspx?" ForeColor="White">商城首页 </asp:HyperLink>
<font color="white">/ </font> <asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl="~/User/RHDGoods.aspx?Display=1" ForeColor="White">精品推荐 </asp:HyperLink>
<font color="white">/ </font> <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/User/RHDGoods.aspx?Display=3" ForeColor="White">特价商品 </asp:HyperLink>
<font color="white">/ </font> <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/User/RHDGoods.aspx?Display=2" ForeColor="White">热销商品 </asp:HyperLink>
<font color="white">/ </font> <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/User/qbts.aspx?Display=3" ForeColor="White">全部图书 </asp:HyperLink>
<font color="white">/ </font> <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="~/User/lxwm.aspx?Display=2" ForeColor="White">联系我们 </asp:HyperLink> <br />
<asp:Label ID="labDateTime" runat="server" Text="Label" Font-Names="宋体" ForeColor="White"> </asp:Label> </td>
</tr>
<tr>
</tr>
</table>
<table style="width :780px; height :420px; font-size: 9pt; font-family: 宋体;" align =center border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="2" valign="top" align =left style="width: 220px; height :666px" >
<uc7:LoadingControl ID="LoadingControl1" runat="server" OnLoad="LoadingControl1_Load" />
<uc2:navigationControl ID="NavigationControl1" runat="server" />
</td>
<td align =left rowspan="2" valign =top style="width: 560px" >
<div style="text-align: center">
<div> <table style="width: 100%; height:30px" >
<tr>
<td style="width: 368px; text-align: right; height: 2px;">
请输入关键字搜索: </td>
<td style="width: 157px; height: 2px; text-align: right">
<asp:TextBox ID="txtkey" runat="server" MaxLength="20" TextMode="SingleLine"> </asp:TextBox> </td>
<td style="width: 100px; height: 2px; text-align: left">
<asp:DropDownList ID="type" runat="server" AppendDataBoundItems="True" CssClass="css"
DataTextField="studyYear" DataValueField="studyYear" Width="73px" DataSourceID="type">
<asp:ListItem>书名 </asp:ListItem>
<asp:ListItem>类型 </asp:ListItem>
<asp:ListItem>出版社 </asp:ListItem>
</asp:DropDownList> </td>
<td style="width: 100px; height: 2px; text-align: left">
<asp:Button ID="Button1" runat="server" Text="搜索" /> </td>
</tr>
</table>
</div>
<asp:ContentPlaceHolder ID="FartherMain" runat =server >
</asp:ContentPlaceHolder>
</td>
</tr>
<tr valign =top>
</tr>
<tr align =right >
<td colspan =2 align =center cellpadding=0 cellspacing=0 >
<uc1:MHelp id="MHelp1" runat="server">
</uc1:MHelp>
</td>
</tr>
<tr align =right >
<td colspan =2 >
<uc6:bottom ID="Bottom1" runat="server" /> </td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
问题点数:
20
回复次数:
3
显示所有回复
显示星级回复
显示楼主回复
修改
删除
举报
引用
回复
加为好友
发送私信
在线聊天
LoveCherry
论成败,人生豪迈;大不了,重头再来!^_^
等级:
发表于:
2008-05-10 16:13:54
1
楼 得分:
0
错误信息呢?
修改
删除
举报
引用
回复
加为好友
发送私信
在线聊天
tian_fang
fangfang
等级:
发表于:
2008-05-10 16:17:53
2
楼 得分:
0
“/图书商城”应用程序中的服务器错误。
--------------------------------------------------------------------------------
“type”的 DataSourceID 必须是 IDataSource 类型的控件的 ID。“type”不是 IDataSource。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Web.HttpException: “type”的 DataSourceID 必须是 IDataSource 类型的控件的 ID。“type”不是 IDataSource。
源错误:
执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:
[HttpException (0x80004005): “type”的 DataSourceID 必须是 IDataSource 类型的控件的 ID。“type”不是 IDataSource。]
System.Web.UI.WebControls.DataBoundControl.GetDataSource() +296
System.Web.UI.WebControls.DataBoundControl.ConnectToDataSourceView() +160
System.Web.UI.WebControls.DataBoundControl.OnLoad(EventArgs e) +17
System.Web.UI.Control.LoadRecursive() +49
System.Web.UI.Control.LoadRecursive() +132
System.Web.UI.Control.LoadRecursive() +132
System.Web.UI.Control.LoadRecursive() +132
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3750
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.1433; ASP.NET 版本:2.0.50727.1433
这是错误信息
修改
删除
举报
引用
回复
加为好友
发送私信
在线聊天
tiancaolin
天草麟
等级:
发表于:
2008-05-11 03:52:52
3
楼 得分:
0
<asp:DropDownList ID="type" runat="server" AppendDataBoundItems="True" CssClass="css"
DataTextField="studyYear" DataValueField="studyYear" Width="73px" DataSourceID="type">
<asp:ListItem>书名 </asp:ListItem>
<asp:ListItem>类型 </asp:ListItem>
<asp:ListItem>出版社 </asp:ListItem>
</asp:DropDownList> </td>
你绑定到dropdownlist 的sqldatasource呢?
修改
删除
举报
引用
回复
将帖子提前
放进我的网摘
推荐给好友
我要提问
帖子加分
结贴去...
管理菜单
页面风格切换
标准风格
老版本论坛
网站简介
-
广告服务
-
网站地图
-
帮助
-
联系方式
-
诚聘英才
-
English
-
问题报告
世纪乐知(北京)网络技术有限公司 版权所有 京 ICP 证 020026 号
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
abc推荐给好友