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

Asp.netÖ® ÀàºÍ½á¹¹µÄÇø±ð

1¡¢ÀàÊÇÒýÓÃÀàÐÍ£¬½á¹¹ÔòÊÇÖµÀàÐÍ¡£Òò´Ë½á¹¹ÊÇ·ÅÔÚÕ»£¨Stack£©ÀÀàÔò½ö½öÊǽ«ÒýÓõØÖ·´æ·ÅÔÚÕ»À¶ø¾ßÌåµÄÖµÔò´æ·ÅÔڶѣ¨heap£©Àï¡£
2¡¢¾ÝµÚ1µã¿ÉÒԵóö½áÂÛ£¬ÄǾÍÊÇÀà¶ÔÏóͨ³£ÓÃÀ´´«µÝ´óÊý¾Ý£¬¶ø½á¹¹¶ÔÏóÔòÓÃÀ´´«µÝСÊý¾Ý¡£
3¡¢Àà¿ÉÒԼ̳кͱ»¼Ì³Ð£¬¶ø½á¹¹Ôò²»Ö§³Ö¡£µ«½á¹¹ºÍÀàÒ»Ñù¿ÉÒԼ̳Ð×Ô½Ó¿Ú¡£
4¡¢½á¹¹¶ÔÏó²»ÄÜÏñÀà¶ÔÏóÒ»Ñù¸³ÖµÎªnull¡£
5¡¢½á¹¹Ã»ÓÐÎö¹¹Æ÷¡£ÀàÓй¹ÔìºÍÎö¹¹º¯Êý¡£
6¡¢½á¹¹²»ÄÜÏñÀàÒ»Ñù¶¨ÒåΪ³éÏóµÄ¡£
7¡¢ÔڽṹÖв»ÄÜÖØд·½·¨£¬³ý·ÇÊÇobjectÀàÐ͵ÄÈçÏ·½·¨£º
Equals()
GetHashCode()
GetType()
ToString()
      ÈôÒªÈýṹ¾ßÓжà̬ÌØÐÔ£¬¿ÉÒÔÈÃÆäʵÏÖ½Ó¿Ú¡£
8¡¢ÔÚÀàÖж¨ÒåµÄʼþÊÇḬ̈߳²È«µÄ£¬¶ø½á¹¹Ôò²»ÊÇ¡£
9¡¢½á¹¹×ÜÊǾßÓÐÒ»¸öĬÈϵĹ«¹²Î޲ι¹Ô캯Êý£¬µ«È´²»ÄÜÏñÀàÒ»Ñù¶¨Òå˽ÓеÄÎ޲ι¹Ô캯Êý£¨½á¹¹Ò²²»ÄÜÔÙ¶¨Ò幫¹²µÄÎ޲ι¹Ô캯Êý£¬ÕâÓëÀ಻Ïàͬ£©¡£
10¡¢ÀàÖеľ²Ì¬¹¹Ô캯Êý»á±»µ÷Ó㬶ø½á¹¹È´²»ÄÜ¡£Òò´ËÔڽṹÖж¨ÒåµÄ¾²Ì¬¹¹Ô캯Êý£¬ËäÈ»¿ÉÒÔ±àÒëͨ¹ý£¬µ«È´Ã»ÓмÛÖµ¡£
11¡¢½á¹¹²»ÄÜÏñÀàÒ»Ñù¶¨Òåvolatile×ֶΡ£volatile×Ö¶ÎÖ÷ÒªÓÃÓÚ²¢·¢£¬ËüÏ൱ÓÚ·½·¨ÌåµÄlock¡£
12¡¢¿ÉÒԶԽṹÀàÐÍʹÓÃsizeof£¬¶ÔÀàÔò²»ÐС£
13¡¢ÀàµÄ×ֶλᱻ×Ô¶¯³õʼ»¯Îª0/false/null£¬¶ø½á¹¹Ôò²»ÄÜ¡£
14¡¢ÔڽṹÖв»ÄÜÖ±½Ó¶Ô×ֶγõʼ»¯£¬¶øÀàÔò¿ÉÒÔ¡£
15¡¢½á¹¹ºÍÀà¶ÔÓÚSystem.Object.Equals()·½·¨µÄÌåÏÖÊDz»ÏàͬµÄ¡£
==============Test 01=============
 namespace ClassAndStruct
{
class Program
{
static void Main(string[] args)
{
StructTest st = new StructTest(3,4);
Console.WriteLine(st.GetSpace().ToString());//ÕâÀïÊä³ö 12
}
}
public struct StructTest
{
public int length;
public int width;
//½á¹¹Öв»ÄÜÓÐʵÀý×ֶγõʼֵÉ趨Ïî
//public int length=0;
//½á¹¹Öв»ÄÜÓÐʵÀý×ֶγõʼֵÉ趨Ïî
//StructTest structTest = null;
//½á¹¹²»ÄÜ°üº¬ÏÔʽµÄÎÞ²ÎÊý¹¹Ô캯Êý
//public StructTest()
//{ }
public StructTest(int a, int b)
{
length = a;
width = b;
}
public int GetSpace()
{
return length * width;


Ïà¹ØÎĵµ£º

ASP.NET´ÓSQL ServerÊý¾Ý¿âÌáȡͼƬ²¢ÏÔʾÔÚDataGrid

ʹÓÃGridview°ó¶¨Êý¾Ý¿âÖеÄͼƬ(תÔØ)
×¢£º´ËϵÁмǼÔÚÎÒʵ¼Ê¿ª·¢ÖÐÓöµ½µÄÎÊÌâºÍÊÕ²ØһЩ¼¼ÇÉÎÄÕ¡£
ÎÒÃǶ¼ÖªµÀ£¬ÔÚGridviewÖв»ÄÜÖ±½ÓÈ¥°ó¶¨Êý¾Ý¿âÖеÄͼƬ£¬ÎÒÃÇ¿ÉÒÔÀûÓÃHttpHandlerºÜÈÝÒ×µÄÍê³ÉÕâ¸öÈÎÎñ£¬ÔÚÕâÀïÎҼǼһÏÂÕâ¸ö¹ý³Ì¡£
1.ÉÏ´«Í¼Æ¬´æ´¢µ½Êý¾Ý¿âÖÐ
ÔÚÊý¾Ý¿âÖд´½¨Ò»¸ö±í£¬Ìí¼ÓÒ»ÏÂ3¸ö×ֶΣº
²½ÖèÒ»£ ......

Asp.net¶ÔÎļþ¼ÐºÍÎļþµÄ²Ù×÷Àà

using System;
using System.IO;
using System.Web;
namespace SEC
{
/**////
/// ¶ÔÎļþºÍÎļþ¼ÐµÄ²Ù×÷Àà
///
public class FileControl
{
public FileControl()
{
}
/**////
/// ÔÚ¸ùĿ¼Ï´´½¨Îļþ¼Ð
///
///
Òª´´½¨µÄÎļþ·¾¶
public void CreateFolder(string FolderPathName)
{ ......

ÈçºÎÔÚASP.NetºÍJavaScriptÖд«µÝÊý¾Ý

×î½üÅöµ½Ò»ÎÊÌ⣬ÐèÒªÔÚASP.NetºÍJavaScriptÖд«µÝÊý¾Ý¡£¾ßÌåµÄÐèÇóÊÇÕâÑùµÄ£¬Ò³Ãæpostbackºó½«»áload JS£¬µ«ÊÇÐèÒª¼Çס֮ǰij¸ö״̬£¬Õâ¸ö״̬ÊÇÖ¸JSµÄ״̬£¬Ò²¾ÍÊÇ˵load JSºó£¬»¹Òª¼Çס֮ǰµÄ״̬£¬¶ø²»Êǻص½Ä¬ÈϵÄ״̬¡£
Ò»¿ªÊ¼ÏëÁ˺ܶà°ì·¨£¬µ«¶¼²»³É¹¦£¬ºóÀ´ÎÊÁËÎÊͬÊ£¬·¢ÏÖ¿ÉÒÔͨ¹ýÒþ²ØµÄ±íµ¥ÔªËØÀ´´«µÝÊý¾Ý£¬ËùÒ ......

ASP.NET³£ÓôúÂë

http://www.chinaz.com/Program/.NET/101U1142006.html
¡¡¡¡1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
´«ËͲÎÊý£º
response.write("<script>window.open('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"')</script>")
½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QuerySt ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ