用MMIT,试试
加到Web.Config里<deviceFilters>
<filter name="supports2SoftKeys" compare="NumberOfSoftkeys" argument="2"/>
</deviceFilters>叶面上<mobile:DeviceSpecific id="DeviceSpecific1" runat="server">
<Choice Filter="supports2SoftKeys" >
<ScriptTemplate>
<do type="options" label="MS">
<go href="www.microsoft.com" />
</do>
</ScriptTemplate>
</Choice>
</mobile:DeviceSpecific>如果直接写WML,可以 /// <summary>
/// 设置右键连接
/// </summary>
/// <param name="text">描述</param>
/// <param name="href">连接</param>
/// <returns></returns>
public static string DoRight( string text, string href )
{
StringBuilder right = new StringBuilder();
right.Append( "<do type=\"options\" label=\""+ Encode( text ) +"\">" );
right.Append( "<go href=\""+ href + "\"/></do>" );
return right.ToString();
}
加到Web.Config里<deviceFilters>
<filter name="supports2SoftKeys" compare="NumberOfSoftkeys" argument="2"/>
</deviceFilters>叶面上<mobile:DeviceSpecific id="DeviceSpecific1" runat="server">
<Choice Filter="supports2SoftKeys" >
<ScriptTemplate>
<do type="options" label="MS">
<go href="www.microsoft.com" />
</do>
</ScriptTemplate>
</Choice>
</mobile:DeviceSpecific>如果直接写WML,可以 /// <summary>
/// 设置右键连接
/// </summary>
/// <param name="text">描述</param>
/// <param name="href">连接</param>
/// <returns></returns>
public static string DoRight( string text, string href )
{
StringBuilder right = new StringBuilder();
right.Append( "<do type=\"options\" label=\""+ Encode( text ) +"\">" );
right.Append( "<go href=\""+ href + "\"/></do>" );
return right.ToString();
}
<ScriptTemplate>
<do type="options" label="返回">
<prev />
</do>
</ScriptTemplate>就会出现错误
your request for a service could not be fulfilled.