Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ASP.NETÔÚIE7ÖÐʹÓÃFileUploadÉÏ´«Ô¤ÀÀͼƬ

ÒòΪ°²È«ÐÔÎÊÌ⣬IE7½ûÓÃÁËimage¿Ø¼þÒýÓñ¾µØͼƬ£¬ÎªÁËÕâ¸öÎÊÌâÓôÃÆÁ˺ü¸Ì죬ÖÕÓÚÕÒµ½Á˽â¾ö·½°¸£¬ºÃ¶«Î÷ÒªÓë´ó¼Ò·ÖÏí£¬´úÂëÈçÏ£º
´Ë¶Î´úÂë·ÅÓÚ<head> ....</head>Ö®¼ä
<style type="text/css">#newPreview {
FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale)
}
</style>  
<body>ÄڵĴúÂë
<script language="javascript" type="text/javascript">
    function PreviewImg(imgFile)
{    
     var newPreview = document.getElementById("newPreview");
     newPreview.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = imgFile.value;
     newPreview.style.width = "80px";
     newPreview.style.height = "60px";
}
</script>        
            <asp:FileUpload ID="Fud_Pic" runat="server" onchange="PreviewImg(this)" /><div id="newPreview"></div>


Ïà¹ØÎĵµ£º

ASP.net ѧϰ±Ê¼Ç¶þ ϵͳ¶ÔÏóÓë״̬¹ÜÀí

 µÚ¶þ¿Î£º ϵͳ¶ÔÏóÓë״̬¹ÜÀí
aspxÒ³Ãæ ¼Ì³Ð System.Web.UI.PageÀà
aspx ÔËÐлúÖÆÈçÏ£º
 
Page¶ÔÏó£ºÖ¸ÏòÒ³Ãæ×ÔÉíµÄ·½Ê½£¬×÷ÓÃÓòΪҳÃæÖ´ÐÐÆÚ
1) ÿһ¸öaspxÒ³Ãæ¶ÔÓ¦×ÅÒ»¸öPage¶ÔÏó
2) .aspxÓëºǫ́´úÂëÀà(¾Ö²¿Àà)ºÏ²¢Éú³ÉÒ³ÃæÀà
3) Page¶ÔÏóÊÇÒ³ÃæÀàµÄʵÀý
¸öÈË¿´·¨£ºÔÚPage¶ÔÏó×÷ÓÃÓòÄÚ£¬ÊDz»ÊÇÓеãÏñ ......

¹¦ÄÜÇ¿´óµÄASP.NETľÂí

´ËľÂíдÁËÒ»¶Îʱ¼äÁË,д³öÀ´¾õµÃ×Ô¼º¶Ô.netÓÐÁ˸ü¶àµÄÈÏʶ,µ±È»Ö÷ÒªÊÇѧϰµ½Á˺ܶà֪ʶ.ËùÒÔ¸öÈ˸оõѧϰ±à³Ì×îºÃµÄ;¾¶¾ÍÊÇ´ø×ÅÏîĿȥѧϰ,ÅäºÏ°Ù¶È,googleÈ¥½â¾öÎÊÌâ. ºÇºÇ ÅÅ°æ±È½Ï³óª,¹¦ÄÜʵÓþͺÃ. ºÃÁË,ÏÖÔÚ·¢²¼´ËľÂí
1.µÇ½½çÃæ:
2. Ö÷Ìå½çÃæ
3. ¸÷¹¦ÄÜÄ£¿é
°Ù¶ÈÏÂÔصØÖ·: http://www.baidu.com/s? ......

ASP.NETÈý²ã½á¹¹ÓëMVCģʽµÄÇø±ð

 ÕâÁ½Õß±¾Éí½²µÄÊDz»Í¬·½ÏòÓë½Ç¶ÈµÄÎÊÌ⣬ÔÚʵ¼ÊÓ¦ÓÃÖÐËûÃǵÄÈ·´æÔÚһЩÏàËƵÄÌص㣬ÔںܶàÊé¼®ÖÐҲûÓÐÉîÈë½²½â£¬ÒÔÖÂÓÚÔì³ÉÀ§»ó£¬ÎªÁ˸üºÃµÄÀí½âËûÃÇ£¬ÄǾÍÀ´ËµËµÇø±ð°É¡£
¡¡¡¡Ê×ÏÈN²ã½á¹¹ÊÇÒ»ÖÖÈí¼þ³éÏóµÄ²ã´Î½á¹¹£¬ÊǶԸ´ÔÓÈí¼þµÄÒ»ÖÖ×ÝÏòÇз֣¬Ã¿Ò»²ã´ÎÖÐÍê³ÉͬһÀàÐ͵IJÙ×÷£¬ÒԱ㽫¸÷ÖÖ´úÂëÒÔÆäÍê³ÉµÄʹÃü×÷ÎªÒ ......

Asp.net ³¤ÎÄÕ·ÖÒ³

public string NoHTML(string Htmlstring) //È¥³ýHTML±ê¼Ç
{
//ɾ³ý½Å±¾
Htmlstring = Regex.Replace(Htmlstring, @" <script[^>]*?>.*? </script>", "", RegexOptions.IgnoreCase);
//ɾ³ýHTML
Htmlstring = Regex.Replace(Htmlstring, @" <(.[^>]*)>", "", RegexOptions.IgnoreCase); ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ