Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÔÚUpdatePanelÖÐʹÓÃÑéÖ¤¿Ø¼þ (asp.net C#)


ÕâÊÇ΢ÈíµÄÒ»¸öBug,¿ÉÒÔÈ¥¹ÙÍøÏÂÔØÒ»¸öValidators.dll,ÒýÓõ½ÄãµÄÏîÄ¿ÏÂ,È»ºóÔÚWeb.ConfigÀïconfiguration/system.web/pages½ÚµãÖÐÌí¼Ó£¨»òÐ޸ģ©ÈçϵÄÔªËØ:
<pages>
      <tagMapping>
        <add tagType="System.Web.UI.WebControls.CompareValidator"
mappedTagType="Microsoft.Web.UI.Compatibility.CompareValidator,
Validators, Version=1.0.0.0"/>
        <add tagType="System.Web.UI.WebControls.CustomValidator"
mappedTagType="Microsoft.Web.UI.Compatibility.CustomValidator,
Validators, Version=1.0.0.0"/>
        <add tagType="System.Web.UI.WebControls.RangeValidator"
mappedTagType="Microsoft.Web.UI.Compatibility.RangeValidator,
Validators, Version=1.0.0.0"/>
        <add
tagType="System.Web.UI.WebControls.RegularExpressionValidator"
mappedTagType="Microsoft.Web.UI.Compatibility.RegularExpressionValidator,
Validators, Version=1.0.0.0"/>
        <add
tagType="System.Web.UI.WebControls.RequiredFieldValidator"
mappedTagType="Microsoft.Web.UI.Compatibility.RequiredFieldValidator,
Validators, Version=1.0.0.0"/>
        <add tagType="System.Web.UI.WebControls.ValidationSummary"
mappedTagType="Microsoft.Web.UI.Compatibility.ValidationSummary,
Validators, Version=1.0.0.0"/>
      </tagMapping>
    </pages>
</system.web>
</configuration>
ÖØбàÒ룬Éú³É


Ïà¹ØÎĵµ£º

Asp.Net ·ÖÒ³ÏÔʾ¿Ø¼þ

Ô´ÂëÏÂÔØ£ºhttp://www.tracefact.net/SourceCode/Asp-Net-Paging-Control.rar
 Asp.Net ·ÖÒ³ÏÔʾ¿Ø¼þ
ÕâƪÎÄÕÂ×ʼÊÇ2008Äê2Ô·ÝдµÄ£¬ÎÒÆð³õÏë×Å´ó¼ÒÓ¦¸Ã¶¼ÓÐ×Ô¼ºµÄÊý¾Ý·ÖÒ³·½Ê½£¬¶øÎÒ±¾È˲¢·Çרҵ×ö¿Ø¼þ¿ª·¢£¬ËùÒÔÖ»ÊÇÏë×ÅÌṩµã˼·£¬²¢Ã»ÓÐ×ö̫ϸÖµÄÑо¿¡£½á¹û¸ù¾Ýä¯ÀÀÁ¿·¢ÏÖ´ó¼Ò»¹ÊDZȽϹØ×¢µÄ£¬ÓÚÊǾͳé¿Õ¶ ......

ASP.NET³£ÓÃJS½Å±¾ÕûÀí

Asp.netÉè¼Æʱ¾­³£ÒªÔÚ.aspx.cs´úÂëÖÐдһЩ½Å±¾,ÿ´Î¶¼ÖØÐÂд±È½ÏÂé·³,ËùÒ԰Ѿ­³£ÓõÄÕûÀíÁËÒ»ÏÂ,д³ÉÒ»¸ö¹«¹²Àà,ÒÔ±ãÒÔºóµ÷ÓÃ.
 
using System.Text;
using System.Web;
using System.Web.UI; namespace Lmsoft.Net.Web
{
    /**//// <summary>
    /// ÎļþÃû: Js.cs ......

ASP.NETÁ¬½Ó×Ö·û´®

1.Êý¾Ý¿âÎļþÁ¬½Ó
<add name="LocalSqlServer" connectionString="Data
Source=.\SQLExpress;Integrated
Security=True;  
  AttachDBFilename=|DataDirectory|TimeTracker.mdf;User
Instance=true" />
 Ò».  integrated security=trueΪwindowsÓû§ÑéÖ¤£¬¶øΪf ......

ASP.NET—fromÑéÖ¤

Step 1£ºÐ½¨Êý¾Ý¿â(¿â£ºMyForms £»±í£ºusers £»×ֶΣºID£¬userName, userPwd)£»
Step 2£ºÐ½¨ÍøÕ¾£¬web.config µÄÎļþÈ«²¿´úÂëÈçÏ£º
web.config µÄÈ«²¿´úÂë
<?xml version="1.0"?>
<configuration>
    <appSettings/>
    <connectionStrings/>
  ......

ASP.NET ¶ÔFileUpLoadÑéÖ¤£¬ÉÏ´«Í¼Æ¬µ½Îļþ

(1) ASP.NET µÄÊý¾ÝÑéÖ¤¿Õ¼þRegularExpressionValidator ʵÏÖÑéÖ¤FileUpLoadÉÏ´«ÎļþµÄÀàÐÍ
 <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="FileUpload1"
        ErrorMessage="¸ñʽ²»×¼È·£¬Ö»ÄÜ(.jpg|.JPG|.gif|.G ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ