´ø±à¼µÄÏÂÀ¿ò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
Ïà¹ØÎĵµ£º
ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔÇ°µÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕ߶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......
//ʹÓÃÑéÖ¤·½·¨
if (!InputValidator(txt.Text.Trim()))
{
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "myScript", "alert('\"Îı¾¿ò\"ÊäÈëÁË·Ç·¨×Ö·û»òÊäÈ볬³¤£¡');", t ......
¡¡MVCϵͳÖеÄÄ£ÐÍ´Ó¸ÅÄîÉÏ¿ÉÒÔ·ÖΪÁ½Àà¨D¨DϵͳµÄÄÚ²¿×´Ì¬ºÍ¸Ä±äϵͳ״̬µÄ¶¯×÷¡£Ä£ÐÍÊÇÄãËùÓеÄÉÌÒµÂß¼´úÂëƬ¶ÎËùÔÚ¡£±¾ÎÄΪģÐÍÌṩÁËÒµÎñʵÌå¶ÔÏó
ºÍÒµÎñ´¦Àí¶ÔÏó£ºËùÓеÄÒµÎñ´¦Àí¶ÔÏó¶¼ÊÇ´ÓProcessBaseÀàÅÉÉúµÄ×ÓÀà¡£ÒµÎñ´¦Àí¶ÔÏó·â×°Á˾ßÌåµÄ´¦ÀíÂß¼£¬µ÷ÓÃÒµÎñÂ߼ģÐÍ£¬²¢ÇÒ°ÑÏìÓ¦Ìá½»µ½
ºÏÊʵÄÊÓͼ×é¼þÒÔ²úÉúÏì ......
½â¾ö·½·¨£º¡¡
ÔËÐÐ ¼üÈ룺dcomcnfg.exe »Ø³µ
´ò¿ª ×齨·þÎñ->¼ÆËã»ú-> ÎҵĵçÄÔ->DCOM ÅäÖà -> Microsoft Excel Ó¦ÓóÌÐò ÊôÐÔ 1.±êʶ¸ÄΪ½»»¥Ê½Óû§
2. ÔÚ°²È«Ï Æô¶¯ºÍ¼¤»îȨÏÞ¡¢·ÃÎÊȨÏÞ¡¢ÅäÖÃȨÏÞ ¼¸¸öÖÐÑ¡ÖÐ×Ô¶¨Òå ±à¼ Ìí¼Ó ¸ß¼¶ Á¢¼´²éÕÒ Ñ¡ÖÐÏÂÁпòÖÐµÄ ASPNET µã»÷È·¶¨
......
Ò»¡¢SqlDataReadºÍDatasetµÄÑ¡Ôñ
¡¡¡¡SqldatareadÓŵ㣺¶ÁÈ¡Êý¾Ý·Ç³£¿ì¡£Èç¹û¶Ô·µ»ØµÄÊý¾Ý²»Ðè×ö´óÁ¿´¦ÀíµÄÇé¿öÏ£¬½¨ÒéʹÓÃSqlDataReader£¬ÆäÐÔÄÜÒª±ÈdatsetºÃºÜ¶à¡£È±µã£ºÖ±µ½Êý¾Ý¶ÁÍê²Å¿ÉcloseµôÓÚÊý¾Ý¿âµÄÁ¬½Ó
¡¡¡¡(SqlDataReader ¶ÁÊý¾ÝÊÇ¿ìËÙÏòÇ°µÄ¡£SqlDataReader ÀàÌṩÁËÒ»ÖÖ¶ÁÈ ......