Last post Oct 29, 2008 07:11 AM by ayeayemyo
Mar 20, 2008 01:09 PM|stammer|LINK
While working with device specific content filters, I noticed that you have to explicitly declare each environment (such as WML and HTML32.)
<table columns="2" align="LR">
<td>This is </td>
However, I have not read any documentation that deals with how to deal with "else." This MIGHT seem a little insane, but given the natural programming tendency to at least have a general fallback, and asp.net mobile's ability to adapt to the browser through
components such as textview, I wanted to know how to go about handling a choice filter that does NOT match an explicitly stated environment.
Is there a choice filter=else option? If not, what is the fall back if the browser fails all explicitly stated filter tests?
Thank you in advance for any insight.
Mar 21, 2008 05:18 AM|podi|LINK
Just provide <Choice></Choice> part without specifying any filter and implement inside the default content.
Mar 21, 2008 12:05 PM|stammer|LINK
Thanks a ton, much appreciated.
Oct 29, 2008 07:11 AM|ayeayemyo|LINK
how you guys can get on working without specifying any filter? I am using .net 2.0 and it is giving the following server error if I don't specify the filter. any help will be much appreciated. many thanks.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
[ArgumentException: Form not found: ''] System.Web.UI.MobileControls.MobileControl.ResolveFormReference(String formID) +657685 System.Web.UI.MobileControls.Adapters.HtmlControlAdapter.RenderBeginLink(HtmlMobileTextWriter writer, String target) +233 System.Web.UI.MobileControls.Adapters.HtmlLinkAdapter.Render(HtmlMobileTextWriter writer) +57 System.Web.UI.MobileControls.Adapters.HtmlControlAdapter.Render(HtmlTextWriter writer) +45 System.Web.UI.MobileControls.MobileControl.OnRender(HtmlTextWriter writer) +17 System.Web.UI.MobileControls.MobileControl.Render(HtmlTextWriter writer) +88 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22