Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Website form does not load properly

Posted on 2012-03-22
Medium Priority
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" "">

<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

Question by:solarissf
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
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.

Author Comment

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?

LVL 38

Accepted Solution

Tom Beck earned 2000 total points
ID: 37755358
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

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.


Author Comment

ID: 37755383
dumb question... but where do I see this info to make the changes?
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>

Author Comment

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

Author Comment

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 ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        Welcome to the Members Only Page!!!!</h1>
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)
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).

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

670 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