asp.net µÄComboBox ¿ÉÊäÈë¿ÉÑ¡ÔñÏÂÀÁбí
ÎÄÕ³ö´¦£ºhttp://www.cnblogs.com/ejiyuan/archive/2007/11/09/954325.html
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("AtomNet.Web.UI.WebControls", "AtomNet")]
namespace AtomNet.Web.UI.WebControls
{
/// <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(AtomNet.Web.UI.WebControls.ComboBoxDesigner))]
public class ComboBox : System.Web.UI.WebControls.ListBox
{
#region ˽ÓÐÊôÐÔ
/// <summary>
/// The <see cref="System.Web.UI.WebControls.TextBox"/> used internally to allow the user
/// to type in new values.
/// </summary>
TextBox textBox = new TextBox();
Ïà¹ØÎĵµ£º
private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( ) ); } µÚ¶þ£º
private void Button2_Click( object sender, System.EventArgs e ) { Response.Write( " < script language=javascript>window.location.href=document.URL; < /script>" ); } ......
Èç¹ûÓû§Ê¹ÓõÄä¯ÀÀÆ÷Ö§³Ö¶¯Ì¬ HTML (DHTML)£¬Ôò ASP.NET ÑéÖ¤¿Ø¼þ¿ÉÒÔʹÓÿͻ§¶Ë½Å±¾À´Ö´ÐÐÑéÖ¤¡£ÒòΪÕâÖֿؼþ¿ÉÒÔÌṩ¼°Ê±·´À¡£¨ÎÞÐèµ½·þÎñÆ÷µÄÍù·µ¹ý³Ì£©£¬ËùÒÔÓû§»á¸Ð¾õµ½Ò³µÄÐÔÄÜÓÐËù¸ÄÉÆ¡£
ÔÚ´ó¶àÊýÇé¿öÏ£¬ÎÞÐè¶ÔÒ³»òÑéÖ¤¿Ø¼þ×÷³öÈκθü¸Ä±ã¿ÉʹÓÿͻ§¶ËÑéÖ¤¡£¿Ø¼þ½«×Ô¶¯¼ì²âä¯À ......
ÔÚ²»Í¬°æ±¾µÄIISÏÂʹÓÃASP.NET MVC
asp.net mvc beta 2008-11-28 22:43 ÔĶÁ20 ÆÀÂÛ0
×ֺţº ´ó´ó ÖÐÖРСС
£¨Ô´´£º»Ò»Ò³æµÄ¼Ò http://hi.baidu.com/grayworm£©
ÔÚÕâÆªÎÄÕÂÖÐÎÒÃÇѧϰÔÚ²»Í¬°æ±¾µÄIISÖÐʹÓÃASP.NET MVCºÍURL Routing¡£ÎÒÃÇѧϰÕë¶ÔIIS ......
Asp.netÉè¼ÆÊ±¾³£ÒªÔÚ.aspx.cs´úÂëÖÐдһЩ½Å±¾,ÿ´Î¶¼ÖØÐÂд±È½ÏÂé·³,ËùÒ԰Ѿ³£ÓõÄÕûÀíÁËÒ»ÏÂ,д³ÉÒ»¸ö¹«¹²Àà,ÒÔ±ãÒÔºóµ÷ÓÃ.
using System.Text;
using System.Web;
using System.Web.UI; namespace Lmsoft.Net.Web
{
/**//// <summary>
/// ÎļþÃû: Js.cs ......