Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Mobile > Webpage doesn't load normally

Reply
Thread Tools

Webpage doesn't load normally

 
 
Eric
Guest
Posts: n/a
 
      08-04-2009
Hi,

I have a asp.net website for regular pc's and I have now added a page a new
webpage to the same project and arranged all controls in a size it would
appear normal sized on a PDA. When the user goes to the url of the main site,
it detects the windows version and if it is WinCE it will redirect to the PDA
web page.

Inside the webpage for the PDA, I have all controles styled where the styles
are in the page.

Here is my code:

<%@ Page Title="" Language="VB" MasterPageFile="~/PDA.master"
AutoEventWireup="false"
CodeFile="PDAlogin.aspx.vb" Inherits="PDAlogin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<style type="text/css">
.PanelLogin
{
position: absolute;
top: 65px;
left: 10px;
z-index: 1;
background-color: #003258;
height: 230px;
width: 200px;
color: white;
}
.lblUser
{
position: absolute;
top: 49px;
left: 15px;
z-index: 1;
width: 98px;
height: 19px;
color: white;
}
.lblPass
{
position: absolute;
top: 79px;
left: 15px;
color: white;
}
.txtPass
{
position: absolute;
top: 77px;
left: 89px;
z-index: 1;
width: 100px;
color: black;
}
.lblLogin
{
position: absolute;
top: 15px;
left: 13px;
z-index: 1;
color: white;
}
.btZenden
{
position: absolute;
top: 113px;
left: 85px;
z-index: 1;
color: black;
}
.lblCook
{
position: absolute;
top: 150px;
left: 8px;
z-index: 1;
height: 91px;
width: 185px;
color: white;
}
.txtUser
{
position: absolute;
top: 46px;
left: 89px;
width: 100px;
color: Black;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="Server">
<aspanel ID="Panel1" runat="server" CssClass="PanelLogin">
<asp:Label ID="Label1" runat="server" CssClass="lblLogin" Text="Log in"
Font-Bold="True"
ForeColor="White"></asp:Label>
<asp:Label ID="Label2" runat="server" CssClass="lblUser" Text="User
name:"></asp:Label>
<asp:TextBox ID="txtPassword" runat="server" CssClass="txtPass"
TextMode="Password"></asp:TextBox>
<asp:Label ID="Label3" runat="server" CssClass="lblPass"
Text="Password:"></asp:Label>
<asp:TextBox ID="txtUsername" runat="server" CssClass="txtUser"
AutoCompleteType="DisplayName"></asp:TextBox>
<asp:Label ID="lblCookie" runat="server" CssClass="lblCook" Text="If you
do not have a password or know it, you will have to visit the home page on a
regular computer."></asp:Label>
<asp:Button ID="btSend" runat="server" CssClass="btZenden" Text="Send" />
</aspanel>
</asp:Content>

On VisualStudio2008 the page looks like I want it to be, but on the PDA
things are messed up.
The textboxes are swapped and all controls are on the wrong places.

What am I doing wrong here?

rg,
Eric


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how is this normally done? =?Utf-8?B?YXJp?= ASP .Net 4 10-03-2005 05:58 AM
finally block does not complete normally - Eclipse dannyDog Java 56 06-14-2005 11:22 PM
Do routers normally drop connections after idle periods? Bartt Wireless Networking 6 12-12-2004 03:35 AM
Populating a datagrid ... how is it done normally? Prime ASP .Net 2 10-01-2004 01:35 AM
ASP.NET webs hang for 60 seconds then function normally Keith ASP .Net 4 01-22-2004 01:29 PM



Advertisments