目前分類:ASP.NET C# (136)

瀏覽方式: 標題列表 簡短摘要

{C#} 資料庫取出Datetime,日期比大小

 
(DateTime.Compare(t1, t2) > 0) 指===> ("t1 > t2"); 

amychang2014 發表在 痞客邦 留言(0) 人氣()

http://placehold.it/


amychang2014 發表在 痞客邦 留言(0) 人氣()

<security>
   <ipSecurity allowUnlisted="true">    <!-- this line allows everybody, except those listed below -->            
       <clear/>     <!-- removes all upstream restrictions -->                
       <add ipAddress="83.116.19.53"/>     <!-- blocks the specific IP of 83.116.19.53  -->                
       <add ipAddress="83.116.119.0" subnetMask="255.255.255.0"/>     <!--blocks network 83.116.119.0 to 83.116.119.255-->                
       <add ipAddress="83.116.0.0" subnetMask="255.255.0.0"/>     <!--blocks network 83.116.0.0 to 83.116.255.255-->                
       <add ipAddress="83.0.0.0" subnetMask="255.0.0.0"/>     <!--blocks entire /8 network of 83.0.0.0 to 83.255.255.255-->                
   </ipSecurity>
</security>

amychang2014 發表在 痞客邦 留言(0) 人氣()

<sessionState mode="StateServer"
stateConnectionString="tcpip=localhost:42424"
cookieless="false" timeout="10"/>


amychang2014 發表在 痞客邦 留言(0) 人氣()

HtmlGenericControl anchor =newHtmlGenericControl("a");
anchor.Attributes.Add("href",Convert.ToString(drOutput["ModuleFileName"]));
anchor.InnerText=Convert.ToString(drOutput["ModuleName"]);
li.Controls.Add(anchor);

amychang2014 發表在 痞客邦 留言(0) 人氣()

<iframe width="560" height="315" src="//www.youtube.com/embed/oPQKtwC1mh0" frameborder="0" allowfullscreen></iframe>


amychang2014 發表在 痞客邦 留言(0) 人氣()

http://www.dotblogs.com.tw/jimmyyu/archive/2009/06/02/8648.aspx


amychang2014 發表在 痞客邦 留言(0) 人氣()

http://developer.51cto.com/art/200907/140267.htm


amychang2014 發表在 痞客邦 留言(0) 人氣()

PageBase.cs

using System;

amychang2014 發表在 痞客邦 留言(0) 人氣()

http://tgw1029.blogspot.tw/2010/05/chromemaintainscrollpositiononpostback.html


amychang2014 發表在 痞客邦 留言(0) 人氣()

http://blog.miniasp.com/post/2008/01/13/How-to-let-ASPNET-State-Service-allow-remote-connection.aspx

當用APS.NET語言所建立的網站(或者安裝 ASP.NET Hotfix後 ),出現下列的錯誤訊息時:

amychang2014 發表在 痞客邦 留言(0) 人氣()

System.IO.Stream fs1 = new System.IO.FileStream(this.openFileDialog1.FileName,
System.IO.FileMode.Open, System.IO.FileAccess.Read);

amychang2014 發表在 痞客邦 留言(0) 人氣()

ArrayList values =newArrayList();

amychang2014 發表在 痞客邦 留言(0) 人氣()

<asp:comparevalidator runat="server" 
  errormessage="The date must be greater than today"
  controltovalidate="txtDate1" type="date" 
  valuetocompare="<%# DateTime.Today.ToShortDateString() %>" />

amychang2014 發表在 痞客邦 留言(0) 人氣()

<asp:CheckBoxListID="x"runat="server">
  <asp:ListItem Text="Image: <imgsrc='Images/PlusSign.gif'/> works"></asp:ListItem>
  <asp:ListItem Text="Image: <imgsrc='Images/XSign.gif'/> works"></asp:ListItem>
</asp:CheckBoxList>

amychang2014 發表在 痞客邦 留言(0) 人氣()

<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="FileUpload2"
ErrorMessage="路徑有誤" ValidationExpression="^([a-zA-Z].*|[1-9].*)\.(doc|DOC|pdf|PDF|rtf|RTF)$">

</asp:RegularExpressionValidator>

amychang2014 發表在 痞客邦 留言(0) 人氣()

必須建為虛擬應用程式,不能為虛擬目錄。

 

amychang2014 發表在 痞客邦 留言(0) 人氣()

Simple Routing: Hide (Remove) .ASPX extension in URL in ASP.Net using URL Routing
In order to implement URL Routing we will need to register the routes that we need to use in our application.

amychang2014 發表在 痞客邦 留言(0) 人氣()

HtmlGenericControl li =(HtmlGenericControl)Page.FindControl("li"+ i);
li.Attributes["onclick"]="return null;";

amychang2014 發表在 痞客邦 留言(0) 人氣()

string url = HttpContext.Current.Request.Url.AbsoluteUri;
// http://localhost:1302/TESTERS/Default6.aspx

amychang2014 發表在 痞客邦 留言(0) 人氣()