Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 unleashed¡·¶ÁÊé±Ê¼Ç

£¨1£©Á˽⵽namespaceµÄ3ÖÐÒýÓ÷½·¨
£¨2£©Á˽âÁËassembly:ÀàËÆÓÚ¶¯Ì¬Á´½Ó¿â.dllµÄ¶«Î÷¡£·ÖΪ¹«¹²ºÍ˽ÓеÄassembly¡£Ç°Õß´æ·ÅÔÚGACÖС£
    
        Èç¹ûÄãµÄ³ÌÐòҪʹÓÃijһÀà¿â£¬ÓÐÁ½²½Òª×ö£º1£¬°ÑapplicationÁ´½Óµ½assembly£»2£¬ÒýÈënamespace¡£
£¨3£© ......

ASP.NET MVC¹Ù·½Ö¸ÄÏѧϰ×ܽá

MVC¿ò¼ÜͼÈçÏ£º
ÔÚÄã¾ö¶¨Ê¹ÓÃMVC¿ò¼Ü»òWeb Formsģʽ¿ª·¢Ö®Ç°£¬ÇëÈÏÕæºâÁ¿Ò»Ï¸÷×ÔµÄÓŵ㡣
»ùÓÚMVCµÄWebÓ¦ÓóÌÐòÓŵ㣺
ËüÄܺÜÈÝÒ׵ĹÜÀí¸´ÔÓµÄÓ¦ÓóÌÐò£¬½«Ëü·ÖΪmodel£¬viewºÍcontroller¡£
Ëü²»ÄÜʹÓÃview stateºÍ·þÎñÆ÷¿Ø¼þ£¬ÕâʹµÃMVC¿ò¼Ü¿ª·¢ÈËÔ±ÓµÓжÔÓ¦ÓóÌÐòÍêÈ«¿ØÖƵÄÄÜÁ¦¡£
ËüʹÓÃÇ°¶Ë¿ØÖÆÆ÷ģʽ£¬Í¨¹ýµ¥Ò ......

ASP.NETÊý¾Ý¿âÁ¬½Ó×Ö·û´®µÄ¼ÓÃÜÓë½âÃÜ


ASP.NETÊý¾Ý¿âÁ¬½Ó×Ö·û´®µÄ¼ÓÃÜÓë½âÃÜ
ASP.NETÊý¾Ý¿âÁ¬½Ó×Ö·û´®µÄ¼ÓÃÜÓë½âÃÜ
ASP.NET web.configÖУ¬Êý¾Ý¿âÁ¬½Ó×Ö·û´®µÄ¼ÓÃÜÓë½âÃÜ¡£
¿ªÊ¼--->ÔËÐÐ,ÊäÈëcmd£¬½Ó×ÅÊäÈëÒÔÏÂÄÚÈÝ
¼ÓÃÜ£º
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -pef "connectionStrings" "ÄãµÄWebÏîĿ·¾¶"
¸´ÖÆ´úÂë ......

ASP.NETÉèÖÃie´òÓ¡Á½·¨

   ASP.NetÖÐ×îΪͷʹµÄ¿ÉÄܾÍÊÇ´òÓ¡ÉèÖÃÁË¡£
ΪÁËÕâ¸öÎÊÌ⣬ÎÒ¶¼Òª°¾°×Í·ÁË¡£ÍøÉÏÒ²ÕÒÁ˺ܶà´úÂ룬µ«ÊÇ×ÜÊÇ»á´æÔÚһЩÎÊÌâ¡£¸ù¾ÝÎÒ×Ô¼ºµÄʵ¼ÊÊÔÑé·¢ÏÖ²»ÄÜÓã¬ÎªÕÒ²»µ½¶ÔÏóÖ®ÀàµÄ´íÎóÌáʾ¡£
ÕâÀï¸ø³öÁ½ÖÖʵ¼Ê¿ÉÓõķ½·¨£º
Ò»¡£Í¨¹ý×¢²á±íÐÞ¸ÄIE´òÓ¡ÉèÖÃ
<HTML>
 <HEAD>
  < ......

ʹÓà ASP.NET 2.0 ObjectDataSource ¿Ø¼þ

 Stephen Walther
Superexpert
ÊÊÓÃÓÚ£º
Microsoft ASP.NET 2.0
Microsoft Visual Studio 2005
¼ò½é
ÔÚ Microsoft ASP.NET 2.0 Framework ÖУ¬Êý¾Ý¿â·ÃÎʵõ½Á˼«´óµÄ¼ò»¯¡£ÀûÓÃÈ«Ð嵀 SqlDataSource ¿Ø¼þ£¬ÄúÎÞÐè±àдһÐдúÂë¾Í¿ÉÒÔÑ¡Ôñ¡¢¸üС¢²åÈëºÍɾ³ýÊý¾Ý¿âÊý¾Ý¡£
Éú³É¼òµ¥µÄÓ¦ÓóÌÐòʱ£¬SqlDataSource ¿ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ