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

DevExpress Asp.net(1) AspxButton的客户端操作(转)

20090626
javascript调用父窗口(父页面)的方法
window.parent与window.opener的区别 javascript调用主窗口方法
1:   window.parent 是iframe页面调用父页面对象
2:   window.opener 是window.open 打开的子页面调用父页面对象
具体例子就不写了。
 
DevExpress.Web控件中的AspxButton的客户端验证
我们在用.net 默认的AspButton做面页提交时,如果需要客户端验证,我们一般要
这么写就可以,如下:
view plaincopy to clipboardprint?
<asp:Button ID="btnSubmit" runat="server" Text="提交" OnClientClick="return btnClick();" />  
<asp:Button ID="btnSubmit" runat="server" Text="提交" OnClientClick="return btnClick();" /> 如果验证没能通过,在JS函数validate中直接return false就可以了,但AspxButton可不行,
费了好大的劲才找到合适的方法,如下:
 
view plaincopy to clipboardprint?
<dxe:ASPxButton ID="btnSubmit" runat="server" ClientInstanceName="btnClientSubmit"  
                   Text="提交">  
                   <ClientSideEvents Click="function validate(s, e) {            
                           if (txtMemo.GetText() == '') {   
                               alert('请输入有效的值!');   
                               


相关文档:

asp.net自定义错误处理页面的几种方法

ASP.NET 提供三种用于在出现错误时捕获和响应错误的主要方法:Page_Error 事件、Application_Error 事件以及应用程序配置文件 (Web.config)。
如果您不调用 Server.ClearError 或者捕获 Page_Error 或 Application_Error 事件中的错误,则将根据 Web.config 文件的 <customErrors> 部分中的设置处理错误。在 <cus ......

asp.net 存储过程分页字段排序

最近在asp.net 用到的sqlserver存储过程分页中显示数据时遇到关于排序问题。
网上的一些分页存储过程只支持排序列为int 类型,对于实际开发中很多时候都需要对DateTime类型,varchar类型进行排序。
下面分享一下可以支持任意数据类型的列进行排序的存储过程。
Create PROCEDURE  sp_viewByPage
@TblName  var ......

[ASP.net]学习asp.net的完整流程

本贴来自ZDNetChina中文社区 http://bbs.zdnet.com.cn/
本贴地址:http://bbs.zdnet.com.cn/viewthread.php?tid=108315
 
如果你已经有较多的面向对象开发经验,跳过以下这两步:
  第一步 掌握一门.NET面向对象语言,C#或VB.NET 我强烈反对在没系统学过一门面向对象(OO)语言的前提下去学ASP.NET。 ASP.NET是 ......

apss asp.net C# web 定时执行程序

using System;
using System.Collections;
using System.ComponentModel;
using System.Web;
using System.Web.SessionState;
using System.Timers;
using System.Data;
using System.Data.SqlClient;
namespace SMS_joke
{
/// <summary>
/// Global 的摘要说明。
/// </summary>
public class ......

Asp.Net 简单考题管理系统


default.aspx.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls. ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号