asp.net ÑéÖ¤Âë
ÑéÖ¤ÂëÓ¦Ó㺽«´úÂ븴ÖƵ½Ò³Ãæ¼´¿É£¬²¢½«Ò³ÃæµÄ·¾¶Ð´µ½Í¼Æ¬µÄurlÖбã¿ÉʹÓÃ
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Drawing;
using System.Drawing.Drawing2D; //ÒýÓõÄÃüÃû¿Ø¼þ
public partial class Image : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
CreateCheckCodeImage(GenCode(4));
}
/**//// <summary>
/// '²úÉúËæ»ú×Ö·û´®
/// </summary>
/// <param name="num">Ëæ»ú³ö¼¸¸ö×Ö·û</param>
/// <returns>Ëæ»ú³öµÄ×Ö·û´®</returns>
private string GenCode(int num)
{
//string str = "µÄÒ»ÊÇÔÚ²»ÁËÓкÍÈËÕâÖдóΪÉϸö¹úÎÒÒÔÒªËûʱÀ´ÓÃÃÇÉúµ½×÷µØÓÚ³ö¾Í·Ö¶Ô³É»á¿ÉÖ÷·¢Ä궯ͬ¹¤Ò²ÄÜϹý×Ó˵²úÖÖÃæ¶ø·½ºó¶à¶¨ÐÐѧ·¨ËùÃñµÃ¾Ê®ÈýÖ®½ø×ŵȲ¿¶È¼ÒµçÁ¦ÀïÈçË®»¯¸ß×Ô¶þÀíÆðСÎïÏÖʵ¼ÓÁ¿¶¼Á½ÌåÖÆ»úµ±Ê¹µã´ÓÒµ±¾È¥°ÑÐÔºÃÓ¦¿ªËüºÏ»¹ÒòÓÉÆäЩȻǰÍâÌìÕþËÄÈÕÄÇÉçÒåÊÂƽÐÎÏàÈ«±í¼äÑùÓë¹Ø¸÷ÖØÐÂÏßÄÚÊýÕýÐÄ·´ÄãÃ÷¿´ÔÓÖôÀû±È»òµ«ÖÊÆøµÚÏòµÀÃü´Ë±äÌõֻû½á½âÎÊÒ⽨Ô¹«ÎÞϵ¾üºÜÇéÕß×îÁ¢´úÏëÒÑͨ²¢ÌáÖ±Ìâµ³³ÌÕ¹Îå¹ûÁÏÏóÔ±¸ïλÈë³£ÎÄ×Ü´ÎƷʽ»îÉè¼°¹ÜÌؼþ³¤ÇóÀÏÍ·»ù×ʱßÁ÷·¼¶ÉÙͼɽͳ½ÓÖª½Ï½«×é¼û¼Æ±ðËýÊÖ½ÇÆÚ¸ùÂÛÔËÅ©Ö¸¼¸¾ÅÇøÇ¿·Å¾öÎ÷±»¸É×ö±ØÕ½ÏÈ»ØÔòÈÎÈ¡¾Ý´¦¶ÓÄϸøÉ«¹âÃż´±£Öα±Ôì°Ù¹æÈÈÁìÆߺ£¿Ú¶«µ¼Æ÷ѹ־ÊÀ½ðÔöÕù¼Ã½×ÓÍ˼Êõ¼«½»ÊÜÁªÊ²ÈÏÁù¹²È¨ÊÕÖ¤¸ÄÇ强ÃÀÔÙ²Éת¸üµ¥·çÇдò°×½ÌËÙ»¨´ø°²³¡Éí³µÀýÕæÎñ¾ßÍòÿĿÖÁ´ï×ß»ýʾÒéÉù±¨¶·ÍêÀà°ËÀ뻪ÃûÈ·²Å¿ÆÕÅÐÅÂí½Ú»°Ã×Õû¿ÕÔª¿ö½ñ¼¯Î´«ÍÁÐí²½Èº¹ãʯ¼ÇÐè¶ÎÑнçÀÁÖÂɽÐÇÒ¾¿¹ÛԽ֯װӰËãµÍ³ÖÒôÖÚÊé²¼¸´ÈݶùÐë¼ÊÉÌ·ÇÑéÁ¬¶ÏÉîÄѽü¿óǧÖÜίËؼ¼±¸°ë°ìÇàÊ¡ÁÐÏ°ÏìÔ¼Ö§°ãÊ·¸ÐÀͱãÍÅÍùËáÀúÊп˺γýÏû¹¹¸®³Æ̫׼¾«Öµ
Ïà¹ØÎĵµ£º
¾Å¡¢ÒÔ±à³Ì·½Ê½Ìí¼Ó ASP.NET ¿Ø¼þ
ÓÐʱ£¬ÔÚÔËÐÐʱ´´½¨¿Ø¼þ±ÈÔÚÉè¼Æʱ´´½¨¿Ø¼þ¸ü¿ÉÐС£ÀýÈ磬¼Ù¶¨ÓÐÒ»¸öËÑË÷½á¹ûÒ³£¬ÄúÒªÔÚÆäÖн«ÒÔ±íµÄÐÎʽÏÔʾ½á¹û¡£ÓÉÓÚ²»ÖªµÀÒª·µ»Ø¶àÉÙÏÒò´ËÄúÐèҪÿ¸ö·µ»ØµÄÏ̬Éú³ÉÒ»¸ö±íÐС£
˵Ã÷£º ÏÖÓпؼþͨ³£¿ÉÒÔÌṩ´Ó¶¯ ......
Ò»¡¢¼òµ¥½éÉÜ
using System.Xml;
//³õʼ»¯Ò»¸öxmlʵÀý
XmlDocument xml=new XmlDocument();
//µ¼ÈëÖ¸¶¨xmlÎļþ
xml.Load(path);
xml.Load(HttpContext.Current.Server.MapPath("~/file/bookstore.xml"));
//Ö¸¶¨Ò»¸ö½Úµã
XmlNode root=xml.SelectSingleNode("/root" ......
ÔÚASP.NET ÖÐʵÏÖµ¥µãµÇ¼
³ö×Ô£º¡¾ÃÏÏÜ»áÖ®¾«²ÊÊÀ½ç¡¿ ·¢²¼ÈÕÆÚ£º2005Äê1ÔÂ27ÈÕ 8µã48·Ö0Ãë
ÓÉÓÚijЩÔÒò£¬ÔÚÎÒÃǵÄÓ¦ÓÃÖлáÓöµ½Ò»¸öÓû§Ö»ÄÜÔÚÒ»¸öµØ·½µÇ¼µÄÇé¿ö£¬Ò²¾ÍÊÇÎÒÃÇͨ³£Ëù˵µÄµ¥µãµÇ¼¡£ÔÚASP.NETÖÐʵÏÖµ¥µãµÇ¼ÆäʵºÜ¼òµ¥£¬ÏÂÃæ¾Í°ÑÖ÷ÒªµÄ·½·¨ºÍÈ«²¿´úÂë½øÐзÖÎö¡£
ʵÏÖ˼·
ÀûÓÃCacheµÄ¹¦ÄÜ ......
¶ÔÓÚasp.net µÄExcelµ¼³ö£¬ÓжàÖÖ·½·¨£¬µ½Ä¿Ç°£¬¸öÈËÈÏΪ£¬ÀûÓÃmyxlsµ¼³öExcel»¹ÊDZȽϺÃÓõģ¬¿ÉÒԺܺõÄÉèÖÃExcelµÄ¸ñʽ¡£¡£¡£
ʹÓúܷ½±ã£¬ÏÂÔØorg.in2bits.MyXls.dll£¬ÒýÈëÃüÃû¿Õ¼ä¼´¿É
ÏÂÃæÊÇÒ»¸öʹÓôúÂëʾÀý£º
private void ExcelExport(IList< LineLossInfo > lossListExcel)
&nb ......
ÕâÁ½Õß±¾Éí½²µÄÊDz»Í¬·½ÏòÓë½Ç¶ÈµÄÎÊÌ⣬ÔÚʵ¼ÊÓ¦ÓÃÖÐËûÃǵÄÈ·´æÔÚһЩÏàËƵÄÌص㣬ÔںܶàÊé¼®ÖÐҲûÓÐÉîÈë½²½â£¬ÒÔÖÂÓÚÔì³ÉÀ§»ó£¬ÎªÁ˸üºÃµÄÀí½âËûÃÇ£¬ÄǾÍÀ´ËµËµÇø±ð°É¡£
¡¡¡¡Ê×ÏÈN²ã½á¹¹ÊÇÒ»ÖÖÈí¼þ³éÏóµÄ²ã´Î½á¹¹£¬ÊǶԸ´ÔÓÈí¼þµÄÒ»ÖÖ×ÝÏòÇз֣¬Ã¿Ò»²ã´ÎÖÐÍê³ÉͬһÀàÐ͵IJÙ×÷£¬ÒԱ㽫¸÷ÖÖ´úÂëÒÔÆäÍê³ÉµÄʹÃü×÷ÎªÒ ......