asp.net wap 2.0 ʵÏÖ ishtml32 Ï ¼ÓÔØ cssÎļþ
ʹÓÃasp.net ¿ª·¢wap ÍøÕ¾£¬ÔÚishtml32Ï£¬Èç¹ûÊÖ»úä¯ÀÀÆ÷Ö§³Öishtml32,µ«ÊÇ SupportsCss=False ʱ£¬Ïë¼ÓÔØcssÎļþʱ£¬²ÉÓÃÖØдmobile:formµÄ·½·¨À´ÊµÏÖ
using System;
using System.Configuration;
using System.Web.UI.MobileControls;
using System.Web.UI.MobileControls.Adapters;
public class MyForm : Form
{
public string CssPath
{
get
{
if( ViewState["CssPath"] != null)
return (string)ViewState["CssPath"];
else
return string.Empty;
}
set
{
ViewState["CssPath"] = value;
}
}
}
//Now Create the Form Adapter
public class HtmlMyFormAdapter : HtmlFormAdapter
{
protected new MyForm Control
{
get
{
return (MyForm)base.Control;
}
}
protected override bool RenderExtraHeadElements( HtmlMobileTextWriter writer )
{
if( writer != null )
{
if( this.Control.CssPath.Length > 0 )
&n
Ïà¹ØÎĵµ£º
µØÕð ÍøÕ¾±ä³É»ÒºÚÉ« css ´úÂë
5.19-5.21Ϊȫ¹ú°§µ¿ÈÕ£¬ °Ù¶È¡¢ÍøÒס¢ÐÂÀ˵ȸ÷´óÍøÕ¾¾ù±ä³ÉÁ˻ҺÚÉ«ÍøÒ³¡£ÔõÑùʹÍøÒ³±ä³É»ÒºÚÉ«ÄØ£¿
¹úÎñÔº¾ö¶¨5ÔÂ19ÈÕÖÁ21ÈÕΪȫ¹ú°§µ¿ÈÕΪ·½±ãÕ¾µã°§µ¿£¬ÌØÌṩcssÂ˾µ´úÂ룬ÒÔ±í°§µ¿¡£ÒÔÏÂΪȫվCSS´úÂë¡£
html {...}{ filter:progid:DXImageTransform.Microsoft.BasicImage(g ......
ÔÚ IIS 6.0 Öв¿ÊðASP.NET MVC³ÌÐò
1¡¢°²×°ASP.NET MVC¿ò¼Ü³ÌÐò
AspNetMVC1.msi ÏÂÔصØÖ·£º
http://www.microsoft.com/downloads/details.aspx?FamilyID=53289097-73ce-43bf-b6a6-35e00103cb4b&displaylang=en
2¡¢ÉèÖÃIIS
1£© ......
ASP.NETÌṩµÄÕ¾µãµØͼΪÎÒÃǽ¨Á¢µ¼º½À¸ºÍ²Ëµ¥ÌṩÁ˼«´óµÄ·½±ã¡£´ËÍâÎÒÃÇ»¹¿ÉÒÔ½¨Á¢×Ô¼ºµÄÕ¾µãµØͼÌṩ³ÌÐò£¬´Ó¶øʹÎÒÃǵIJ˵¥Ïî¿É¿Ø¡£
ÏÈÀ´Á˽âÏÂmenuµÈµ¼º½¿Ø¼þÓëÕ¾µãµØͼµÄ¹Øϵ¡£ÎÒÃÇÔÚASP .NETÏîÄ¿ÖÐËù½¨Á¢µÄweb.siteMap Æäʵ¾ÍÊÇÒ»¸ö× ......
ÔÚÄãµÄPage_LoadÖÐÌí¼ÓÕâÑùµÄ´úÂë:
Page.Response.Clear();
bool success = ResponseFile(Page.Request, Page.Response, "Ä¿µÄÎļþÃû³Æ", @"Ô´Îļþ·¾¶", 1024000);
if (!success)
Response.Write("ÏÂÔØÎļþ³ö´í£¡");
Page. ......
ÔÚASP.NETµÄSOUCEÖУ¬²»»á´æÔÚBGSOUNDÕâ¸ö±êÇ©£¬µ«ÊÇ£¬Èç¹ûÎÒÏë²åÈëÒ»¶Î±³¾°ÒôÀÖÔõô°ì£¿
ÎÒÕâÀïÓÐÁ½ÖÖ½â¾ö·½·¨£º
1¡¢Ð´ÈëÒ»¸öÍøÒ³²¥·ÅÆ÷£¬µ«ÊÇÕâÑù£¬±¾ÈËÈÏΪºÜ¸´ÔÓ£¬¶øÇÒ£¬ÎÒÒ²²»»á
2¡¢ÓÃIFRAMEǶÌ×Ò»¸öHTMLÍøÒ³£¬½«IFRAMEµÄµÄWIDTHºÍHEIGHT¶¼ÉèÖóÉ0PX£¬¼´¿É¡£ ......