急!!!请大家快来帮帮忙拉,谢谢,散分(datagrid和calendar的问题) 你查看一下源代码,看看datagrid 是否真的在你的"<form id="a" runat="server"></form>"里面 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 是啊,我把form放在<body></body>之间的啊datagrid和calendar都在里面的啊就是:<body><form><asp datagrid></asp></form></body>这样的啊 把aspx页面代码代码贴出来看看 <HTML> <HEAD> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link rel="stylesheet" href="css.css" type="text/css"> </HEAD> <body> <form id="a" runat="server"><asp:datagrid id="DataGrid1" runat="server" CssClass="tablecontent" AutoGenerateColumns="False" Width="496px" Height="32px"> <AlternatingItemStyle BackColor="#F3F3F3"></AlternatingItemStyle> <ItemStyle Height="35px" BackColor="White"></ItemStyle> <HeaderStyle Height="1px"></HeaderStyle> <Columns> <asp:BoundColumn Visible="False" HeaderImageUrl="file:///C:\Inetpub\wwwroot\efficiency\images\blank.gif" DataField="noteID"></asp:BoundColumn> <asp:ButtonColumn HeaderImageUrl="file:///C:\Inetpub\wwwroot\efficiency\images\blank.gif" DataTextField="title" CommandName="show"></asp:ButtonColumn> </Columns> <PagerStyle NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right"></PagerStyle> </asp:datagrid><asp:calendar id="c1" runat="server" Width="840px" Height="234px" BackColor="White" ShowGridLines="True" DayNameFormat="Full" BorderColor="Silver" Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" BorderWidth="1px"> <TodayDayStyle ForeColor="White" BackColor="#FF8080"></TodayDayStyle> <SelectorStyle BackColor="#FFCC66"></SelectorStyle> <NextPrevStyle Font-Size="9pt" ForeColor="DarkGoldenrod"></NextPrevStyle> <DayHeaderStyle Height="1px" BorderWidth="1px" BackColor="#E9EDF1"></DayHeaderStyle> <SelectedDayStyle Font-Bold="True" BackColor="#CCCCFF"></SelectedDayStyle> <TitleStyle Font-Size="9pt" Font-Bold="True" ForeColor="#404040" BackColor="#E9EDF1"></TitleStyle> <OtherMonthDayStyle ForeColor="#CC9966"></OtherMonthDayStyle> </asp:calendar> </form> </body></HTML>代码很长,有关datagrid和calendar的就是上面这些。 试试这样吧!<asp:table id="table1" runat="server" Height="80px" align="center"><asp:TableRow align="center"><asp:TableCell bgcolor="d6f7ff"><asp:calendar id="c1" runat="server" Width="840px" Height="234px" BackColor="White" ShowGridLines="True"DayNameFormat="Full" BorderColor="Silver" Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" BorderWidth="1px"><TodayDayStyle ForeColor="White" BackColor="#FF8080"></TodayDayStyle>SelectorStyle BackColor="#FFCC66"></SelectorStyle><NextPrevStyle Font-Size="9pt" ForeColor="DarkGoldenrod"></NextPrevStyle><DayHeaderStyle Height="1px" BorderWidth="1px" BackColor="#E9EDF1"></DayHeaderStyle><SelectedDayStyle Font-Bold="True" BackColor="#CCCCFF"></SelectedDayStyle><TitleStyle Font-Size="9pt" Font-Bold="True" ForeColor="#404040" BackColor="#E9EDF1"></TitleStyle><OtherMonthDayStyle ForeColor="#CC9966"></OtherMonthDayStyle></asp:calendar></asp:TableCell bgcolor="d6f7ff"></asp:TableRow align="center"></asp:table> 跪求,俯卧撑求,爬求,跳求,躺着求,玩命求!!!javascript如何捕获Activex的事件!!! 自助建站 ASP.NET集成开发环境中Div的问题 高手请看下.?????????????????????? 在线结账:把脚本放到Script.js中报错,把脚本拷到当前页中又没问题,头痛!! 服务端识别客户端控件的原理是什么? 思归大哥,请进,用xsl将xml转换网页 怎么获取word文档的页数啊 散分,讨论主从表的Web录入方式,up这有分 新装的运行环境,为什么.cs不能用? 散分求解框架网页问题!!!(我没招了) 散分:哪有最新MSDN下载?
datagrid和calendar都在里面的啊
就是:<body><form><asp datagrid></asp></form></body>这样的啊
<HEAD>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css.css" type="text/css">
</HEAD>
<body>
<form id="a" runat="server"><asp:datagrid id="DataGrid1" runat="server" CssClass="tablecontent" AutoGenerateColumns="False"
Width="496px" Height="32px">
<AlternatingItemStyle BackColor="#F3F3F3"></AlternatingItemStyle>
<ItemStyle Height="35px" BackColor="White"></ItemStyle>
<HeaderStyle Height="1px"></HeaderStyle>
<Columns>
<asp:BoundColumn Visible="False" HeaderImageUrl="file:///C:\Inetpub\wwwroot\efficiency\images\blank.gif"
DataField="noteID"></asp:BoundColumn>
<asp:ButtonColumn HeaderImageUrl="file:///C:\Inetpub\wwwroot\efficiency\images\blank.gif" DataTextField="title"
CommandName="show"></asp:ButtonColumn>
</Columns>
<PagerStyle NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right"></PagerStyle>
</asp:datagrid><asp:calendar id="c1" runat="server" Width="840px" Height="234px" BackColor="White" ShowGridLines="True"
DayNameFormat="Full" BorderColor="Silver" Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399"
BorderWidth="1px">
<TodayDayStyle ForeColor="White" BackColor="#FF8080"></TodayDayStyle>
<SelectorStyle BackColor="#FFCC66"></SelectorStyle>
<NextPrevStyle Font-Size="9pt" ForeColor="DarkGoldenrod"></NextPrevStyle>
<DayHeaderStyle Height="1px" BorderWidth="1px" BackColor="#E9EDF1"></DayHeaderStyle>
<SelectedDayStyle Font-Bold="True" BackColor="#CCCCFF"></SelectedDayStyle>
<TitleStyle Font-Size="9pt" Font-Bold="True" ForeColor="#404040" BackColor="#E9EDF1"></TitleStyle>
<OtherMonthDayStyle ForeColor="#CC9966"></OtherMonthDayStyle>
</asp:calendar> </form>
</body>
</HTML>
代码很长,有关datagrid和calendar的就是上面这些。
<asp:table id="table1" runat="server" Height="80px" align="center">
<asp:TableRow align="center">
<asp:TableCell bgcolor="d6f7ff">
<asp:calendar id="c1" runat="server" Width="840px" Height="234px" BackColor="White" ShowGridLines="True"
DayNameFormat="Full" BorderColor="Silver" Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" BorderWidth="1px">
<TodayDayStyle ForeColor="White" BackColor="#FF8080"></TodayDayStyle>
SelectorStyle BackColor="#FFCC66"></SelectorStyle>
<NextPrevStyle Font-Size="9pt" ForeColor="DarkGoldenrod"></NextPrevStyle>
<DayHeaderStyle Height="1px" BorderWidth="1px" BackColor="#E9EDF1"></DayHeaderStyle>
<SelectedDayStyle Font-Bold="True" BackColor="#CCCCFF"></SelectedDayStyle>
<TitleStyle Font-Size="9pt" Font-Bold="True" ForeColor="#404040" BackColor="#E9EDF1"></TitleStyle>
<OtherMonthDayStyle ForeColor="#CC9966"></OtherMonthDayStyle>
</asp:calendar>
</asp:TableCell bgcolor="d6f7ff">
</asp:TableRow align="center">
</asp:table>