CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1

Threaded View

  1. #1
    Join Date
    Mar 2005
    Posts
    141

    Images not displaying

    I have two pages which reside in the root folder of the application. Both attempt to display images that reside in a sub-folder (or a series of sub-folders), but only one does it successfully. I use the same control (with the same settings, merely copied from one to the other) on both pages. I've even tried using both the Image control and the basic HTML IMG tag. This leads me to think that it may be a problem with the page itself, but I can't spot it. What could cause such a thing? Both of this pages are quite plain; just displaying images and a few text boxes and labels.

    Below is the aspx for the page that does not work. It is almost identical to the one that does work.

    Code:
    <%@ Register TagPrefix="App1" Namespace="App1" Assembly="AppBase1" %>
    <%@ Page Language="vb" AutoEventWireup="false" Codebehind="Login.aspx.vb" Inherits="App1.Login" EnableViewState="false" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
           <head>
    		<title>Login</title>
    		<link type="text/css" rel="stylesheet" href="Includes/Stylesheets/App1.css">
    
    		<script language="javascript">
    		//TIMEOUT HANDLING
    			//Is this window within a frame
    			if (parent.frames.length > 1){
    				parent.location.href = "Login.aspx";
    			}
    			//Handles modal window scenarios 
    			if (typeof dialogArguments != "undefined") {
    				alert("Session expired, please login again.");
    				self.close();
    			}
    		
    			function pageLoad() {
    				if (Form1.UserName.value != ''){
    					document.Form1.Password.focus();
    				}else{
    					document.Form1.UserName.focus();
    				}
    			}			
    		</script>
    		
    	</head>
    	<body onload="pageLoad();">
    		<form id="Form1" method="post" runat="server">
    			<table id="mainScreenPageContent"><tr><td style="vertical-align: middle; text-align: center;">
    				<img src="Images/logo/logo.jpg" width="432px" height="137px" />
    				<table cellpadding="0">
    					<tr>
    						<td class="fieldLabel">Branch:</td>
    						<td><ACTRL:DBDROPDOWNLIST id="Branch" runat="server" StoredProcName="upBranches_lst" AddBlankOption="True" value="1"></ACTRL:DBDROPDOWNLIST></td>
    					</tr>
    					<tr>
    						<td class="fieldLabel">User Name:</td>
    						<td><input class="textBox" id="UserName" runat="server" NAME="UserName"></td>
    					</tr>
    					<tr>
    						<td class="fieldLabel">Password:</td>
    						<td><input class="textBox" id="Password" type="password" runat="server" NAME="Password"></td>
    					</tr>
    					<tr>
    						<td colspan="2" style="padding-top: 10px; text-align: center;">
    							<input class="button" id="btnLogIn" type="submit" onclick="showLoading();" value="Log In" runat="server" NAME="btnLogIn">
    						</td>
    					</tr>
    					<tr>
    						<td id="MessageColumn" colspan="2" runat="server"></td>
    					</tr>
    				</table>
    				
    			</td></tr></table>
    			
    			<ACTRL:LoadingDiv id="LoadingDiv" runat="server"></ACTRL:LoadingDiv>
    		</form>
    	</body>
    </html>
    All of the custom controls are present throughout the application, but this is the only page that isn't displaying the images, so I don't think that they are to blame. Frankly, I'm stumped. Help would be appreciated.
    Last edited by Broodmdh; February 7th, 2008 at 02:54 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured