易截截图软件、单文件、免安装、纯绿色、仅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 画图(条形图、折线图、饼图)

条形图和饼图是都要调用数据库 而折线图则是直接显示不用调用数据库
打开vs 工具 分别创建三中图形的类 (BarChart、PieChart、zexian)ChartUtil类控制颜色
再建一个aspx 文件在后置文件中调用这个几个类中的方法 本文章中有调用
using System;
using System.Collections.Generic;
using System.Linq;
using System ......

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中DataList控件属性

ItemTemplate:项模版,标记了每行显示的内容
AlternatingItemTemplate:交替项模版,可设置交替行显示不同的风格,不设置时,与项模版相同
SelectedItemTemplate:选中模版,设置选中后的特殊样式
EditItemTemplate:编辑项模版
HeaderTemplate和FooterTemplate:页眉和页脚的模版
SeparatorTemplate:分隔符模版,一般用 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号