Asp.Net ¿Ø¼þ¿ª·¢Ö®¿Ø¼þͼ±êºÍ±ê¼Çǰ׺
¹ØÓڿؼþͼ±êµÄÊ£¬¿ÉûÉÙϹÕÛÌÚ£¬´ÓÇ°ÄêÏëÈëÊÖÕâ·½Ã濪ʼ£¬¾Íû¸ã¶¨¹ý¡£N¶à´óϺµÄÌù×Ó¶¼·ÀÃÁË£¬Ò²Ã»ÕÒ³ö¸öÍ·Ð÷À´¡£Æäʵ×ʼÓдÎÕæ¸øÃɳöÀ´ÁË£¡²»¹ýºóÀ´¸Ä¿Ø¼þ£¬Ò²²»ÖªµÀ¸ÄÄÄÁË¡£Ã»ÁË£¡ÓÚÊÇÂúÊÀ½çµÄCSDN¡¢MSDN¡£¡£¡£¡£NBµÄÈË£¬NBµÄÎÄÕ¿´ÁËÑÛÔΣ¬´òËÀҲûÓÐŪ³öÀ´¡£×òÌìÏîÄ¿ÖÐÓöµ½ÎÊÌ⣬¿´ÁËÒ»¸çÃǵĿؼþ£¨WEBABCD£ºÖÁ½ñÅå·þµÃÎåÌåͶµØ£©·¢ÏÖËûµÄ¶¼´øͼ±ê£¬ÓÚÊÇÓÖÊÔÁËÒ»Ì죬¾ÍΪÁËÒ»¸öͼ±ê¡£¸ãÁËN´ÎÖÕÓÚŪÃ÷°×ÁË¡£ÏÖÔÚдÏÂÀ´£¬ÒÔ±¸Íü¼Ç£¡Ò²¸øÐÂÀ´µÄÌá¸öÐÑ¡£
´ä»¨£¬ÉÏ´úÂ룡
--------
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;
namespace GoldWisdom.GWEdit
{
[DefaultProperty("Text")]//SmartDropDownList.bmp
[ToolboxData("<{0}:GWEdit runat=server></{0}:GWEdit>")]
//[ToolboxBitmap(typeof(GoldWisdom.GWEdit), "GWEdit.bmp")]
[ToolboxBitmap("GWEdit.bmp")]
public class GWEdit : TextBox
{
[Bindable(true)]
[Category("Appearance")]
[DefaultValue("")]
[Localizable(true)]
public override string Text
{
get
{
String s = (String)ViewState["Text"];
return ((s == null) ? String.Empty : s);
}
set
{
ViewState["Text"] = value;
}
}
protected override void RenderContents(HtmlTextWriter output)
{
output.Write(Text);
}
}
}
±¾¿Ø¼þÑϸñÀ´Ëµ²»Ëã¿Ø¼þ£¬Ê²Ã´Ò²Ã»ÊµÏÖ¡£Ö»ÊÇΪÁ˸ãÕâ¸öËÀͼ±ê¡£
ÏÈ¿´ÏÂЧ¹ûͼ£ºÔõôÏÔʾͼ£¨ÔÎËÀ£©
ÕæÊǺáÛâµØÄìÍÃ×Ó£¬Ò»²½Ò»¸ö¿²Ñ½£¡²»¹ýÖÕÓڸ㶨ÁË£¡
ÏÂÃæ˵Ï·½·¨£º
1 ×¼±¸Í¼Æ¬£º16*16 256É«µÄ¡£²»ºÃŪ£¿µ±È»²»ºÃŪÁË£¡Ã»¿´ÎÒµÄͼ±ê¶¼ÊÇ´Ó±ðÈ˵ÄCOPY¹ýÀ´µÄÂð£¡
2 ͼƬµÄÃû³Æ±ØÐëÓë¿Ø¼þµÄÀàÃûÏàͬ¡£Èç¹ûÄã·ÇÒª°ÑÀ©Õ¹ÃûҲŪһÑùÁË£¬ÎÒ¿´Ä㻹ÊÇÈ¥Ò»Ä꼶ÔÙѧһ±é°É¡£ºÇºÇ
3 °ÑͼƬ¼ÓÈëµ½ÏîÄ¿ÖУ¨Î»ÖÃÏÂÒ»µãÔÙ½²£©¡£Èçͼ£º
Ïà¹ØÎĵµ£º
Ëü»¹»áÔÚÖ¸¶¨µÄÊý¾Ý¿âÖÐÔö¼Ó¼¸¸ö´æ´¢¹ý³Ì£¬ÓÃÀ´ÈÃASP.NETÒýÇæ²éѯ׷×ÙµÄÊý¾Ý±íµÄÇé¿ö¡£
È»ºó£¬Ëü»á¸øÎÒÃÇҪ׷×ÙµÄTable¼ÓÉϼ¸¸öTrigger£¬·Ö±ð¶ÔÓ¦µ½Insert¡¢Update¡¢Delete²Ù×÷£¬Õ⼸¸öTriggerµÄÓï¾ä·Ç³£¼òµ¥£¬¾ÍÊÇ°Ñ“AspNet_SqlCacheTablesF ......
//TransmitFileʵÏÖÏÂÔØ
protected void Button1_Click(object sender, EventArgs e)
{
/*
΢ÈíΪResponse¶ÔÏóÌṩÁËÒ»¸öеķ½·¨TransmitFileÀ´½â¾öʹÓÃResponse.BinaryWrite
&nbs ......
ASP.Net 1.1ºóÒýÈëÁ˶ÔÌá½»±íµ¥×Ô¶¯¼ì²éÊÇ·ñ´æÔÚXSS(¿çÕ¾½Å±¾¹¥»÷)µÄÄÜÁ¦¡£µ±Óû§ÊÔͼÓÃÖ®ÀàµÄÊäÈëÓ°ÏìÒ³Ãæ·µ»Ø½á¹ûµÄʱºò£¬ASP.NetµÄÒýÇæ»áÒý·¢Ò»¸ö HttpRequestValidationExceptioin¡£Ä¬ÈÏÇé¿öÏ»᷵»ØÈçÏÂÎÄ×ÖµÄÒ³Ã棺
ÒÔÏÂÊÇÒýÓÃƬ¶Î£º
Server Error in '/YourApplicationPath' Application
A potentially dangerou ......
1. ´Óhttp://sqlite.phxsoftware.com ÏÂÔØSystem.Data.SQLite.dll
2. ´Óhttp://www.sqlite.org/download.html ÏÂÔØ sqlite3.dll
3. Copy ÒÔÉÏ2¸öDllµ½Asp.netÍøÕ¾µÄbinĿ¼Ï£¬ÀàËÆ E:\2009work\MyWeb\Bin
4. ÓÃsqlitespy ¹¤¾ßн¨Êý¾Ý¿â£¬E:\2009work\MyWeb\App_Data\db.db3 £ ......
¹Ø¼üÔÚÉÏ´«µÄʹÓÃÓõ½ÁËupload.aspx,¶øÕâ¸öÒ³ÃæĬÈϵıàÂëͳһΪutf-8,ËùÒÔÎÒÃÇÒª¸øËü¸Ä±äһϡ£ÔÚÄãµÄweb.configÖÐÔö¼Ó´Ë×Ö¶Î
<location path="fckeditor/editor/filemanager/connectors/aspx/upload.aspx">
<system.web>
<globalization req ......