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

带编辑的下拉框asp.net

修改了从:http://www.cnblogs.com/ejiyuan/archive/2007/11/09/954325.html的一批文章 生成了可以在Gridview里面调用的CombBox控件,是基于Ajax的。
    独立使用使用方式():  <Com:ComboBox ID="ComboBox2" runat="server" Independent="true"  Width="80px" EnableViewState="true">
                    </Com:ComboBox>
在Gridview使用方式():  <Com:ComboBox ID="ComboBox2" runat="server" Independent="false"  Width="80px" EnableViewState="true" DataArg='<%Eval("编号") %>'>
                    </Com:ComboBox>
using System;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Collections;
using System.Web.UI.Design;
[assembly: TagPrefix("Com", "Com")]
namespace Com
{
    /// <summary>
    /// Represents a control that allows the user to select a single item from a drop-down list,
    /// or type in a new value that is not in the list.
    /// </summary>
    /// <remarks>
    /// Since the ComboBox control inherits from <see cref="System.Web.UI.WebControls.ListBox"/>,
    /// you can use it in exactly the same manner (including DataBinding).
    /// For older browsers that do not support the functionality required to render this control,
    /// a normal dropdown box will be emitted instead.
    /// </remarks>
    [ToolboxData("<{0}:ComboBox runat=\"server\"></{0}:ComboBox>")]
    [ValidationPropertyAttribute("SelectedValue")]
    [Designer(typeof(Com.ComboBoxDesigner))]
 &nbs


相关文档:

asp.net文本框验证输入


//使用验证方法
 if (!InputValidator(txt.Text.Trim()))
            {
                ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "myScript", "alert('\"文本框\"输入了非法字符或输入超长!');", t ......

ASP.NET上传大文件解决方案

这次在项目中,用到了大文件上传,要上传的文件有100多m,于是研究现在国内使用的大文件上传的
组件发现用的比较多的有两个控件AspnetUpload 2.0和Lion.Web.UpLoadModule,另外还有思归在它的博
客堂中所说的办法 http://blog.joycode.com/saucer/archive/2004/03/16/16225.aspx
两个控件的方法是:利用隐含的HttpWork ......

ASP.NET调用存储过程

        public static string GetCustomerCName(ref ArrayList arrayCName,ref ArrayList arrayID)
        {
            SqlConnection con=ADConnection.createConnection();
  ......

ASP.Net 1.1 如何上传文件

ASP.Net 1.1 没有.Net2.0提供的FileUpload控件,需要添加一个type为file的html input控件,然后再写一个
独立的upload button。实例如下:
1. HTML
  <input id="txtAttch" type="file" runat="server">
<br>
<input id="cmdUpload" type="button" value="Upload" runat="server">
2. Server ......

Asp.Net防止刷新重复提交数据

     在做项目的时候遇到这样的问题,网上找了下,觉得还可以,分享给大家
1楼
Asp.Net防止刷新重复提交数据小记
最近在用Asp.Net编写点东西时遇到个问题:即用户在提交表单后按刷新就会重复提交数据,即所谓的“刷新重复提交”的问题。在网上搜 一下,可以找到很多关于这方面的资料 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号