Website form does not load properly

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" "">

<html xmlns="">
<head><title> 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' }); });
<!-- 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');
<!-- flash script -->
<script type="text/javascript" src="js/flash_detect.v1.7.js"></script>
    <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==" />

<script type="text/javascript">
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;

Open in new window

Who is Participating?

Improve company productivity with a Business Account.Sign Up

Tom BeckConnect With a Mentor Commented:
For each of your javascript includes sources, do this:


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:


Tilde slash
Tom BeckCommented:
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.
solarissfAuthor Commented:
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?

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

solarissfAuthor Commented:
dumb question... but where do I see this info to make the changes?
Tom BeckCommented:
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>
solarissfAuthor Commented:
I see code in the site.master... but if I change that area, then the default page gives me those same errors
solarissfAuthor Commented:
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 ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        Welcome to the Members Only Page!!!!</h1>
Tom BeckCommented:
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)
Tom BeckCommented:
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).
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.