Solved

Website form does not load properly

Posted on 2012-03-22
9
218 Views
Last Modified: 2012-06-27
screen shot of errorsHello All,

Lets start by saying I'm very new to this.  Attempting to build a site in visual web developer 2010 express.  I downloaded a template to help me get started.  I made a site.master which seems to work OK for now.. I think.   In the root directory there is a Account folder, which is auto set to user has to be logged into see.  In this account folder I made a page named Login.aspx using the master site.  But when I click view in brower I get a debugger..


<!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><title>
	TemplateAccess.com Theme
</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><link href="../style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<!-- Custom -->
<script type="text/javascript">
    $(function () { $('.search span').css({ 'border-radius': '5px' }); });
</script>
<!-- Cufon -->
<script type="text/javascript" src="js/cufon-yui.js"></script>
<script type="text/javascript" src="js/myradpro.font.js"></script>
<script type="text/javascript">
    Cufon.replace('h1')('h2')('h3')('h4')('.menu a')('.rss a.big');
</script>
<!-- flash script -->
<script type="text/javascript" src="js/flash_detect.v1.7.js"></script>
    
</head>
<body>
    <form method="post" action="Login.aspx" onsubmit="javascript:return WebForm_OnSubmit();" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJMjc1NzM5ODcwD2QWAmYPZBYCAgMPZBYCAgEPZBYCAgEPZBYCZg9kFgICDQ8QDxYCHgdDaGVja2VkaGRkZGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFK2N0bDAwJENvbnRlbnRQbGFjZUhvbGRlcjEkTG9naW4xJFJlbWVtYmVyTWUtopE5UF8v2072Wbr69kUTTvfcmXhAfy+X5aFhpvD+NA==" />
</div>

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]> 

Open in new window

0
Comment
Question by:solarissf
  • 5
  • 4
9 Comments
 
LVL 38

Expert Comment

by:Tom Beck
ID: 37755334
It looks like all of the errors have to do with javascript includes.

If Account is your root directory and you are opening Login.aspx from there then it must have a directory inside of it called js which contains your javascript include files: cufon-yui.js, jquery-1.3.2.min.js, myradpro.font.js, and flash_detect.v1.7.js.

If it's not arranged like that then that would explain all of those errors.
0
 

Author Comment

by:solarissf
ID: 37755347
the Root directory has the Folder js.
Since this new page is in the folder Account, how do I tell it to look in the root directory for folder js?

Thanks!!!
0
 
LVL 38

Accepted Solution

by:
Tom Beck earned 500 total points
ID: 37755358
For each of your javascript includes sources, do this:

src="../js/jquery-1.3.2.min.js"

That's a dot dot slash to tell the browser to go up one level to the root, then look for the js folder.

This may also work:

src="~/js/jquery-1.3.2.min.js"

Tilde slash
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:solarissf
ID: 37755383
dumb question... but where do I see this info to make the changes?
0
 
LVL 38

Expert Comment

by:Tom Beck
ID: 37755391
Any place in the markup where you are including an external file like here, line 7:

<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
0
 

Author Comment

by:solarissf
ID: 37755392
I see code in the site.master... but if I change that area, then the default page gives me those same errors
0
 

Author Comment

by:solarissf
ID: 37755396
the markup for account/login.aspx has only this.

so all that code is in the master... and I cant change the master correct?
So how do I put the info on this page to point to the right around

sorry for all the beginner questions..

<%@ Page Title="" Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeFile="Members.aspx.cs" Inherits="Account_Members" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <h1>
        Welcome to the Members Only Page!!!!</h1>
</asp:Content>
0
 
LVL 38

Expert Comment

by:Tom Beck
ID: 37755408
Is this line in your site.master or on the default page?

<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>

It should work either way. The site.master is in the same directory as Default.aspx and Login.aspx, correct?

If not, correct this map:

js (folder)
Account (folder)
    Login.aspx
    Default.aspx
    site.master
0
 
LVL 38

Expert Comment

by:Tom Beck
ID: 37755425
so all that code is in the master... and I cant change the master correct?

I'm assuming you mean the code that came with the template. The answer is if it's wrong for your situation then you will need to change it to make it work. You could leave it alone and move your js folder so it's inside the Account folder (if I am visualizing your folder structure properly).
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question