易截截图软件、单文件、免安装、纯绿色、仅160KB

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


相关文档:

IE6下CSS背景图片有闪动BUG解决 图片缓存

IE6下链接伪类(:hover)CSS背景图片有闪动BUG,主要原因ie会再一次请求这张图片,或者说图片没被缓存。
例如:
CSS代码
a:hover{background:url(imagepath)}  
常用的解决方案:
在页面底部添加以下IE6专用代码,让IE6缓存CSS背景图片至本地,这样a:hover时IE6就不会再重新向服务器请求加载背景图片了。
......

Wap :++ xhtml 中 input 元素的使用

<form action="" method="post">
<table border="1">
<tr>
<td width="40">用户名</td>
<td> <input name="username" size="5" maxlength="8" /> </td>
</tr>
<tr>
<td width="40">密码</td&g ......

css与js属性对照表


盒子标签和属性对照
CSS语法(不区分大小写)
JavaScript语法(区分大小写)
border
border
border-bottom
borderBottom
border-bottom-color
borderBottomColor
border-bottom-style
borderBottomStyle
border-bottom-width
borderBottomWidth
border-color
borderColor
border-left
borderLeft
border ......

Win7下配置IIS脚本映射实现Asp.Net的Http管道程序

 
       Asp.Net程序的高级功能,有很多都是基于IHttpHandler接口来实现的,在Winwods Server 2003 下,配置IIS6的 Web服务扩展非常简单。最近用Win7+IIS7.5的人越来越多,在这个环境下配置Asp.Net的Web服务扩展就有些麻烦。以下内容,就是在Win7和IIS7.5环境下配置过程。
 
& ......

ASP.NET 登录界面

//default.aspx.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Data.OleDb;
using System.Data.SqlClient;
using System.Runtime.InteropService ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号