ÓÃC#Éú³ÉWAPÒ³Ãæ½éÉÜ
ÊÖ»úÉÏÍøÔ½À´Ô½ÆÕ¼°£¬ÊÖ»úÖÖÀàÔ½À´Ô½¶à£¬Òª¿ª·¢Ò»¸ö¹©ÊÖ»ú·ÃÎÊÍøÕ¾²¢¼æÈÝËùÓв»Í¬ÀàÐ͵ÄÊÖ»úºÍä¯ÀÀÆ÷ÊǺܲ»ÈÝÒ׵ģ¬±±¾©Ê¦·¶´óѧ×ÔÏ°ÊÒ²éѯƽ̨µÄÊÖ»ú°æ×î³õÊÇÖ±½ÓÓÃASP.NETʵÏֵģ¬Ö»ÊÇÓÃCSS¶¨Òå³ÉÁËÊʺÏÊÖ»úÆÁÄ»µÄÒ³Ã棬ËäȻͬѧÃÇ·ÃÎÊ»ù±¾Ã»ÓÐÎÊÌ⣬µ«ÊÇҲż¶û»áÓГ²»ÄÜÑ¡ÔñÏÂÀ²Ëµ¥”¡¢“°´Å¥button²»Äܵã»÷”ÕâÑùµÄÎÊÌ⣬ºóÀ´ÏëÁËÏ룬²¢²»ÊÇÿ¸öÊÖ»ú¶¼ÄܺܺõÄÖ§³ÖHTMLºÍCSS£¬UCWEBÔòÊǾ¹ýÆäµÚÈý·½´úÀí´¦ÀíÁËHTMLÁ÷£¬ÒÔѹËõÒ³Ãæ´øÀ´Á÷Á¿½ÚÊ¡¡£
¡¡¡¡ÓÚÊÇÎÒ¾ö¶¨Óô¿WAPµÄ·½Ê½ÊµÏÖ×ÔÏ°ÊÒ²éѯƽ̨£¬ÒòΪÀÏÊÖ»ú¼´Ê¹²»Ö§³ÖWAP2.0£¬µ«ÊÇÒ»¶¨ÊÇÖ§³ÖWAP1.1µÄ£¬¼´×î×ͳµÄWML1.1£¬ËäÈ»ÏÖÔÚWAP2.0ÊÇÇ÷ÊÆ£¬µ«ÊÇÎÞ·¨±ÜÃâµÄÊÇ×ÜÓÐÄÇôһЩä¯ÀÀÆ÷²»ÄܺܺõÄÖ§³Ö£¡
¡¡¡¡WAP1.1ÊÇÊ®ÄêÇ°µÄ¼¼ÊõÁË£¬ÒòΪÀÏ£¬ËùÒÔ¼¸ºõÿ¸öÊÖ»ú¶¼Ö§³Ö£¬²»¹ÜÊDzÊÆÁ»¹ÊǺڰ×ÆÁ£¬Ö»ÒªÄÜÉÏÍø£¬Ò»°ã¶¼ÄÜÕýÈ·ÏÔʾ£¬ÓÚÊÇ¿ªÊ¼Ñ§Ï°Õâ¸öËäÀϵ«ÊÇÈÔÈ»½¡×³µÄÓïÑÔ£¡
¡¡¡¡ÒòΪÓй®¹ÌµÄXHTMLºÍXML»ù´¡£¬WML1.1ѧÆðÀ´·Ç³£ÈÝÒ×£¬ÎÒÖ±½ÓÔÚW3SHCOOLÉÏ¿´µÄ²Î¿¼½Ì³Ì£¬ÕâÀï¾Í²»¶à˵wmlÓï·¨µÄϸÔòÁË£¬ÒòΪhttp://www.w3school.com.cn/wap/index.aspÀïдµÃ·Ç³£Çå³þÁË£¡
¡¡¡¡²»Ì«Ï°¹ßµÄÊÇWML1.1Àï¿ÉÓõıêÇ©ÕæµÄºÜÉÙ£¬ËùÓÐÎÄ×Ö¶¼Òª·ÅÔÚ¶ÎÂä±ê¼Ç
ÀïÃ棬ֱ½Ó±àдһ¸öWMLÎļþȱ·¦¶¯Ì¬ÐÔ£¨Ö»ÓÐÉÙÁ¿±äÁ¿ºÍʼþ£©£¬ÓÚÊÇÎÒÑ¡ÔñÁËÓÃASP.NETÒ³Ã涯̬Éú³ÉWMLµÄ·½Ê½£¬¼´Ã¿Ò»´ÎÇëÇó£¬ÏìÓ¦ContentTypeΪWML¼´¿É£¬±ÈÈçÎÒÃÇн¨Ò»¸öWEB´°Ìåindex.aspx
¡¡¡¡ÔÚindex.aspxÖÐɾȥ³ýÁË×îÉÏÃæÒ»ÐеÄËùÓÐÄÚÈÝ£¬¼´Ö»Ê£
¡¡¡¡È»ºóÔÚindex.aspx.csÀïÉèÖÃ
Response.ContentType = "text/vnd.wap.wml;charset=UTF-8";
¡¡¡¡ÕâÑùä¯ÀÀÆ÷¿´µ½Õâ¾ä»°£¬¾ÍÖªµÀÏìÓ¦µÄÒ³ÃæÊÇwmlµÄ¡£½ÓÏÂÃæÐèÒªÊä³öʵ¼ÊµÄÒ³ÃæÄÚÈÝ£¬Ã¿Ò»¸öwml1.1ÊÇÒ»¸ö±ê×¼µÄxmlÎļþ£¬ËùÒÔÔÚÊä³öµÄʱºòÒ»¶¨Òª×ñÑxmlµÄÓï·¨£¬Ò»µã²î´í£¨±ÈÈç±êǩûÓбպϣ¬±êÇ©±ÕºÏ´í룩¶¼²»ÔÊÐí¡£
¡¡¡¡Êä³öwmlÉùÃ÷£º
Response.Write("<?xml version=\"1.0\"?>\r\n");
¡¡¡¡Êä³öwmlÄÚÈÝ£º
Response.Write("
Hello Wap1.1
");
¡¡¡¡ÕâÑù¾ÍÄÜÔÚÊÖ»úÉÏÏÔʾHello Wap1.1µÄ×ÖÑù£¬ºÜ¼òµ¥°É£¡ÕâÑù¶¯Ì¬Éú³ÉµÄºÃ´¦¾ÍÊÇÄÜ×ÔÓɱà³Ì£¬¶¯Ì¬ÏÔʾÐèÒªÏÔʾµÄÄÚÈÝ£¡ËäÈ»wml1.1ÒѾÊdz¾ɵļ¼Êõ£¬µ«ÊÇÅäºÏÇ¿´óµÄC#ºÍASP.NET»òÕßÆäËû±à³ÌÓïÑÔ£¬»¹ÊÇ¿ÉÒÔÖÆ×÷³öºÜºÃµÄÒ³ÃæµÄ¡£
¡¡¡¡²»¹ý£¬wap2.0ÊÇÇ÷ÊÆ£¬ÒòΪwap2.0ºÍÈç½ñµÄHTMLºÜÏñ£¬×ñѱê×¼µÄXHTMLÓï·¨£¬¶øÇÒÖ§³ÖCSSÑùʽ¶¨Òå£
Ïà¹ØÎĵµ£º
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
¡¡¡¡2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1 ......
public sealed class DbOper
{
///<summary>
/// DbOperÀàµÄ¹¹Ô캯Êý
///</summary>
private DbOper()
{
}
......
private void MakeLegend(IActiveView activeView,IPageLayout pageLayout)
{
//¶¨ÒåͼÀýUID¶ÔÏó
UID uid = new UIDClass();
&n ......
C#¶ÁÈ¡ExcelÓöµ½ÎÞ·¨¶ÁÈ¡µÄ½â¾ö·½·¨£º
1.ÔÚµ¼ÈëÊý¾ÝÁ¬½Ó×Ö·û´®ÖУ¬½«IMEX=1¼ÓÈ룬“Provider=Microsoft.Jet.OLEDB.4.0;Data Source="C:\Data.xls";Extended Properties="Excel 8.0;HDR=Yes;IMEX=1; ”£¬ÕâÑù¾Í¿ÉÒÔ¡£
C#¶ÁÈ¡ExcelÐèҪעÒâµÄ£º
IMEX=1£º»ìºÏģʽ
HDR=Yes; ÊÇ·ñÈõÚÒ»ÐÐ×÷ΪÁÐÍ·
Á½Õß±ØÐëÒ»Æ ......