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

ʹÓÃASP.NET 2.0ÔÚWebÒ³ÃæÍêÃÀµØ»­³ö±ýͼ

 ¸ÅÄÆäʵ˼··Ç³£¼òµ¥£¬¾ÍÏñ»­»­Ò»Ñù£¬ÄãÄÔÖеıýͼÏëɶÑù×ӵģ¬¾Í°ÑËüÔÚÍøÒ³Àï»­³öÀ´¶øÒÑ¡£ÏàÐÅ´ó¼ÒСʱºò¶¼»­¹ý»­£¬²»Í¬µÄÊÇ£¬Ð¡Ê±ºò£¬ÔÚÖ½ÉÏ»­£¬ÏÖÔÚÔÚÍøÒ³ÉÏ»­¡£
ÕâÊÇÎÒÄÔ×ÓÀï±ýͼµÄÑù×Ó£º<¼¤¹â´«Õæ»ú>
C#ºǫ́ʾÀý´úÂ룺<¼¤¹âÒ»Ìå»ú>
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.IO;
using System.Drawing;
using System.Drawing.Imaging;
using System.Drawing.Drawing2D;
public partial class Test : System.Web.UI.Page
{
// ´Ë±äÁ¿ÓÃÀ´´æ´¢ÄÐŮƽ¾ùн×ʵÄ×ܺ͡£
private long TotalSalary = 68228;
// ´Ë±äÁ¿ÓÃÀ´´æ´¢Å®ÐÔƽ¾ùн×Ê¡£
private long FemaleSalary = 40690;
// ´Ë±äÁ¿ÓÃÀ´´æ´¢ÄÐÐÔƽ¾ùн×Ê¡£
private long MaleSalary = 27538;
// ´Ë±äÁ¿ÓÃÀ´´æ´¢Å®ÐÔ¿Õ¼äÖ®ÉÈÐÎÇøÓòÖ®µÚ¶þ¸ö±ßµÄ½Ç¶È¡£
private float sweep = 214.697784f;
protected void Page_Load(object sender, EventArgs e)
{
//ÏÈÉêÃ÷¸öλͼ¶ÔÏ󣬰ÑËüµ±×öÉú»îÖеİ×Ö½¡£
using (Bitmap objBitmap = new Bitmap(300, 330))
{
//ÔÙÉêÃ÷¸ö»­Í¼¶ÔÏó£¬×¼±¸»­ÔÚλͼ¶ÔÏóÀï,°ÑËüµ±×öÉú»îÖеÄÀ¯±ÊºÃÁË¡£
using (Graphics objGraphics = Graphics.fromImage(objBitmap))
{

//ÏÈ»­¸ö¾ØÐδó±ß¿ò
Rectangle rect2 = new Rectangle(0, 0, 290, 320);
objGraphics.DrawRectangle(Pens.Black, rect2);
//»®¸ùÏߣ¬ÏßµÄÉÏÃæ×¼±¸»­±ýͼ£¬ÏÂÃæд¸öͼµÄ˵Ã÷ʲôµÄ¡£
objGraphics.DrawLine(Pens.Black, 0, 250, 290, 250);
//¿ªÊ¼»­±ýͼ£¬°ÑµØÅÌ»®·ÖºÃ¡£
Rectangle rect = new Rectangle(40, 10, 200, 200);
objGraphics.FillPie(Brushes.Magenta, rect, 0, sweep);
objGraphics.FillPie(Brushes.Blue, rect, sweep, 360 - sweep);
//ÏÂÃæ»­Á½¸ö·½¿é£¬°Ñ±ýͼ»®µÄÿ¸ö¿é˵Ã÷Ò»


Ïà¹ØÎĵµ£º

asp.netÃæÊÔÌâ(8)

121.ÃèÊöÒ»ÏÂc#ÖÐË÷ÒýÆ÷µÄʵÏÖ¹ý³Ì£¬ÊÇ·ñÖ»Äܸù¾ÝÊý×Ö½øÐÐË÷Òý£¿    
 
´ð£º²»ÊÇ¡£¿ÉÒÔÓÃÈÎÒâÀàÐÍ¡£   
 
 
 
122.ÔÚc££ÖУ¬string str = null Óë string str = " " Ç뾡Á¿Ê¹ÓÃÎÄ×Ö»òͼÏó˵Ã÷ÆäÖеÄÇø±ð¡£   
 
´ð£ºnullÊÇÃ»Ó ......

ASP.NETÒ³ÃæµÄCheckBoxList×é¼þ

CheckBoxÑ¡Ôñ×é¼þÊÇÒ»¸ö³ÌÐòÖж¼¾­³£µÄ×é¼þ¡£ÔÚ³ÌÐòÉè¼ÆÖÐʹÓõ½¸Ã×é¼þ£¬Ò»°ã¶¼²»»áֻʹÓõ½Ò»¸ö£¬ÍùÍùÊÇÒÔ¶à¸ö´ËÀà×é¼þµÄÐÎʽ³öÏֵġ£ÔÚASP.NETÒ³ÃæÖÐÈç¹ûҪʹÓõ½¶à¸öCheckBox×é¼þ£¬³ýÁËÌí¼Ó¶à¸öCheckBox×é¼þÔÚÒ³ÃæÖÐÖ®Í⣬»¹ÓÐÒ»ÖֱȽϷ½±ãµÄ·½·¨£¬¾ÍÊÇʹÓÃCheckBoxList ×é¼þ¡£CheckBoxList×é¼þÊÇÓÉÒ»×éµÄCheckBox×é¼þ×é ......

ASP.NET


[±à¼­±¾¶Î]
ʲôÊÇ ASP£¿
¡¡¡¡ASP ÊÇÒ»ÖÖʹǶÈëÍøÒ³ÖеĽű¾¿ÉÓÉÒòÌØÍø·þÎñÆ÷Ö´ÐеķþÎñÆ÷¶Ë½Å±¾¼¼Êõ¡£
¡¡¡¡ASP ÊÇÒ»Ïî΢Èí¹«Ë¾µÄ¼¼Êõ
¡¡¡¡ASP Ö¸ Active Server Pages£¨¶¯Ì¬·þÎñÆ÷Ò³Ã棩
¡¡¡¡ASP ÊÇÔËÐÐÓÚ IIS Ö®ÖеijÌÐò
¡¡¡¡IIS Ö¸ Internet Information Services£¨ÒòÌØÍøÐÅÏ¢·þÎñ£©
¡¡¡¡IIS ÊÇ Windows 2000 À ......

ASP.NET·ÀSQL×¢Èë½Å±¾³ÌÐò v2.0

ËäȻ˵ASP.NETÊôÓÚ°²È«ÐԸߵĽű¾ÓïÑÔ,µ«ÊÇÒ²¾­³£¿´µ½ASP.NETÍøÕ¾ÓÉÓÚ¹ýÂ˲»ÑÏÔì³É×¢Éä.ÓÉÓÚASP.NET»ù±¾ÉÏÅäºÏMMSQLÊý¾Ý¿â¼ÜÉè Èç¹ûȨÏÞ¹ý´óµÄ»°ºÜÈÝÒ×±»¹¥»÷. ÔÙÕßÔÚÍøÂçÉÏÕÒ²»µ½ºÃµÄASP.NET·À×¢Éä½Å±¾,ËùÒÔ¾Í×Ô¼ºÐ´Á˸ö. ÔÚÕâÀï¹²Ïí³öÀ´Ö¼ÔÚÈóÌÐòÔ±Ãâ³ýSQL×¢ÈëµÄÀ§ÈÅ.
ÎÒдÁËÁ½¸ö°æ±¾,VB.NETºÍC#°æ±¾·½±ã²»Í¬³ÌÐò¼äʹÓà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ