Dumb Question Probably

Last post 07-27-2006 7:40 PM by Kiryn. 11 replies.

Sort Posts:

  • Dumb Question Probably

    07-04-2006, 11:28 AM
    • Member
      175 point Member
    • Kiryn
    • Member since 07-04-2006, 11:26 AM
    • Posts 35
    Okay I notice that when I view the source code of the site. The meta tags and everything else is on seperate lines. But when I look at mine its all on one line and looks crappy. IS there anyway to change all this?
  • Re: Dumb Question Probably

    07-04-2006, 12:10 PM
    • Member
      140 point Member
    • EmeraldMound
    • Member since 05-19-2006, 10:58 PM
    • St Louis Metro
    • Posts 29

    Are you looking for a setting inside of visual studio? 

    You can try HTML TIDY http://tidy.sourceforge.net  I have mixed feelings about using it to modify code produced by Visual Studio.  With the right configuration, it will work.  Remember to create a back up a copy of your project before you modify any of your source.

    You can also validate your HTML at http://validator.w3.org/.   

    Hope that helps.

    Mike

    Web Development & Internet Consulting

  • Re: Dumb Question Probably

    07-04-2006, 12:34 PM
    • Member
      175 point Member
    • Kiryn
    • Member since 07-04-2006, 11:26 AM
    • Posts 35
    okay i did that and i get this,

    C:\Inetpub\wwwroot>tidy -i Default.aspx
    line 1 column 1 - Warning: specified input encoding (iso-8859-1) does not match
    actual input encoding (utf-8)
    line 18 column 17 - Error: <asp:image> is not recognized!
    line 18 column 17 - Warning: discarding unexpected <asp:image>
    line 6 column 1 - Warning: <head> proprietary attribute "runat"
    line 14 column 5 - Warning: <form> proprietary attribute "runat"
    line 14 column 5 - Warning: <form> lacks "action" attribute
    Info: Doctype given is "-//W3C//DTD XHTML 1.0 Transitional//EN"
    Info: Document content looks like XHTML 1.0 Strict
    4 warnings, 1 error were found!

    and my Default.aspx file

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

    <!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 runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="Pragma" content="no-cache" />
        <title>Untitled Page</title>
    <link href="default.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form id="gamerforce" runat="server">
        <div id="wrap">
            <div id="innerwrap">
                <div id="header">
                    <asp:Image ID="Image1" runat="server" Width="900px" Height="197px" ImageUrl="~/images/GamerForceBanner.png" />
                </div><!-- end of <div id="header"> -->
                <div id="content">
                </div>
            </div><!-- end of <div id="innerwrap"> -->
        </div><!-- end of <div id="wrap"> -->
        </form>
    </body>
    </html>
  • Re: Dumb Question Probably

    07-04-2006, 2:36 PM
    • Member
      140 point Member
    • EmeraldMound
    • Member since 05-19-2006, 10:58 PM
    • St Louis Metro
    • Posts 29

    Looks to like you might have validated the .aspx source code, rather than the HTML output generated by the web application.  If you've deployed your web application on a web server that can be accessed across the internet then try to validate that page.  Otherwise run your application and "view the page source" through your web browser.  Copy that page source and paste it into the validation page. 

    Let me know what happens.

    Mike

     

  • Re: Dumb Question Probably

    07-04-2006, 5:00 PM
    • Member
      175 point Member
    • Kiryn
    • Member since 07-04-2006, 11:26 AM
    • Posts 35
    i think you missed my point. Okay heres the source code from FireFox source code browser


    <!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><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="expires" content="0" /><meta http-equiv="Pragma" content="no-cache" /><title>
    Untitled Page
    </title><link href="default.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="rollover.js"></script>
    </head>
    <body>
    <form name="gamerforce" method="post" action="Default.aspx" id="gamerforce">
    <div>
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJNzI5MjA2NTk5ZGRFuFPEjIdX7rMBgblpIhEI8014ig==" />
    </div>

        <div id="wrap">
    <div id="innerwrap">
    <div id="header">
    <img id="Image1" src="images/GamerForceBanner.png" style="height:197px;width:900px;border-width:0px;" />
    </div><!-- end of <div id="header"> -->
    <div id="navbar">
    <a href="Default.aspx"><img src="./images/1_off.png" id="navRollOver" alt="" onmouseover="leftButtonOn()" onmouseout="leftButtonOff()" /></a>
    </div>
    </div><!-- end of <div id="innerwrap"> -->
        </div><!-- end of <div id="wrap"> -->
    </form>
    </body>
    </html>

    all the files in the header area is sloppy. And I was wondering is there a way to change the sloppyness of it.

  • Re: Dumb Question Probably

    07-04-2006, 11:46 PM
    • Member
      175 point Member
    • Kiryn
    • Member since 07-04-2006, 11:26 AM
    • Posts 35
    Anyone have any idea?
  • Re: Dumb Question Probably

    07-07-2006, 12:46 AM
    • Member
      175 point Member
    • Kiryn
    • Member since 07-04-2006, 11:26 AM
    • Posts 35
    I am really badly needing to know cause I can't stand it when I look at my source and find that problem :(
  • Re: Dumb Question Probably

    07-11-2006, 9:54 AM
    • Member
      140 point Member
    • EmeraldMound
    • Member since 05-19-2006, 10:58 PM
    • St Louis Metro
    • Posts 29

    I'm not totally sure what you are asking for, but I'd format it like this:
     
    <!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>Untitled Page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="Pragma" content="no-cache" /
    <link href="default.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="rollover.js"></script>
    </head>


    Emerald Mound, Inc. - Web Development, Site Maintenance & Internet Consulting 

  • Re: Dumb Question Probably

    07-11-2006, 11:24 PM
    • Member
      175 point Member
    • Kiryn
    • Member since 07-04-2006, 11:26 AM
    • Posts 35
    Yeah I have it like that in VS:TS but it comes out like the other post and i hate it :'(
  • Re: Dumb Question Probably

    07-12-2006, 3:43 PM
    • Member
      20 point Member
    • Sunflare98
    • Member since 07-12-2006, 3:28 PM
    • Atlanta, GA
    • Posts 4

    Could this be a Firefox issue? Does it display correctly in IE?

    Is there a downside to having the code displayed like that (e.g. SEO optimization)?  If it looks okay in Visual Studio and that's where you're working with it, I wouldn't worry about it imho.

  • Re: Dumb Question Probably

    07-13-2006, 6:22 AM
    • Member
      175 point Member
    • Kiryn
    • Member since 07-04-2006, 11:26 AM
    • Posts 35
    yeah its perfect in vs but i know its dumb that i want it that way but its jsut me
  • Crying [:'(] Re: Dumb Question Probably

    07-27-2006, 7:40 PM
    • Member
      175 point Member
    • Kiryn
    • Member since 07-04-2006, 11:26 AM
    • Posts 35
    Anything
Page 1 of 1 (12 items)