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

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

control.style["max-height"]="212px";


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

System.Drawing.Image img=System.Drawing.Image.FromFile(@"D:\xxx\xxx.jpg");

int width=img.width;

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

http://renjin.blogspot.tw/2008/03/large-file-uploads-in-aspnet.html

 

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

System.Drawing.Image objImage = System.Drawing.Image.FromFile("C:\imagename.gif");
width = objImage.Width;
height = objImage.Height;  


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

 
Response.Write(String.Format("window.open('{0}','_blank')",ResolveUrl(pageurl)));

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

 http://endlesslive.blogspot.tw/2007/07/cnet.html

今天我老大問我.Net 可不可以修改圖檔,我回答不知道沒有用過~
我後來找了一下資料在 topcat姍舞之間的極度凝聚這個網站找到VB的範例

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

<script type="text/javascript">
tinymce.init({

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

日期驗證 ^\d{4}-((0\d)|(1[012]))-(([012]\d)|3[01])$ 

#region "驗証輸入的字串======================================================================================================================"
        ///

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

string news = HttpUtility.HtmlDecode(dr["新聞內容"].ToString());
news = Regex.Replace(news, "<.*?>", string.Empty);
navLNContent.InnerText = news;

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

將Web.config中的sessionState中的mode設成StateServer.

 

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

 

<div id="divLinks" runat="server"></div>

and in your code behind, you may loop thru the items and create as many links

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

ASP.NET C#

div.InnerHtml=HttpUtility.HtmlDecode(dr[3].tostring());

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

string s=Request.Form["textarea"];


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

Panel2.Attributes.Add("style""background-repeat:no-repeat");


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

using System.Net;
using System.Text;
using System.Text.RegularExpressions;

content = Regex.Replace(dr["內容"].ToString(), "<.*?>", string.Empty);
content_list[i] = content.Trim();

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

Random rd = new Random(); //亂數種子

int[] Prob = { 0, 1, 21, 121, 1121, 2121, 3121, 4121, 5121 }; //8個區間:頭獎0,二獎1,三獎2,沒中3~7

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

HTML Markup

<asp:GridView ID="GridView1" HeaderStyle-BackColor="#3AC0F2" HeaderStyle-ForeColor="White"

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

  • 這是一篇加密文章,請輸入密碼
  • 密碼提示:win
  • 請輸入密碼:
  • 這是一篇加密文章,請輸入密碼
  • 密碼提示:win
  • 請輸入密碼:

DateTime end=new DateTime(2014,05,23,00,00,00);

DateTime now=DateTime.Now;

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