WEB开发网
开发学院WEB开发ASP.NET [原创]asp.net下的日历控件源代码 阅读

[原创]asp.net下的日历控件源代码

 2007-12-15 09:31:35 来源:WEB开发网   
核心提示:<TitleStyle Font-Size="7pt" Font-Bold="True" Height="25px" BorderWidth="1px" ForeColor="White" BorderStyle=

      <TitleStyle Font-Size="7pt" Font-Bold="True" Height="25px" BorderWidth="1px" ForeColor="White"
       BorderStyle="Solid" BorderColor="#D9D9E6" BackColor="#6699CC"></TitleStyle>
      <WeekendDayStyle BackColor="#CCCCFF"></WeekendDayStyle>
      <OtherMonthDayStyle ForeColor="#999999"></OtherMonthDayStyle>
      </asp:Calendar></td>
     </tr>
    </table>
    </div>
   </div>
   </td>
   <td><asp:imagebutton id="ImageButton1" runat="server" ImageUrl="~/images/loginImg/login_ok.gif"></asp:imagebutton></td>
  </tr>
  </table>
  <P> </P>
  <P><FONT face="宋体"></FONT> </P>
  <P><FONT face="宋体"></FONT> </P>
  <P><FONT face="宋体"></FONT> </P>
  <P><FONT face="宋体"></FONT> </P>
  <P><FONT face="宋体"></FONT> </P>
  <P> </P>
 </form>
 </body>
</HTML>

后台cs文件
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;


using NickLee.Web.UI;


namespace orderMRP.demo.Calendar
{
 /// <summary>
 /// demoCalendar 的摘要说明。
 /// </summary>
 public class demoCalendar : System.Web.UI.Page
 {
 private NickLee.Web.UI.encryption en1=new encryption();
 private webDataFill Fill=new webDataFill();


 protected System.Web.UI.WebControls.ImageButton ImageButton1;
 protected System.Web.UI.WebControls.TextBox ddl_Text;
 protected System.Web.UI.WebControls.Button Button1;
 protected System.Web.UI.WebControls.Calendar Calendar1;
 
 private void Page_Load(object sender, System.EventArgs e)
 {
  Fill.ConString=System.Configuration.ConfigurationSettings.AppSettings["SqlConnectionString"];
 
 }


 #region Web Form Designer generated code
 override protected void OnInit(EventArgs e)
 {
  //
  // CODEGEN:该调用是 ASP.NET Web 窗体设计器所必需的。

上一页  1 2 3 4  下一页

Tags:原创 asp net

编辑录入:coldstar [复制链接] [打 印]
赞助商链接