110,560
社区成员
发帖
与我相关
我的任务
分享
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="DropDownList._Default" %>
<%@ Register Assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>
<!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 type="text/css">
.style1
{
width: 100%;
height: 22px;
}
.style2
{
width: 100%;
}
</style>
<script language="javascript" type="text/javascript" src="E:\新建文件夹\My97DatePicker\WdatePicker.js"></script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:DropDownList ID="DropDownListEvent" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownListEvent_SelectedIndexChanged">
<asp:ListItem Value="hao"></asp:ListItem>
<asp:ListItem Value="hen hao"></asp:ListItem>
</asp:DropDownList>
</div>
<table class="style1">
<tr>
<td>
<asp:Label ID="LabelResult" runat="server" Text="Result"></asp:Label>
</td>
<td>
</td>
</tr>
<tr>
<td>
<asp:Button ID="Summit" runat="server" Text="Summit" />
</td>
<td>
</td>
</tr>
</table>
<table class="style1">
<tr>
<td>
<asp:DropDownList ID="DropDownListAddItem" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownListAddItem_SelectedIndexChanged"
Width="126px">
</asp:DropDownList>
</td>
</tr>
</table>
<table class="style1">
<tr>
<td>
<asp:Chart ID="ChartShow" runat="server" Height="349px" Width="753px">
<Series>
<asp:Series Name="Series1">
</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea Name="ChartArea1">
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
</td>
</tr>
</table>
<table class="style2">
<tr>
<td align="center">
开始时间:
</td>
<td>
<asp:TextBox ID="TextBox1" runat="server" onfocus="new WdatePicker(this,'%Y-%M-%D %h:%m:%s',true)"></asp:TextBox>
</td>
<td align="center">
结束时间:
</td>
<td>
<asp:TextBox ID="TextBox2" runat="server" onfocus="new WdatePicker(this,'%Y-%M-%D %h:%m:%s',true)"></asp:TextBox>
</td>
</tr>
</table>
</form>
</body>
</html>
onfocus="new WdatePicker(this,'%Y-%M-%D %h:%m:%s',true,'default')"
写成这样