当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: FRMMAIN.ASPX.CS using S
 

 

 ·asp.net中使用静态变量    »显示摘要«
    摘要: 在asp.net中使用静态变量要比application更好的选择 在传统的asp页面中,我们需要利用application变量传递一些特殊变量,在asp.net中任何页面都可以是类,global.asax也不例外。 我们只需要在global.asax加入类名。 <%@ application classname="myglobals" %> 然后......
    摘要: using system; using system.data; using system.data.sqlclient; using system.web; using system.web.ui.webcontrols; namespace osleagueforumxp.admin { /// <summary> /// 编辑公告页面 /// </s......


用ASP.NET写你自己的代码生成器(2)。
frmmain.aspx.cs using system; using system.collections; using system.componentmodel; using system.data; using system.data.sqlclient; using system.drawing; using system.web; using system.web.sessionstate; using system.web.ui; using system.web.ui.webcontrols; using system.web.ui.htmlcontrols; namespace web_test {     /// <summary>     /// 作者:davi     /// 日期:3003-03-18     /// </summary>     public class frmmain : system.web.ui.page     {         protected system.web.ui.webcontrols.label label1;         protected system.web.ui.webcontrols.label label2;         protected system.web.ui.webcontrols.label label4;         protected system.web.ui.webcontrols.dropdownlist dropdownlist1;         protected system.web.ui.webcontrols.label label5;         protected system.web.ui.webcontrols.textbox txtservername;         protected system.web.ui.webcontrols.textbox txtusername;         protected system.web.ui.webcontrols.textbox txtpassword;         protected system.web.ui.webcontrols.button button1;         protected system.web.ui.webcontrols.dropdownlist dropdownlist2;         protected system.web.ui.webcontrols.label label6;         protected system.web.ui.webcontrols.label label7;         protected system.web.ui.webcontrols.button button2;         protected system.web.ui.webcontrols.dropdownlist dropdownlist3;         protected system.web.ui.webcontrols.button button3;         protected system.web.ui.webcontrols.textbox txtlayout;         protected system.web.ui.webcontrols.button button4;         protected system.web.ui.webcontrols.button button5;         protected system.web.ui.webcontrols.button button6;   &
...   下一页
 ·验证控件介绍--comparevalidator    »显示摘要«
    摘要: 为了比较两个控件的值,此时我们需要使用comparevalidator 控件。 在下面的这个例子中,我们将讲解comparevalidator 控件的用法。 先看文件validata4.aspx: <!--源文件:form\web页面简介\validate4.aspx--> <%@ page clienttarget=downlevel %> <htm......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE