Bruno Charters
Bruno Charters

Reputation: 494

Publishing asp.net single page to ftp server?

i'm trying to publish a webpage into my ftp server, thing is when i publish it and try to access it, the result is just pure code . How can i make it so that only the "design" of the asp file appears?

Thanks in advance, Bruno Charters

Upvotes: 0

Views: 1013

Answers (2)

RealSollyM
RealSollyM

Reputation: 1530

You will need to compile your code before you publish it. Compiling your code basically moves all the logic into the .dll file and leave only the HTML (well, at least). You will still need a Web Server with aspx processor, typically IIS.

You will need to point your Web Server to the folder you are uploading to.

Upvotes: 0

Alex
Alex

Reputation: 35399

How can i make it so that only the "design" of the asp file appears?

If all you want to appear in the browser is the "design" (meaning no server-side logic). Then all you'd really need is an HTML page. To do so:

  • copy the markup rendered by the .aspx file from the browsers source
  • paste the markup into an appropriately named .html/.htm file
  • upload the file to your server

If there is server-side logic then you'll need to upload the .aspx file to a server that has IIS and the appropriate version of the .NET Framework to run the page.

Upvotes: 1

Related Questions