目前分類:ASP.NET C# (136)
- Nov 26 Wed 2014 17:03
日期比大小
- Oct 31 Fri 2014 13:35
img假圖
http://placehold.it/
- Oct 27 Mon 2014 15:32
ASP.NET web.config IP限制
<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>
- Oct 27 Mon 2014 11:58
ASP.NET 避免SESSION遺失
<sessionState mode="StateServer"
stateConnectionString="tcpip=localhost:42424"
cookieless="false" timeout="10"/>
- Oct 24 Fri 2014 12:13
C# 新增HTML <a>
HtmlGenericControl anchor =newHtmlGenericControl("a");
anchor.Attributes.Add("href",Convert.ToString(drOutput["ModuleFileName"]));
anchor.InnerText=Convert.ToString(drOutput["ModuleName"]);
li.Controls.Add(anchor);
- Oct 23 Thu 2014 16:23
youtube
<iframe width="560" height="315" src="//www.youtube.com/embed/oPQKtwC1mh0" frameborder="0" allowfullscreen></iframe>
- Oct 22 Wed 2014 16:42
Visual Studio 中斷點的使用
http://www.dotblogs.com.tw/jimmyyu/archive/2009/06/02/8648.aspx
- Oct 22 Wed 2014 15:17
ASP.NET中Get和Post的用法
http://developer.51cto.com/art/200907/140267.htm
- Oct 06 Mon 2014 13:50
Auto logout and redirect to login page when session expires
- Sep 30 Tue 2014 12:23
讓Chrome瀏覽器支援MaintainScrollPositionOnPostback屬性
http://tgw1029.blogspot.tw/2010/05/chromemaintainscrollpositiononpostback.html
- Sep 30 Tue 2014 09:58
ASP.NET啟動
http://blog.miniasp.com/post/2008/01/13/How-to-let-ASPNET-State-Service-allow-remote-connection.aspx
當用APS.NET語言所建立的網站(或者安裝 ASP.NET Hotfix後 ),出現下列的錯誤訊息時:
- Sep 26 Fri 2014 14:57
ASP.NET C# 取得圖片長、寬by stream
System.IO.Stream fs1 = new System.IO.FileStream(this.openFileDialog1.FileName,
System.IO.FileMode.Open, System.IO.FileAccess.Read);
- Sep 26 Fri 2014 11:03
ASP.NET C# 計算CheckListBox 被選取個數
ArrayList values =newArrayList();
- Sep 26 Fri 2014 10:41
ASP.NET C# 日期驗證用comparevalidator
<asp:comparevalidator runat="server"
errormessage="The date must be greater than today"
controltovalidate="txtDate1" type="date"
valuetocompare="<%# DateTime.Today.ToShortDateString() %>" />
- Sep 26 Fri 2014 10:24
ASP.NET C# 圖片checkboxList
<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>
- Sep 24 Wed 2014 11:32
ASP.NET FileUpload 驗證
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="FileUpload2"
ErrorMessage="路徑有誤" ValidationExpression="^([a-zA-Z].*|[1-9].*)\.(doc|DOC|pdf|PDF|rtf|RTF)$">
</asp:RegularExpressionValidator>
- Sep 22 Mon 2014 15:22
CS0246: 找不到類型或命名空間名稱
- Sep 22 Mon 2014 10:26
ASP.NET 隱藏.aspx
- Sep 16 Tue 2014 09:54
ASP.NET C# 控制li
HtmlGenericControl li =(HtmlGenericControl)Page.FindControl("li"+ i);
li.Attributes["onclick"]="return null;";
- Sep 12 Fri 2014 11:39
ASP.NET C# 抓URL網頁名稱
string url = HttpContext.Current.Request.Url.AbsoluteUri;
// http://localhost:1302/TESTERS/Default6.aspx