Results 1 to 6 of 6

Thread: [RESOLVED] How to view output of aspx pages on website

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2010
    Posts
    164

    Resolved [RESOLVED] How to view output of aspx pages on website

    Hi, I know this question is probably asked a lot but I can't get a definitive answer, so I came here.

    I'm using a hosting service and I tried putting the default pages (that you get when you make a new website in web developer) onto the hosting service. But they only show up "normally" when I change the extension to html. if it's .aspx it just shows the code.

    Question is how can I view the aspx file in the browser from the website normally without using "View in Browser" in that popup menu in Visual Studio Web Developer? And side note I can't use IIS (don't know if that's important but other places talked about it)

  2. #2
    Frenzied Member brin351's Avatar
    Join Date
    Mar 2007
    Location
    Land Down Under
    Posts
    1,293

    Re: How to view output of aspx pages on website

    asp.net pages need a server running IIS to process the code and controls and return the resulting HTML to the browser.

    If you do not use IIS or launch the Visual Studio testing server or change the extention from aspx to htm then no code will run and the page directives and controls like <asp:label id=abc ......./> are not vaild html and will most likely cause the browser to display an error message.

    Short answer you can't do it. Either create a html page that does not need a server to render it for a browser or use a server to render asp.net pages.
    The problem with computers is their nature is pure logic. Just once I'd like my computer to do something deluded.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2010
    Posts
    164

    Re: How to view output of aspx pages on website

    Thank you for the good answer, i'll work on resolving that.

  4. #4
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [RESOLVED] How to view output of aspx pages on website

    Hello acrym,

    Which hosting provider do you use? They should have support staff in place that will help you get up and running.

    Gary

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Aug 2010
    Posts
    164

    Re: [RESOLVED] How to view output of aspx pages on website

    I use x10 hosting

    http://x10hosting.com/

    and thanks I'll contact them if i have any more trouble, but i've been looking into a HTML5 script that can do what I want.

  6. #6
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [RESOLVED] How to view output of aspx pages on website

    Hello,

    HTML 5 is definitely an option, but I wouldn't let this one hiccup put you off using ASP.Net.

    Have you contacted the support offered by X10? I can't seem to access the site that you linked to, but from the small amount that I can see in Google Cache, x10 seems to only offer Linux based hosting, is that correct? If so, your ASP.Net Site will quite simply not work.

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width