Abdalla Elawad

Abdalla Elawad

  • NA
  • 1k
  • 205.2k

how put image as logo in login form asp.net

May 24 2017 2:08 AM
Hi Developers 
 
Please help me
 
i want to put image as logo in login form . i will try to put it in div and h1 but it doesn't display like below in fig:
 
 
Try also change the extension of image to JPG and PNG same error
 
This is Code :
 
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="loginform.aspx.cs" Inherits="OperationCashPlan.loginform" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<style type="text/css">
.style1
{
font-size: large;
color: #0066FF;
}
.style2
{
color: #0000FF;
font-size: x-large;
}
.style3
{
background-color: #996633;
}
.style4
{
color: #000000;
font-size: x-large;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div align="center">
<img src="Image_2/APSG2.png" style="height: 47px" />
</div>
<div align="center">
<div style="font-weight: 700; font-size: large; height: 411px; background-color: #FFFFFF; color: #0000FF;">
<br />
<em><span class="style1">Abu Sarhad Group (APSG)</span></em><br />
<span class="style2">????? ????? ????? <br />
</span>
<span class="style4">
<em style="font-size: x-large; color: #0000FF; text-decoration: underline">Cash
Solutions</em></span><span class="style2">
</span>
<br />
&nbsp;<br />
<asp:Panel ID="Panel1" runat="server" Height="241px"
style="background-color: #669999" Width="449px">
<br class="style3" />
<br />
<asp:Login ID="Login1" runat="server" Height="157px"
style="background-color: #CCCCCC; font-style: italic; color: #000000;"
Width="290px">
</asp:Login>
<marquee style="font-size: large; height: 28px; background-color: #FFFFFF; font-family: 'Times New Roman', Times, serif;">APSG/Cash Solutions</marquee>
</asp:Panel>
</div>
</div>
</form>
</body>
</html>
 

Answers (2)