Note that there are some explanatory texts on larger screens.

plurals
  1. POCannot get initial-scale to work for windows phone 7
    primarykey
    data
    text
    <p>I have a webbrowser in my winphone 7 app to display a few webpages that contains 2 buttons left and right with a title in the middle, below that a gridview and a few pictures below the gridview. </p> <p>I tried just about every combination of the following:</p> <pre><code>&lt;!--meta name="viewport" content="target-densitydpi=device-dpi; width=device-width; initial-scale=0.35; user-scalable=yes" /--&gt; &lt;!--meta name="mobileoptimized" content="0" /--&gt; &lt;!--meta name="viewport" content="width=480; initial-scale=5.0; user-scalable=yes;" id="ViewPort" runat="server" /&gt; &lt;!--meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=utf-8" /--&gt; &lt;!--meta name="HandheldFriendly" content="true" /--&gt; &lt;!--meta name="apple-mobile-web-app-capable" content="yes" /--&gt; </code></pre> <p>If I use device-width the last few columns in my gridview is off screen, trying to scale it properly with initial-scale does nothing. If I use a set width, for instance 320 or 640, the gridview becomes to small (smaller then the width of the screen), and initial-scale again does nothing.</p> <p>Any idea's ?</p> <p>aspx source added :</p> <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="iDetailled.aspx.cs" Inherits="iDetailled" Title="test" EnableEventValidation="false" %&gt; &lt;%@ Register assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head runat="server"&gt; &lt;!--meta name="viewport" content="target-densitydpi=device-dpi; width=device-width; initial-scale=0.35; user-scalable=yes" /--&gt; &lt;!--meta name="mobileoptimized" content="0" /--&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=0.9,user-scalable=yes" id="ViewPort" runat="server" /&gt; &lt;!--meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=utf-8" /--&gt; &lt;!--meta name="HandheldFriendly" content="true" /--&gt; &lt;!--meta name="apple-mobile-web-app-capable" content="yes" /--&gt; &lt;title&gt;&lt;/title&gt; &lt;script type="text/javascript"&gt; function CallMe() { javascript: history.go(-1); } &lt;/script&gt; &lt;/head&gt; &lt;link rel="stylesheet" type="text/css" href="stylesheet.css" media="screen"/&gt; &lt;body class="GradientBackground3" bgcolor="#CFD1D2"&gt; &lt;form id="form1" runat="server" &gt; &lt;asp:ScriptManager ID="ScriptManager1" runat="server" EnableHistory="True" onnavigate="ScriptManager1_Navigate"&gt; &lt;/asp:ScriptManager&gt; &lt;div align="center"&gt; &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt; &lt;ContentTemplate&gt; &lt;asp:MultiView ID="MultiView1" runat="server" onactiveviewchanged="MultiView1_ActiveViewChanged" &gt; &lt;asp:View ID="View1" runat="server"&gt; &lt;br /&gt; &lt;asp:Panel ID="Panel2" runat="server" Width="90%" &gt; &lt;table align="center" width="100%"&gt; &lt;tr&gt; &lt;td align="left" &gt; &lt;asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/min2.png" Height="48px" onclick="ImageButton1_Click" Width="48px" /&gt; &lt;/td&gt; &lt;td&gt; &lt;table align="center" &gt; &lt;tr align="center"&gt; &lt;td&gt; &lt;asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="Large" Text="Turnover by day"&gt;&lt;/asp:Label&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr align="center"&gt; &lt;td&gt; &lt;asp:Label ID="Label4" runat="server" Text="Label"&gt;&lt;/asp:Label&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/td&gt; &lt;td align="right"&gt; &lt;asp:ImageButton ID="ImageButton2" runat="server" Height="48px" ImageUrl="~/Images/plus2.png" onclick="ImageButton2_Click" Width="48px" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/asp:Panel&gt; &lt;br /&gt; &lt;asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSourceDag" ForeColor="#333333" GridLines="Vertical" onrowcreated="GridView2_RowCreated" onselectedindexchanged="GridView2_SelectedIndexChanged" onrowdatabound="GridView2_RowDataBound" EmptyDataText="No data to display" &gt; &lt;RowStyle BackColor="#F7F6F3" ForeColor="#333333" /&gt; &lt;Columns&gt; &lt;asp:CommandField ShowSelectButton="True" /&gt; &lt;asp:BoundField DataField="TYBusinessDate" DataFormatString="{0:dd/MM}" HeaderText="This Year" ReadOnly="True" SortExpression="TYBusinessDate"&gt; &lt;HeaderStyle VerticalAlign="Bottom" BorderColor="White" BorderStyle="Solid" BorderWidth="1px"/&gt; &lt;/asp:BoundField&gt; &lt;asp:BoundField DataField="LYBusinessDate" DataFormatString="{0:dd/MM}" HeaderText="Last Year" ReadOnly="True" SortExpression="LYBusinessDate"&gt; &lt;HeaderStyle VerticalAlign="Bottom" BorderColor="White" BorderStyle="Solid" BorderWidth="1px"/&gt; &lt;/asp:BoundField&gt; &lt;asp:BoundField DataField="Day" HeaderText="Day" ReadOnly="True" SortExpression="Day"&gt; &lt;HeaderStyle HorizontalAlign="Center" VerticalAlign="Bottom" BorderColor="White" BorderStyle="Solid" BorderWidth="1px"/&gt; &lt;ItemStyle HorizontalAlign="Center" /&gt; &lt;/asp:BoundField&gt; &lt;asp:BoundField DataField="TYTurnoverAmt" DataFormatString="{0:F0}" HeaderText="This Year" ReadOnly="True" SortExpression="TYTurnoverAmt"&gt; &lt;HeaderStyle HorizontalAlign="Right" VerticalAlign="Bottom" BorderColor="White" BorderStyle="Solid" BorderWidth="1px"/&gt; &lt;ItemStyle HorizontalAlign="Right" /&gt; &lt;/asp:BoundField&gt; &lt;asp:BoundField DataField="LYTurnoverAmt" DataFormatString="{0:F0}" HeaderText="Last Year" ReadOnly="True" SortExpression="LYTurnoverAmt"&gt; &lt;HeaderStyle HorizontalAlign="Right" VerticalAlign="Bottom" BorderColor="White" BorderStyle="Solid" BorderWidth="1px"/&gt; &lt;ItemStyle HorizontalAlign="Right" /&gt; &lt;/asp:BoundField&gt; &lt;asp:TemplateField HeaderText="%"&gt; &lt;ItemTemplate&gt; &lt;asp:Label ID="Label55" runat="server" Text="Label"&gt;&lt;/asp:Label&gt; &lt;/ItemTemplate&gt; &lt;HeaderStyle VerticalAlign="Bottom" HorizontalAlign="Right" BorderColor="White" BorderStyle="Solid" BorderWidth="1px"/&gt; &lt;ItemStyle HorizontalAlign="Right" /&gt; &lt;/asp:TemplateField&gt; &lt;asp:BoundField DataField="TYClients" HeaderText="This Year" ReadOnly="True" SortExpression="TYClients" &gt; &lt;HeaderStyle HorizontalAlign="Right" VerticalAlign="Bottom" BorderColor="White" BorderStyle="Solid" BorderWidth="1px"/&gt; &lt;ItemStyle HorizontalAlign="Right" /&gt; &lt;/asp:BoundField&gt; &lt;asp:BoundField DataField="LYClients" HeaderText="Last Year" ReadOnly="True" SortExpression="LYClients" &gt; &lt;HeaderStyle HorizontalAlign="Right" VerticalAlign="Bottom" BorderColor="White" BorderStyle="Solid" BorderWidth="1px"/&gt; &lt;ItemStyle HorizontalAlign="Right" /&gt; &lt;/asp:BoundField&gt; &lt;asp:TemplateField&gt; &lt;ItemTemplate&gt; &lt;asp:ImageButton ID="ImageButton5" runat="server" ImageUrl="~/Images/arrow.png" onclick="ImageButton5_Click" /&gt; &lt;/ItemTemplate&gt; &lt;/asp:TemplateField&gt; &lt;/Columns&gt; &lt;FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /&gt; &lt;PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /&gt; &lt;SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /&gt; &lt;HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /&gt; &lt;EditRowStyle BackColor="#999999" /&gt; &lt;AlternatingRowStyle BackColor="White" ForeColor="#284775" /&gt; &lt;/asp:GridView&gt; &lt;br /&gt; &lt;asp:Chart ID="Chart2" runat="server" DataSourceID="SqlDataSourceDag" BackColor="#CFD1D2" &gt; &lt;Titles&gt; &lt;asp:Title Name="Title1" Text="Turnover"&gt; &lt;/asp:Title&gt; &lt;/Titles&gt; &lt;series&gt; &lt;asp:Series Name="ThisYear" XValueMember="Day" YValueMembers="TYTurnoverAmt" LegendText="Turnover this year"&gt; &lt;/asp:Series&gt; &lt;asp:Series Name="LastYear" XValueMember="Day" YValueMembers="LYTurnoverAmt" LegendText="Turnover last year"&gt; &lt;/asp:Series&gt; &lt;/series&gt; &lt;chartareas&gt; &lt;asp:ChartArea Name="ChartArea1" Area3DStyle-Enable3D="true" Area3DStyle-IsClustered="true" BackColor="White" &gt; &lt;AxisY IntervalAutoMode="VariableCount" IntervalType="Number" IntervalOffsetType="Number"&gt; &lt;/AxisY&gt; &lt;Area3DStyle Enable3D="True" IsClustered="True" /&gt; &lt;/asp:ChartArea&gt; &lt;/chartareas&gt; &lt;Legends&gt; &lt;asp:Legend Docking="Bottom" Name="Legend1" BackColor="#CFD1D2" &gt; &lt;/asp:Legend&gt; &lt;/Legends&gt; &lt;/asp:Chart&gt; &lt;asp:Chart ID="Chart1" runat="server" DataSourceID="SqlDataSourceDag" BackColor="#CFD1D2"&gt; &lt;Titles&gt; &lt;asp:Title Name="Title1" Text="Clients"&gt; &lt;/asp:Title&gt; &lt;/Titles&gt; &lt;series&gt; &lt;asp:Series ChartType="Line" Legend="Legend1" Name="ClientTY" XValueMember="Day" YValueMembers="TYClients" BorderWidth="3" LegendText="Clients this year"&gt; &lt;/asp:Series&gt; &lt;asp:Series ChartType="Line" Legend="Legend1" Name="ClientLY" XValueMember="Day" YValueMembers="LYClients" BorderWidth="3" LegendText="Clients last year"&gt; &lt;/asp:Series&gt; &lt;/series&gt; &lt;chartareas&gt; &lt;asp:ChartArea Name="ChartArea1" &gt; &lt;AxisY IntervalAutoMode="VariableCount" IntervalType="Number" IntervalOffsetType="Number"&gt; &lt;/AxisY&gt; &lt;AxisX IsLabelAutoFit="False"&gt; &lt;LabelStyle Angle="-90" /&gt; &lt;/AxisX&gt; &lt;/asp:ChartArea&gt; &lt;/chartareas&gt; &lt;Legends&gt; &lt;asp:Legend Docking="Bottom" Name="Legend1" BackColor="#CFD1D2"&gt; &lt;/asp:Legend&gt; &lt;/Legends&gt; &lt;/asp:Chart&gt; &lt;br /&gt; &lt;asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Back" Visible="False" /&gt; &lt;br /&gt; &lt;asp:SqlDataSource ID="SqlDataSourceDag" runat="server" ConnectionString="&lt;%$ ConnectionStrings:OSCConnectionString %&gt;" SelectCommand="WWWiPhoneAllStoresPerDay" SelectCommandType="StoredProcedure"&gt; &lt;/asp:SqlDataSource&gt; &lt;/asp:View&gt; ....second view stripped &lt;/asp:MultiView&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload