Last post Nov 16, 2007 02:00 PM by jpitt57488
Aug 30, 2007 05:35 PM|MattyMC|LINK
Sep 03, 2007 09:15 AM|Zhao Ji Ma - MSFT|LINK
Internet Explorer Mobile on Windows Mobile 2002 and later supports the TEXTAREA HTML Object. You can use the TEXTAREA to render multiple lines input box with the cols and rows attributes.
rols attribute sets or retrieves the number of horizontal rows contained in the object.
cols attribute sets or retrieves the width of the TEXTAREA object.
Based on my understanding you can put the TEXTAREA into a custom control to create a new input box control for Mobile Web Forms.
Sep 05, 2007 01:44 PM|MattyMC|LINK
This fixed my issue. Thanks a lot!
Nov 16, 2007 02:00 PM|jpitt57488|LINK
Hi. I ran into the same issue. Would you mind elaborating on how you created your custom control or pointing me towards a sample? I have read through the Quickstart tutorial and there are some examples, but they don't run in Visual Studio 2005. Thanks!
Update: I believe I got this to work. I added a new item-->User Web Control to my web project. I added a TextArea element. If I view the source in my ascx file, I get an error:
Error 1 Validation (ASP.Net): Element 'textarea' is not supported.
However, I found that I could ignore this. I added a runat="server" to my textarea and then added a Public Text property.
<%@ Control Language="VB" ClassName="TestControl" Inherits="System.Web.UI.MobileControls.MobileUserControl" %> <%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %> <script
runat="server"> Public Property text() Get Return TextArea1.Value End Get Set(ByVal value) TextArea1.Value = text End Set End Property </script> <textarea
id="TextArea1" cols="40" rows="4" runat="server" />