易截截图软件、单文件、免安装、纯绿色、仅160KB

ASP.NET AJAX 实现登陆无刷新/动态添加服务器控件

在最近开始将AJAX技术加入到日常的开发工作中。我在最近写了个AJAX的无刷新登陆且动态添加服务器控件的工作,我将此功能告诉大家希望对大家的工作有所帮助。如果大家有更好的方法且愿意在此留言让我也可以分享到你的成果。
首先在页面中的HTML标记中加入控件UpdatePanel和两个Textbox一个Button:
<asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers=false UpdateMode=Conditional>
            <ContentTemplate>
                用户名:<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                &nbsp; 密码:<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                &nbsp;
        <asp:Button ID="btnOK" runat="server" OnClick="btnOK_Click" Text="登陆" Width="103px" />
                &nbsp;
                <div id="error" style="width: 616px; height: 23px; font-weight: bold; color: red;" align="center" language="javascript" onclick="return error_onclick()" >
                </div>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnOK" />
            </Triggers>
        </asp:UpdatePanel&g


相关文档:

asp.net性能调校

由于asp.net 处理进程在machine.config配置文件中的配置为<processModel autoConfig="true" />,这意味着你的asp.net 应用程序使用的性能参数依赖于machine.config的配置。
下面几个参数是自动配置的:
maxWorkerThreads 和 maxIoThreads
minFreeThreads 和 minLocalRequestFreeThreads
minWorkerThreads
max ......

(转载)ASP.NET弹出对话框几种基本方法

 我们在.NET程序的开发过程中,常常需要和用户进行信息交互,比如执行某项操作是否成功,“确定”还是“取消”,以及选择“确定”或“取消”后是否需要跳转到某个页面等,下面是本人对常用对话框使用的小结,希望对大家有所帮助,同时也欢迎大家补充。
 
   ......

asp.net分页

1 using System;
  2 using System.Collections.Generic;
  3 using System.Collections.Specialized;
  4 using System.Linq;
  5 using System.Web;
  6 using System.Text;
  7 u ......

asp.net中mvc分页类

分页代码如下(PageHelper.cs):
代码
  1 using System;
  2 using System.Collections.Generic;
  3 using System.Collections.Specialized;
  4 using System.Linq;
  5 using System.Web;
   ......

asp.net 小菜鸟 必学

1. 打开新的窗口并传送参数:
传送参数:
response.write("<script>window.open('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"')</script>")
接收参数:
string a  = Request.QueryString("id");
string b  = Request.QueryString("id1");
2.为按钮添加对话框
Button1.Att ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号