asp.netÖ§³Ö´óÎļþÉÏ´« NeatUpload
1.ÔÚ¹¤¾ßÏäÖÐÌí¼ÓBrettle.Web.NeatUpload.dll£¬¿ÉÒÔ¿´µ½¹¤¾ßÏäÖгöÏÖInputFileµÈ¿Ø¼þ¡£
2.¸´ÖÆÎļþ¼ÐNeatUploadµ½¸ùĿ¼.
3.ÍÏ·ÅʹÓÃÉÏ´«¿Ø¼þInputFileºÍ½ø¶ÈÌõProgressBar,Ìí¼ÓÉÏ´«ÎļþµÄ°´Å¥.aspxÒ³Ãæ´úÂëÈçÏ£º
<body>
<form id="form1" runat="server">
<div>
<upload:InputFile id="AttachFile" runat="server"></upload:InputFile>
<asp:Button ID="Upload" runat="server" Text="Upload"
OnClientClick="ToggleVisibility('ProgressBar','on')"
OnClick="Upload_Click"/>
<div id="ProgressBar" style="display:none;">
<upload:progressbar id="pbProgressBar" runat="server" Inline="true"
Width="500px" Height="100"> </upload:progressbar>
</div>
</div>
</form>
</body>
4.Ìí¼Ó½Å±¾´úÂëToggleVisiblityº¯Êýµ½Ò³ÃæÉÏÈçÏ£º
<script type="text/javascript" language="javascript">
function ToggleVisibility(id, type)
{
el = document.getElementById(id);
if(el.style)
{
if(type == 'on')
{
el.style.display = 'block';
}
else
{
el.style.display = 'none';
}
}
else
{
if(type == 'on')
{
el.display = 'block';
}
else
{
el.display = 'none';
}
}
}
</script>
5.¸øÉÏ´«ÎļþµÄ°´Å¥Ìí¼ÓʼþUpload_Click
protected void Upload_Click(object sender, EventArgs e)
{
string FileName = this.AttachFile.FileName;//»ñÈ¡ÉÏ´«ÎļþµÄȫ·¾¶
string ExtenName = System.IO.Path.GetExtension(FileName);//»ñÈ¡À©Õ¹Ãû
string SaveFileName =
System.IO.Path.Combine(Request.PhysicalApplicationPath,
DateTime.Now.ToString("yyyyMMddhhmm") + ExtenName);//ºÏ²¢Á½¸ö·¾¶ÎªÉÏ´«µ½·þÎñÆ÷ÉϵÄȫ·¾¶
if (this.AttachFile.ContentLength > 0)
{
try
{
this.AttachFile.MoveTo(SaveFileName, Brettle.Web.NeatUpload.MoveToOptions.Overwrite);
}
catch (Exception ex)
{
throw ex;
}
}
}
6.ÔÚÅäÖÃÎļþweb.configÖÐÌí¼ÓhttpÄ£¿éÉùÃ÷:
<ht
Ïà¹ØÎĵµ£º
ASP.NETÖУ¬¾³£»áʹÓõ½templates(Ä£°æ)¹¦ÄÜ£¬±ÈÈçÔÚdatagrid£¬datalist£¬repeaterµÈ¿Ø¼þÖУ¬Ê¹ÓÃtemplates£¬½«»á´ó´óÔöÇ¿Æ书ÄÜ¡£ÒÔÍù£¬ÎÒÃÇÒ»°ãÊÇÔÚÉè¼Æ³ÌÐòʱ£¬¾ÍÒѾÉèÖúÿؼþÖеÄÄ£°æÊÇÔõÑùµÄÁË¡£µ«ÊÇ£¬ÓеÄʱºò£¬¿ÉÄÜÎÒÃÇÐèÒª¶¯Ì¬¼ÓÔØÄ£°æ£¬±ÈÈ磬µ±ÄãÒªÇóÄãµÄÓ¦ÓóÌÐòµÄ½çÃæ·ç¸ñËæ×ÅÓû§µÄÐèÇó¶ø±ä»¯Ê±£¬Äã¾ÍÐèÒ ......
ÔÚweb¿ª·¢Ê±£¬ÓеÄϵͳҪÇóͬһ¸öÓû§ÔÚͬһʱ¼äÖ»ÄܵǼһ´Î£¬Ò²¾ÍÊÇÈç¹ûÒ»¸öÓû§ÒѾµÇ¼ÁË£¬ÔÚÍ˳ö֮ǰÈç¹ûÔٴεǼµÄ»°ÐèÒª±¨´í¡£
³£¼ûµÄ´¦Àí·½·¨ÊÇ£¬ÔÚÓû§µÇ¼ʱ£¬ÅжϴËÓû§ÊÇ·ñÒѾÔÚApplicationÖдæÔÚ£¬Èç¹û´æÔھͱ¨´í£¬²»´æÔڵĻ°¾Í¼Óµ½ApplicationÖÐ(ApplicationÊÇËùÓÐSession¹²Óеģ¬Õû¸öwebÓ¦ÓóÌÐòΨһµÄÒ ......
ASP.net
µÄ
URL
ÖØд
ÓйØÓÚ
URL
µÄÖØд£¬±¾ÎÄÒ²Ö»ÊÇÄÃÀ´Ö÷Òâ¡£Ïà¼ÌÓÐ
MS
µÄ×é¼þ“
URLRewriter”ºÍÔÚGlobal.asaxÀïµÄ“
Application_BeginRequest()”±àÂ뷽ʽ£¬ÒÔ¼°IISÀïµÄISAPIÉèÖá£
ÄÈÁÐÏÂÀ´£¬ÊµÏÖ·½·¨Ò²¶¼ºÜ¼òµ¥¡£
·½·¨Ò»£ºMS×é¼þ
ÕâÀïÒ²²»ÓÃÏê½âÁË£¬Ïà¹ØÇë¿´£º
......
»·¾³£ºasp.net +oracle9+windows2003
ÔÚ±¾µØ²âÊÔÍøÕ¾ÍêȫûÓÐÎÊÌâ¡£µ«ÊÇÒ»ÉÏ´«µ½·þÎñÆ÷¾Í³öÎÊÌâÁË£¬Êý¾Ý¿âÎÞ·¨Á¬½Ó¡£ÓÉÓÚÔ¶³ÌûÓÐVS»·¾³£¬ËùÒÔÎÞ·¨µ÷ÊÔ¡£ÕæÊÇ·ÑÁËÅ£¾¢²ÅÕÒµ½½â¾ö·½°¸£º
Problem Description ------------------- When running an application that connects to Oracle and uses the Authenticated ......
ÐèÇó
ÈçÏÂÃæµÄÏîÄ¿½á¹¹£¬ÎÒÃÇ»áÔÚDefault.aspxÒ³ÃæÖÐÐèÒª´«µÝÁ½¸öÖµµ½SilverlightTestPage.aspxÒ³Ã棬²¢ÇÒÐèÒªÔÚSilverlightTestPage.aspxÒ³ÃæËùËÞÖ÷µÄSilverlightÓ¦ÓóÌÐòÖлñÈ¡²¢ÏÔʾ£º
1.ÏÈÐÞ¸Äpage µÄ¹¹Ô캯Êý
public Page(string passText)
{
InitializeComponent();
& ......