Top 10 Daily Top Selling Deals - Official TigerDirect.com Deals

Official TigerDirect.com Coupons

Official TigerDirect.com Coupons

Tuesday, March 1, 2011

Outta my head with ASPX pages


So I've been tasked with updating an aspx page. Seems pretty simple, right? I just need to go into the page and add some meta tags. So I look at the site, and do a view source, and here's what I see:

Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><html>
<head>
<title>texascarsdirect.com</title>
<link type="text/css" rel="stylesheet" href="../../../PublicWeb/UI/TCD.CSS">
</head>
<body bgcolor="#000000" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">
<form name="PublicHeader" method="post" action="default.aspx" id="PublicHeader">
<input type="hidden" name="__VIEWSTATE" value="dDwxNDY1MzQ1Nzk0O3Q8O2w8aTw2Pjs+O2w8dDw7bDxpPDI+Oz47bDx0PDtsPGk8MD47PjtsPHQ8O2w8aTwwPjs+O2w8dDw7bDxpPDA+Oz47bDx0PDtsPGk8MD47PjtsPHQ8O2w8aTwwPjs+O2w8dDw7bDxpPDA+Oz47bDx0PHA8cDxsPEltYWdlVXJsOz47bDwuLi8uLi8uLi9Db250ZW50L01haW5QaWNzL21haW5waXgwMS5qcGc7Pj47Pjs7Pjs+Pjs+Pjs+Pjs+Pjs+Pjs+Pjs+Pjs+Pjs+giHKwdQSc8tdA8SHbFvxjtN0pl4=" />

OK, nothing is added. So I download the files from the server, open up this page (which is default.aspx) and look at the source code:

Code:

<%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false" Inherits="TexasCarsDirect.PublicWeb.UI.WebForms.Test"  %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
        <HEAD>
                <title>texascarsdirect com</title>
                <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
                <meta name="CODE_LANGUAGE" Content="C#">
                <meta name="vs_defaultClientScript" content="JavaScript">
                <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
                <!-- Developed by ICDataSolutions -->
                <meta name="Developed BY" content="http://www.icdatasolutions.com">
                <meta name="description" content="The largest seller of pre-owned Jaguar, Mercedes, BMW and other fine automobiles.">
                <meta name="keywords" content="used, pre-owned, preowned, jaguar, mercedes, bmw's, jaguars, bmws, mercedes benz, mercedes-benz, benz, sedans, coupes, convertibles, jag, jag coupes, jauguar coupes, jaguar convertibles, auto, automobile, automobiles,vehicles, 325i, 525i, 740i,used cars, 3 series, 5 series, 7 series, 8 series,  XJ6 , XJ8, XJS, VANDEN PLAS, XJ12L, Jaguar, Jaguar,
                Jaguars, Jaguar, Jaguars, Jaguar, Jaguar, Jaguar,
                Jaguars, Jaguar, Jaguars, Jag, Jags, Jag,
                Jags, xj6, xjs, xke, x, s, type, x-type, s-type,
                xj12, xj8, xk8, Vanden Plas, vdp, xjr, xj8l, xj6l,
                silverstone, convertible, coupe, sedan, suv,
                Mercedes Benz, Porsche, Ferrari, Lamborghini,
                Lexus, Acura, Audi, BMW, m3, m5, series, 3, 4, 5,
                6, 7, 8, a4, a6, a8, Cadillac, Infiniti, lotus,
                Saab, Volvo, maserati, range rover, land,
                discovery, boxster, 911, cabroliet, conv, Harmon
                Kardon, warranty, wholesale, wholesaler, sale,
                sales, dealership, nationwide, British cars,
                European, luxury, pre, owned, pre-owned, used,
                leading seller, sell, sold, Benzs, Porsches,
                Ferraris, Lamborghinis, Acuras, Audis, BMWs,
                texas, tx, dallas, fort worth, ft, ">
                <meta name="revisit-after" content="7 days">
                <! -------------- Ticker tape message ---------------->
                <script Language="JavaScript">
                <!-- hide
                var count = 0;
                var text = "                      Welcome to texascarsdirect.com!!  Please call us at 972-243-3400 if you have any questions.  Thank You and have a great day!!!!!!";
                scroll( );
                function scroll ( ) {
                window.status=text.substring (count, text.length)+text.substring (0,count)
                if (count<text.length)
                count ++;
                else
                count=0;
                setTimeout ("scroll( )", 100);
                }
                file://-->
                </script>
                <! -------------- end of Ticker tape message ------------> <! -- Jaguar,
                Jaguar, Jaguar, Jaguar, Jaguar, Jaguar, Jaguar, Jaguar, Jaguar, Jaguar, Jaguar,
                Jaguar, Jaguar, Jaguar, Jaguar, Jaguar, Jaguar, Jaguar, Jaguar, Jaguar, Jaguar,
                Jaguar, Jaguar, Jaguar, Jaguar, Jaguar, Jaguar, Jaguars, Jaguars, Jaguars,
                Jaguars, Jaguars, Jaguars, Jaguars, Jaguars, Jaguars, Jaguars, Jaguar, Jaguar,
                Jaguar, Jaguars, Jaguar, Jaguars, Jaguar, Jaguar, Jaguar, Jaguars, Jaguars,
                Jaguar, Jaguars, Jaguar, Jaguars, Jaguar, Jaguars, Jaguar, Jaguars, Jag, Jags,
                xj6, xjs, xke, x, s, type, x-type, x-type, xj12, xj8, xk8, Vanden Plas, vdp,
                xjr, xj8l, xj6l, silverstone, convertible, coupe, sedan, suv, Mercedes Benz,
                Porsche, Ferrari, Lamborghini, Lexus, Acura, Audi, BMW, m3, m5, series, 3, 4,
                5, 6, 7, 8, a4, a6, a8, Cadillac, Infiniti, lotus, Saab, Volvo, maserati, range
                rover, land, discovery, boxster, 911, cabroliet, conv, Harmon Kardon, warranty,
                wholesale, wholesaler, sale, sales, dealership, nationwide, British cars,
                European, luxury, pre, owned, pre-owned, used, leading seller, sell, sold,
                Benzs, Porsches, Ferraris, Lamborghinis, Acuras, Audis, BMWs, texas, tx,
                dallas, fort worth, ft, -->
        <!-- SiteCatalyst code version: H.2.
Copyright 1997-2005 Omniture, Inc. More info available at
http://www.omniture.com -->
                <script language="JavaScript" src="s_code.js"></script>
                <script language="JavaScript"><!--
/* You may give each page an identifying name, server, and channel on
the next lines. */
s.pageName="Home"
s.server=""
s.channel=""
s.pageType=""
s.prop1=""
s.prop2=""
s.prop3=""
s.prop4=""
s.prop5=""
/* E-commerce Variables */
s.campaign="src"
s.state=""
s.zip=""
s.events=""
s.products=""
s.purchaseID=""
s.eVar1=""
s.eVar2=""
s.eVar3=""
s.eVar4=""
s.eVar5=""
/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)//--></script>
                <script language="JavaScript"><!--
if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
//--></script> <!--/DO NOT REMOVE/-->
                <!-- End SiteCatalyst code version: H.2. -->
        </HEAD>
        <body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
                <form id="PublicHeader" method="post" runat="server">
                        <table width="100%" height="131" border="0" cellspacing="0" cellpadding="0" ID="Table1">
                                <tr>
                                        <td background="../../../PublicWeb/UI/Images/TCD_UI_top_bg.gif">
                                                <table width="780" border="0" cellspacing="0" cellpadding="0" ID="Table2">

See the problem? they are two totally different sources. I double checked, made a change to the local default.aspx page in the body and it updated on the site. But I can't for the life of me figure out why I can't edit any head information, or why it's disappearing from the local file to when it appears on the page.

I assume it has something to do with ASP, but I have no idea where to begin looking. I've been tearing my hair out for the past two hours. Something this simple should be easy to do, but I have no idea where to begin. Thanks for your help!

Computers-and-Technology Articles from EzineArticles.com