Last post Jul 22, 2011 04:37 PM by roopeshreddy
Jul 20, 2011 07:27 AM|surenyfs|LINK
I am developing a mobile Web Application.
1. Is there any way to refer the External .css file in the Mobile Web Form? I have tried it out using Device Specific Control but the tag from the external style sheet is not recognizing. It is showing me error. Below is the sample code.
<mobile:DeviceSpecific ID="DeviceSpecific3" Runat="server"> <Choice Xmlns="http://schemas.microsoft.com/mobile/html32template"> <ScriptTemplate> <title>Results</title> <link href="~/StyleSheet/StyleSheet.css" runat="server" rel="stylesheet" /> </ScriptTemplate> </Choice> </mobile:DeviceSpecific>
2. If the only way to include the style sheet is by using Mobile style sheet then is there any way to include "LabelStyle-Alignment" as a part of element in Mobile Style Sheet?.
I get error if i do so. In that case i cannot use the element in the mobile style sheet. Am using it in the ObjectList control itself. Is there any way to accomplish this?.
Below is sample code for referning my stylesheet.ascx file in my main page..
<mobile:StyleSheet ID="dd" Runat="server" ReferencePath="~/StyleSheet/StyleSheet.ascx"></mobile:StyleSheet>
Below code is written at my syylesheet.ascx page.
<mobile:StyleSheet ID="Style" Runat="server"> <PagerStyle Name="StyleLabelBold" ForeColor="Black" Font-Size="Normal" LabelStyle-Alignment="Center" Font-Name="verdana" Font-Bold="True" /> </mobile:StyleSheet>
Jul 20, 2011 11:18 AM|roopeshreddy|LINK
You can develop general ASP.NET Web application which works absolutely fine in all Mobile browsers[HTML Compatible].
Mobile specific tags in ASP.NET are designed for WAP enabled devcies. Now a days all mobile devices are HTML capable, so general ASP.NET web application works absolutely fine.
If you develop a general Web application in asp,net, you external .css file issue will be solved and works absolutely fine.
Check the following links for more information on developing Mobile web applications in ASP.NET
Hope it helps u...
Jul 21, 2011 06:58 AM|surenyfs|LINK
I learnt in some article that using the datagrid in the mobile form will create problem with the View state. Also similar proble arises if we are going to use the nomal webpage in our moile website as we are going to use more data transfer between the server
and the application. So i thought of using the Mobile web for conrols so that there will be no problem with the view state.
Also from your post i was totally confused that do we need to have Mobile web form controls or normal asp.net controls? Iam working for 15 days using the Mobile web form controls to design the mobile web application.
Jul 22, 2011 04:37 PM|roopeshreddy|LINK
Mobile Web Controls are designed for WAP enabled devices. Now a days all mobile browsers are capable of rendering HTML.
So general ASP.NET website works absolutely fine in all Mobile device browsers. Add the following META tags for making the website mobile compatible.
<meta name="HandheldFriendly" content="true" />
<meta name="viewport" content="width=device-width" />