localhost vs. MyComputer

Discussion in 'Microsoft ASP .NET' started by Vik, May 21, 2009.

  1. Vik

    Vik Guest

    I need a gridview without the borders but with the gridlines.
    I set BorderStyle = None and GridLines = Both.
    If I run a project from VS2005 or enter an address in a browser
    //localhost/MyProject/MyPage.aspx then the grid appears WITHOUT the borders
    and WITH the gridlines.
    If I open the same page by an address //MyCompName/MyProject/MyPage.aspx,
    then the grid appears WITH the borders and with the gridlines.
    If I set BorderWidth = 0px, then //localhost/... shows the grid WITHOUT the
    borders and WITH the gridlines and //MyCompName/... shows the grid WITHOUT
    the borders and WITHOUT the gridlines.

    When a page is placed on a server, it appears the same way as at
    //MyCompName/...

    Why does the same page appear in different ways? How can I fix it?

    Thanks.

    Victor
     
    Vik, May 21, 2009
    #1
    1. Advertisements

  2. Without seeing the code and understanding your computer's set up, I have no
    clue.

    --
    Gregory A. Beamer
    MCP: +I, SE, SD, DBA

    *********************************************
    | Think outside the box!
    |
    *********************************************
    "Vik" <viktorum@==hotmail.com==> wrote in message
    news:...
    >I need a gridview without the borders but with the gridlines.
    > I set BorderStyle = None and GridLines = Both.
    > If I run a project from VS2005 or enter an address in a browser
    > //localhost/MyProject/MyPage.aspx then the grid appears WITHOUT the
    > borders and WITH the gridlines.
    > If I open the same page by an address //MyCompName/MyProject/MyPage.aspx,
    > then the grid appears WITH the borders and with the gridlines.
    > If I set BorderWidth = 0px, then //localhost/... shows the grid WITHOUT
    > the borders and WITH the gridlines and //MyCompName/... shows the grid
    > WITHOUT the borders and WITHOUT the gridlines.
    >
    > When a page is placed on a server, it appears the same way as at
    > //MyCompName/...
    >
    > Why does the same page appear in different ways? How can I fix it?
    >
    > Thanks.
    >
    > Victor
    >
    >
     
    Cowboy \(Gregory A. Beamer\), May 21, 2009
    #2
    1. Advertisements

  3. Without seeing the code and understanding your computer's set up, I have no
    clue.

    --
    Gregory A. Beamer
    MCP: +I, SE, SD, DBA

    *********************************************
    | Think outside the box!
    |
    *********************************************
    "Vik" <viktorum@==hotmail.com==> wrote in message
    news:...
    >I need a gridview without the borders but with the gridlines.
    > I set BorderStyle = None and GridLines = Both.
    > If I run a project from VS2005 or enter an address in a browser
    > //localhost/MyProject/MyPage.aspx then the grid appears WITHOUT the
    > borders and WITH the gridlines.
    > If I open the same page by an address //MyCompName/MyProject/MyPage.aspx,
    > then the grid appears WITH the borders and with the gridlines.
    > If I set BorderWidth = 0px, then //localhost/... shows the grid WITHOUT
    > the borders and WITH the gridlines and //MyCompName/... shows the grid
    > WITHOUT the borders and WITHOUT the gridlines.
    >
    > When a page is placed on a server, it appears the same way as at
    > //MyCompName/...
    >
    > Why does the same page appear in different ways? How can I fix it?
    >
    > Thanks.
    >
    > Victor
    >
    >
     
    Cowboy \(Gregory A. Beamer\), May 21, 2009
    #3
  4. Vik

    Vik Guest

    Here is the source code:

    <!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>
    </head>
    <body>
    <form method="post" action="TableBorder.aspx" id="form1">
    <table cellspacing="0" rules="all" bordercolor="black" border="1"
    id="GridView1"
    style="border-style:None; border-collapse:collapse;">
    <tr><td>FirstName</td><td>LastName</td></tr>
    <tr><td>John</td><td>Smith</td></tr>
    <tr><td>Robert</td><td>Doe</td></tr>
    </table>
    </form>
    </body>
    </html>
    http://localhost/Incidents/TableBorder.aspx- the table appears without the
    borders and with the rules. I need to get this on the server.

    http://MyComp/Incidents/TableBorder.aspx - the table appears with the
    borders and with the rules. The same on the server.

    The same behaivior if I change the file name to *.htm.

    I have Windows XP, IIS 5.1. The server has Windows 2003.

    Thanks.

    Victor

    "Cowboy (Gregory A. Beamer)" <> wrote in message
    news:...
    > Without seeing the code and understanding your computer's set up, I have
    > no clue.
    >
    > --
    > Gregory A. Beamer
    > MCP: +I, SE, SD, DBA
    >
    > *********************************************
    > | Think outside the box! |
    > *********************************************
    > "Vik" <viktorum@==hotmail.com==> wrote in message
    > news:...
    >>I need a gridview without the borders but with the gridlines.
    >> I set BorderStyle = None and GridLines = Both.
    >> If I run a project from VS2005 or enter an address in a browser
    >> //localhost/MyProject/MyPage.aspx then the grid appears WITHOUT the
    >> borders and WITH the gridlines.
    >> If I open the same page by an address //MyCompName/MyProject/MyPage.aspx,
    >> then the grid appears WITH the borders and with the gridlines.
    >> If I set BorderWidth = 0px, then //localhost/... shows the grid WITHOUT
    >> the borders and WITH the gridlines and //MyCompName/... shows the grid
    >> WITHOUT the borders and WITHOUT the gridlines.
    >>
    >> When a page is placed on a server, it appears the same way as at
    >> //MyCompName/...
    >>
    >> Why does the same page appear in different ways? How can I fix it?
    >>
    >> Thanks.
    >>
    >> Victor
    >>
    >>

    >
     
    Vik, May 21, 2009
    #4
  5. Vik

    Vik Guest

    Here is the source code:

    <!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>
    </head>
    <body>
    <form method="post" action="TableBorder.aspx" id="form1">
    <table cellspacing="0" rules="all" bordercolor="black" border="1"
    id="GridView1"
    style="border-style:None; border-collapse:collapse;">
    <tr><td>FirstName</td><td>LastName</td></tr>
    <tr><td>John</td><td>Smith</td></tr>
    <tr><td>Robert</td><td>Doe</td></tr>
    </table>
    </form>
    </body>
    </html>
    http://localhost/Incidents/TableBorder.aspx- the table appears without the
    borders and with the rules. I need to get this on the server.

    http://MyComp/Incidents/TableBorder.aspx - the table appears with the
    borders and with the rules. The same on the server.

    The same behaivior if I change the file name to *.htm.

    I have Windows XP, IIS 5.1. The server has Windows 2003.

    Thanks.

    Victor

    "Cowboy (Gregory A. Beamer)" <> wrote in message
    news:...
    > Without seeing the code and understanding your computer's set up, I have
    > no clue.
    >
    > --
    > Gregory A. Beamer
    > MCP: +I, SE, SD, DBA
    >
    > *********************************************
    > | Think outside the box! |
    > *********************************************
    > "Vik" <viktorum@==hotmail.com==> wrote in message
    > news:...
    >>I need a gridview without the borders but with the gridlines.
    >> I set BorderStyle = None and GridLines = Both.
    >> If I run a project from VS2005 or enter an address in a browser
    >> //localhost/MyProject/MyPage.aspx then the grid appears WITHOUT the
    >> borders and WITH the gridlines.
    >> If I open the same page by an address //MyCompName/MyProject/MyPage.aspx,
    >> then the grid appears WITH the borders and with the gridlines.
    >> If I set BorderWidth = 0px, then //localhost/... shows the grid WITHOUT
    >> the borders and WITH the gridlines and //MyCompName/... shows the grid
    >> WITHOUT the borders and WITHOUT the gridlines.
    >>
    >> When a page is placed on a server, it appears the same way as at
    >> //MyCompName/...
    >>
    >> Why does the same page appear in different ways? How can I fix it?
    >>
    >> Thanks.
    >>
    >> Victor
    >>
    >>

    >
     
    Vik, May 21, 2009
    #5
  6. Vik

    Mark Guest

    If you're using Internet Explorer 8, make sure that you do not have
    Compatability View switched on when viewing the page via MyCompName.

    Cheers,
    Mark.
     
    Mark, Jun 17, 2009
    #6
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Elsa Luiz

    Get localhost physical directory?

    Elsa Luiz, Jul 15, 2003, in forum: Microsoft ASP .NET
    Replies:
    0
    Views:
    421
    Elsa Luiz
    Jul 15, 2003
  2. Saravana

    Re: Can't run Quickstart on Localhost

    Saravana, Jul 23, 2003, in forum: Microsoft ASP .NET
    Replies:
    0
    Views:
    818
    Saravana
    Jul 23, 2003
  3. mark

    web access failed (localhost)

    mark, Aug 11, 2003, in forum: Microsoft ASP .NET
    Replies:
    1
    Views:
    191
  4. Jiong Feng
    Replies:
    0
    Views:
    1,136
    Jiong Feng
    Nov 19, 2003
  5. Alex
    Replies:
    4
    Views:
    935
    Hasani Blackwell
    Feb 8, 2005
  6. Login failed for user 'myComputer\ASPNET'

    , Oct 6, 2005, in forum: Microsoft ASP .NET
    Replies:
    4
    Views:
    165
    Paul Clement
    Oct 7, 2005
  7. Guest
    Replies:
    5
    Views:
    530
  8. Vik

    localhost vs. MyComputer

    Vik, May 21, 2009, in forum: Microsoft ASP .NET
    Replies:
    0
    Views:
    183
Loading...