FuzzBox
Aug 19th, 2002, 09:57 AM
Chris
I can see the images on my PC but not remotely.
[URL=http://khw-1/letmeinkev/[/URL]
The screen is a simple log-in screen with three images, one for each option in the URL Type; Absolute, Relative Document and Relative Root.
anyway here is the HTML:
------------------------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title></title>
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:Label id="lblInfo" style="Z-INDEX: 101; LEFT: 105px; POSITION: absolute; TOP: 364px" runat="server" ForeColor="Red"></asp:Label>
<asp:Panel id="pnlLogin" style="Z-INDEX: 102; LEFT: 68px; POSITION: absolute; TOP: 148px" runat="server" Width="320px" Height="162px" BorderColor="Silver" BorderStyle="Double" ForeColor="White" BackColor="PowderBlue">
<P>
</P>
</asp:Panel>
<asp:Button id="btnLogin" style="Z-INDEX: 103; LEFT: 300px; POSITION: absolute; TOP: 251px" runat="server" Text="Login"></asp:Button>
<asp:CheckBox id="chkPersist" style="Z-INDEX: 104; LEFT: 99px; POSITION: absolute; TOP: 256px" runat="server" Text="Remember Me" Font-Names="ARIAL" Font-Size="X-Small" ForeColor="Black" BackColor="PowderBlue"></asp:CheckBox>
<asp:Label id="lblPassword" style="Z-INDEX: 105; LEFT: 102px; POSITION: absolute; TOP: 217px" runat="server" Font-Names="Arial" Font-Size="Small" BackColor="PowderBlue">Password:</asp:Label>
<asp:Label id="lblUsername" style="Z-INDEX: 106; LEFT: 102px; POSITION: absolute; TOP: 180px" runat="server" Font-Names="Arial" Font-Size="Small" BackColor="PowderBlue">Username:</asp:Label>
<asp:TextBox id="txtPassword" style="Z-INDEX: 107; LEFT: 197px; POSITION: absolute; TOP: 213px" runat="server" TextMode="Password" BackColor="SkyBlue"></asp:TextBox>
<asp:TextBox id="txtUsername" style="Z-INDEX: 108; LEFT: 197px; POSITION: absolute; TOP: 177px" runat="server" BackColor="SkyBlue"></asp:TextBox>
<asp:Label id="lblTitle2" style="Z-INDEX: 109; LEFT: 48px; POSITION: absolute; TOP: 53px" runat="server" Font-Names="Arial" Font-Size="Medium">... you need to login before using this site!</asp:Label>
<asp:Label id="lblTitle1" style="Z-INDEX: 110; LEFT: 8px; POSITION: absolute; TOP: 8px" runat="server" Font-Names="Arial" Font-Size="X-Large">Sorry...</asp:Label>
<asp:Image id="Image1" style="Z-INDEX: 111; LEFT: 417px; POSITION: absolute; TOP: 185px" runat="server" Height="89px" Width="133px" ImageUrl="file:///C:\Documents and Settings\khw\My Documents\Visual Studio Projects\WebApplication1 (9)\balls.jpg"></asp:Image>
<asp:Label id="Label1" style="Z-INDEX: 112; LEFT: 433px; POSITION: absolute; TOP: 160px" runat="server" Height="19px" Width="99px">Sponsored by:</asp:Label>
<asp:Image id="Image2" style="Z-INDEX: 113; LEFT: 422px; POSITION: absolute; TOP: 38px" runat="server" Height="84px" Width="127px" ImageUrl="file:///C:\Documents and Settings\khw\My Documents\Visual Studio Projects\WebApplication1 (9)\balls.jpg"></asp:Image>
<asp:Image id="Image3" style="Z-INDEX: 114; LEFT: 418px; POSITION: absolute; TOP: 298px" runat="server" Height="86px" Width="139px" ImageUrl="file:///C:\Documents and Settings\khw\My Documents\Visual Studio Projects\WebApplication1 (9)\balls.jpg"></asp:Image>
</form>
</body>
</HTML>
------------------------------------------------------------------------------------
here is the VB .NET code:
------------------------------------------------------------------------------------
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
End Sub
Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click
If FormsAuthentication.Authenticate(txtUsername.Text, txtPassword.Text) = True Then
FormsAuthentication.RedirectFromLoginPage(txtUsername.Text, chkPersist.Checked)
Else
lblInfo.Text = "Invalid credentials - please try again, you hacker type, you!"
End If
End Sub
------------------------------------------------------------------------------------
Thanks for your time :)
I can see the images on my PC but not remotely.
[URL=http://khw-1/letmeinkev/[/URL]
The screen is a simple log-in screen with three images, one for each option in the URL Type; Absolute, Relative Document and Relative Root.
anyway here is the HTML:
------------------------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title></title>
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:Label id="lblInfo" style="Z-INDEX: 101; LEFT: 105px; POSITION: absolute; TOP: 364px" runat="server" ForeColor="Red"></asp:Label>
<asp:Panel id="pnlLogin" style="Z-INDEX: 102; LEFT: 68px; POSITION: absolute; TOP: 148px" runat="server" Width="320px" Height="162px" BorderColor="Silver" BorderStyle="Double" ForeColor="White" BackColor="PowderBlue">
<P>
</P>
</asp:Panel>
<asp:Button id="btnLogin" style="Z-INDEX: 103; LEFT: 300px; POSITION: absolute; TOP: 251px" runat="server" Text="Login"></asp:Button>
<asp:CheckBox id="chkPersist" style="Z-INDEX: 104; LEFT: 99px; POSITION: absolute; TOP: 256px" runat="server" Text="Remember Me" Font-Names="ARIAL" Font-Size="X-Small" ForeColor="Black" BackColor="PowderBlue"></asp:CheckBox>
<asp:Label id="lblPassword" style="Z-INDEX: 105; LEFT: 102px; POSITION: absolute; TOP: 217px" runat="server" Font-Names="Arial" Font-Size="Small" BackColor="PowderBlue">Password:</asp:Label>
<asp:Label id="lblUsername" style="Z-INDEX: 106; LEFT: 102px; POSITION: absolute; TOP: 180px" runat="server" Font-Names="Arial" Font-Size="Small" BackColor="PowderBlue">Username:</asp:Label>
<asp:TextBox id="txtPassword" style="Z-INDEX: 107; LEFT: 197px; POSITION: absolute; TOP: 213px" runat="server" TextMode="Password" BackColor="SkyBlue"></asp:TextBox>
<asp:TextBox id="txtUsername" style="Z-INDEX: 108; LEFT: 197px; POSITION: absolute; TOP: 177px" runat="server" BackColor="SkyBlue"></asp:TextBox>
<asp:Label id="lblTitle2" style="Z-INDEX: 109; LEFT: 48px; POSITION: absolute; TOP: 53px" runat="server" Font-Names="Arial" Font-Size="Medium">... you need to login before using this site!</asp:Label>
<asp:Label id="lblTitle1" style="Z-INDEX: 110; LEFT: 8px; POSITION: absolute; TOP: 8px" runat="server" Font-Names="Arial" Font-Size="X-Large">Sorry...</asp:Label>
<asp:Image id="Image1" style="Z-INDEX: 111; LEFT: 417px; POSITION: absolute; TOP: 185px" runat="server" Height="89px" Width="133px" ImageUrl="file:///C:\Documents and Settings\khw\My Documents\Visual Studio Projects\WebApplication1 (9)\balls.jpg"></asp:Image>
<asp:Label id="Label1" style="Z-INDEX: 112; LEFT: 433px; POSITION: absolute; TOP: 160px" runat="server" Height="19px" Width="99px">Sponsored by:</asp:Label>
<asp:Image id="Image2" style="Z-INDEX: 113; LEFT: 422px; POSITION: absolute; TOP: 38px" runat="server" Height="84px" Width="127px" ImageUrl="file:///C:\Documents and Settings\khw\My Documents\Visual Studio Projects\WebApplication1 (9)\balls.jpg"></asp:Image>
<asp:Image id="Image3" style="Z-INDEX: 114; LEFT: 418px; POSITION: absolute; TOP: 298px" runat="server" Height="86px" Width="139px" ImageUrl="file:///C:\Documents and Settings\khw\My Documents\Visual Studio Projects\WebApplication1 (9)\balls.jpg"></asp:Image>
</form>
</body>
</HTML>
------------------------------------------------------------------------------------
here is the VB .NET code:
------------------------------------------------------------------------------------
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
End Sub
Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click
If FormsAuthentication.Authenticate(txtUsername.Text, txtPassword.Text) = True Then
FormsAuthentication.RedirectFromLoginPage(txtUsername.Text, chkPersist.Checked)
Else
lblInfo.Text = "Invalid credentials - please try again, you hacker type, you!"
End If
End Sub
------------------------------------------------------------------------------------
Thanks for your time :)