techPowerUp! Forums

Go Back   techPowerUp! Forums > Software > Programming & Webmastering

Reply
 
Thread Tools
Old Jul 17, 2012, 03:28 AM   #1
BondExtreme
500 Posts
 
BondExtreme's Avatar
 
Join Date: Aug 2010
Location: Tampa Bay, Fl
Posts: 527 (0.52/day)
Thanks: 98
Thanked 88 Times in 62 Posts
Send a message via AIM to BondExtreme Send a message via MSN to BondExtreme Send a message via Yahoo to BondExtreme Send a message via Skype™ to BondExtreme

System Specs

How to open a .aspx?

So for some odd reason my computer can't open a .aspx file. I told my computer to determine the proper program to open the file with but nothing works. I tried adobe reader, notepad, iE. Nothing works. Can anyone recommend a program?
__________________
http://youtube.com/xtremegamingpresents
youtube.com/xtremegamingpresents | 'Like' us on Facebook!
BondExtreme is offline  
Reply With Quote
Old Jul 17, 2012, 03:38 AM   #2
OnePostWonder
200 Posts
 
Join Date: Dec 2008
Posts: 486 (0.30/day)
Thanks: 61
Thanked 90 Times in 71 Posts

System Specs

I'm working with this URL:

Colorado.gov

What browser are you using to try and open it? Nevermind, I see you are trying with IE (and also guessing). I'll try with IE 9.

For future reference, use a site like FileXT (recommended) or Wikipedia to get more info on a file extension.

Works with IE 9. Can you give more context, such as where the file came from?
OnePostWonder is offline  
Reply With Quote
Old Jul 17, 2012, 04:34 AM   #3
FordGT90Concept
"I go fast!1!11!1!"
 
FordGT90Concept's Avatar
 
Join Date: Oct 2008
Location: IA, USA
Posts: 10,580 (6.28/day)
Thanks: 1,755
Thanked 2,598 Times in 1,962 Posts

System Specs

IIS (or some other server) needs to host it and be set up to process ASPX files. To enable it, Google something like ASPX Apache or ASPX IIS7. You'll find guides on how to make it work.

If you're trying to edit it, Visual Studio is best but any text editor (ASCII, UTF8, UTF16) will work.
__________________
Golden Rule of Programming: Never assume.

try { SteamDownload(); }
catch (Steamception ex) { RageQuit(); }
FordGT90Concept is online now  
Crunching for Team TPU
Reply With Quote
Old Jul 17, 2012, 11:19 AM   #4
Mindweaver
Moderato®™
 
Mindweaver's Avatar
 
Join Date: Apr 2009
Location: Statesville, NC
Posts: 3,667 (2.45/day)
Thanks: 4,327
Thanked 2,322 Times in 1,153 Posts

System Specs

If you just want to open it, then any web browser (firefox, ie, opera) will open a .aspx file. You can also, get a add-on in firefox called "Web Developer", but Ford is right the best aspx editor would be Visual Studio. The main editor that I use more than any is "Notepad++" and it will open it as well.
__________________
“As long as I feel the warmth from the sun and breathe precious air…. I must ask questions to feed the Mind!”

Battletag: Mindweaver#1523
Mindweaver is online now  
Crunching for Team TPU
Reply With Quote
Old Jul 17, 2012, 11:32 AM   #5
Aquinus
3500 Posts
 
Aquinus's Avatar
 
Join Date: Jan 2012
Location: Dover, New Hampshire, USA
Posts: 4,268 (8.85/day)
Thanks: 1,280
Thanked 1,330 Times in 986 Posts

System Specs

After the code is processed, it should return with a text/html MIME-type assuming you're not editing the file server-side or if the code returns a different type in the http header.
__________________
MyHeat
Aquinus is offline  
Crunching for Team TPU
Reply With Quote
Old Jul 18, 2012, 03:26 AM   #6
FordGT90Concept
"I go fast!1!11!1!"
 
FordGT90Concept's Avatar
 
Join Date: Oct 2008
Location: IA, USA
Posts: 10,580 (6.28/day)
Thanks: 1,755
Thanked 2,598 Times in 1,962 Posts

System Specs

Browsers won't know what to do with all the ASPX tags and code.
__________________
Golden Rule of Programming: Never assume.

try { SteamDownload(); }
catch (Steamception ex) { RageQuit(); }
FordGT90Concept is online now  
Crunching for Team TPU
Reply With Quote
Old Jul 18, 2012, 03:46 AM   #7
Mindweaver
Moderato®™
 
Mindweaver's Avatar
 
Join Date: Apr 2009
Location: Statesville, NC
Posts: 3,667 (2.45/day)
Thanks: 4,327
Thanked 2,322 Times in 1,153 Posts

System Specs

Quote:
Originally Posted by FordGT90Concept View Post
Browsers won't know what to do with all the ASPX tags and code.
If they are coded correctly they will. I have created a .aspx web interface that updates records on a database that I use with ie and firefox. The browsers will only view the file as it's meant to be viewed. They will not edited the .aspx file with out using an add-on.

EDIT: You are talking about editing and I'm talking about viewing the end results. He just wanted to know how to open the file, not edit or at least that's what I got from his OP. I agree with you if he wants to edit it, visual studio would be his best tool.
__________________
“As long as I feel the warmth from the sun and breathe precious air…. I must ask questions to feed the Mind!”

Battletag: Mindweaver#1523
Mindweaver is online now  
Crunching for Team TPU
Reply With Quote
Old Jul 18, 2012, 04:22 AM   #8
FordGT90Concept
"I go fast!1!11!1!"
 
FordGT90Concept's Avatar
 
Join Date: Oct 2008
Location: IA, USA
Posts: 10,580 (6.28/day)
Thanks: 1,755
Thanked 2,598 Times in 1,962 Posts

System Specs

I wasn't talking about editing. Browsers don't know what to do with ASPX tags so it simply doesn't render them.

IE9 will not open ASPX (blank page and you can view all the source--ASPX tags should never reach the browser). If you want to test yourself, here's code to test (put it in a blank file and save as something.aspx):
Code:
<%@ Page Trace="true"  Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %>
I got it on my server here (this is what it should look like):
http://fordgt90concept.homeip.net/test.aspx

If it doesn't look like that, ASPX is not serving.


To enable ASPX on my server (IIS6 and .NET Framework 4.0 already installed), all I had to do was go into the IIS manager, click on Web Service Extensions, click on .NET 4.0, and click on Allow.
__________________
Golden Rule of Programming: Never assume.

try { SteamDownload(); }
catch (Steamception ex) { RageQuit(); }

Last edited by FordGT90Concept; Jul 18, 2012 at 04:40 AM.
FordGT90Concept is online now  
Crunching for Team TPU
Reply With Quote
Old Jul 18, 2012, 12:38 PM   #9
Mindweaver
Moderato®™
 
Mindweaver's Avatar
 
Join Date: Apr 2009
Location: Statesville, NC
Posts: 3,667 (2.45/day)
Thanks: 4,327
Thanked 2,322 Times in 1,153 Posts

System Specs

Quote:
Originally Posted by FordGT90Concept View Post
I wasn't talking about editing. Browsers don't know what to do with ASPX tags so it simply doesn't render them.

IE9 will not open ASPX (blank page and you can view all the source--ASPX tags should never reach the browser). If you want to test yourself, here's code to test (put it in a blank file and save as something.aspx):
Code:
<%@ Page Trace="true"  Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %>
I got it on my server here (this is what it should look like):
http://fordgt90concept.homeip.net/test.aspx

If it doesn't look like that, ASPX is not serving.


To enable ASPX on my server (IIS6 and .NET Framework 4.0 already installed), all I had to do was go into the IIS manager, click on Web Service Extensions, click on .NET 4.0, and click on Allow.
I don't know why you are being so difficult buddy.. I already told you that you were right about Editing... The OP is talking about viewing... Not editing.. Not serving.. Viewing.. I try to get any one asking a question to ask the right question... I was hoping that you would see what I try to do, and jump on ship.. but when someone is more worried about being right, it clouds there judgment...



Oh and here is your example. Why do you say firefox or ie will not open the file?



__________________
“As long as I feel the warmth from the sun and breathe precious air…. I must ask questions to feed the Mind!”

Battletag: Mindweaver#1523

Last edited by Mindweaver; Jul 18, 2012 at 01:30 PM.
Mindweaver is online now  
Crunching for Team TPU
Reply With Quote
Old Jul 18, 2012, 01:42 PM   #10
FordGT90Concept
"I go fast!1!11!1!"
 
FordGT90Concept's Avatar
 
Join Date: Oct 2008
Location: IA, USA
Posts: 10,580 (6.28/day)
Thanks: 1,755
Thanked 2,598 Times in 1,962 Posts

System Specs

Quote:
Originally Posted by Mindweaver View Post
Oh and here is your example. Why do you say firefox or ie will not open the file?

http://img.techpowerup.org/120718/ASPXFile4Ford3.jpg

http://img.techpowerup.org/120718/ASPXFile4Ford2.jpg
Does that look like this:
http://fordgt90concept.homeip.net/test.aspx

In a word: no. Browsers only process client-sided languages like HTML, CSS, JavaScript, and VBScript. They display server-sided languages as text.
__________________
Golden Rule of Programming: Never assume.

try { SteamDownload(); }
catch (Steamception ex) { RageQuit(); }
FordGT90Concept is online now  
Crunching for Team TPU
Reply With Quote
Old Jul 18, 2012, 01:56 PM   #11
Mindweaver
Moderato®™
 
Mindweaver's Avatar
 
Join Date: Apr 2009
Location: Statesville, NC
Posts: 3,667 (2.45/day)
Thanks: 4,327
Thanked 2,322 Times in 1,153 Posts

System Specs

Quote:
Originally Posted by FordGT90Concept View Post
Does that look like this:
http://fordgt90concept.homeip.net/test.aspx

In a word: no. Browsers only process client-sided languages like HTML, CSS, JavaScript, and VBScript. They display server-sided languages as text.
Wow.. When you don't get it.. You don't get it.. Ford buddy, I have other fish to fry today... I'm sorry you do not understand my concept... One day you too will have the force... but not this day. Beat that drum buddy.. Someone will hear you... I have nothing else to say until the OP response.. If you would like to keep this going... Then I guess.. and I know I'm going to kick myself for saying this.. but PM me.. hehehe
__________________
“As long as I feel the warmth from the sun and breathe precious air…. I must ask questions to feed the Mind!”

Battletag: Mindweaver#1523
Mindweaver is online now  
Crunching for Team TPU
Reply With Quote
Old Jul 18, 2012, 02:03 PM   #12
FordGT90Concept
"I go fast!1!11!1!"
 
FordGT90Concept's Avatar
 
Join Date: Oct 2008
Location: IA, USA
Posts: 10,580 (6.28/day)
Thanks: 1,755
Thanked 2,598 Times in 1,962 Posts

System Specs

...let me make it real simple. There's only two ways to view scripts of any kind:
1. As code.
2. As processed.

Everything you've shown me is #1. What I showed you is #2.

He tried #1 with notepad and IE. He was not satisfied. #2 is likely the solution he is looking for which requires a web host accepting ASP.NET.
__________________
Golden Rule of Programming: Never assume.

try { SteamDownload(); }
catch (Steamception ex) { RageQuit(); }
FordGT90Concept is online now  
Crunching for Team TPU
Reply With Quote
Old Jul 18, 2012, 04:43 PM   #13
Mindweaver
Moderato®™
 
Mindweaver's Avatar
 
Join Date: Apr 2009
Location: Statesville, NC
Posts: 3,667 (2.45/day)
Thanks: 4,327
Thanked 2,322 Times in 1,153 Posts

System Specs

Ok, I have a few minutes now... since we are making it "real simple. Obviously someone that is trying to open a .aspx file would not be hosting or running asp.net. Since the OP still hasn't responded, more than likely he downloaded this .aspx file. So, it's possible the server is not changing the downloaded file to which ever file it needs to be. Example: if the user is expecting to get a "something.pdf" or what not and received a "something.aspx" file then I would change the file extension from .aspx to .pdf and see if it opens. I'm saying it's possible.. Not saying this is what has happened... and again we need more input from the OP.
__________________
“As long as I feel the warmth from the sun and breathe precious air…. I must ask questions to feed the Mind!”

Battletag: Mindweaver#1523
Mindweaver is online now  
Crunching for Team TPU
Reply With Quote
Old Jul 18, 2012, 05:58 PM   #14
Static~Charge
200 Posts
 
Static~Charge's Avatar
 
Join Date: Nov 2008
Location: North Carolina, USA
Posts: 420 (0.25/day)
Thanks: 65
Thanked 76 Times in 59 Posts

System Specs

I had a similar problem with a web site that handed my browser a .aspx file. The web server actually generated a .pdf but didn't rename it before giving it to me. No web browser (Chrome, Firefox, Internet Explorer) had a clue about what to do with a .aspx file (that is server-side code, not client-side). Once I figured out their screw-up, I saved the incoming file as a .pdf, and everything was cool. I reported the problem to their webmaster, and he didn't do jack to fix it.
Static~Charge is offline  
Reply With Quote
Old Jul 18, 2012, 06:37 PM   #15
OnePostWonder
200 Posts
 
Join Date: Dec 2008
Posts: 486 (0.30/day)
Thanks: 61
Thanked 90 Times in 71 Posts

System Specs

@Ford, Mindweaver

I'm really confused. Are you guys able to open the link I posted? It's .aspx and displays the same as any other page.

I can save the page to my desktop and open it with any browser.
OnePostWonder is offline  
Reply With Quote
Old Jul 18, 2012, 07:50 PM   #16
FordGT90Concept
"I go fast!1!11!1!"
 
FordGT90Concept's Avatar
 
Join Date: Oct 2008
Location: IA, USA
Posts: 10,580 (6.28/day)
Thanks: 1,755
Thanked 2,598 Times in 1,962 Posts

System Specs

It opens fine. What you're saving is the HTML ASP.NET generated on the server, not the ASP.NET code itself. If you see ASP.NET code client-side, ASP.NET is not functioning properly on the server.

__________________
Golden Rule of Programming: Never assume.

try { SteamDownload(); }
catch (Steamception ex) { RageQuit(); }
FordGT90Concept is online now  
Crunching for Team TPU
Reply With Quote
Old Jul 18, 2012, 08:10 PM   #17
OnePostWonder
200 Posts
 
Join Date: Dec 2008
Posts: 486 (0.30/day)
Thanks: 61
Thanked 90 Times in 71 Posts

System Specs

Quote:
Originally Posted by FordGT90Concept View Post
It opens fine. What you're saving is the HTML ASP.NET generated on the server, not the ASP.NET code itself. If you see ASP.NET code client-side, ASP.NET is not functioning properly on the server.

http://img.techpowerup.org/120718/colorado.png
But isn't OP simply looking for a way to open a .aspx file?
OnePostWonder is offline  
Reply With Quote
Old Jul 18, 2012, 08:26 PM   #18
FordGT90Concept
"I go fast!1!11!1!"
 
FordGT90Concept's Avatar
 
Join Date: Oct 2008
Location: IA, USA
Posts: 10,580 (6.28/day)
Thanks: 1,755
Thanked 2,598 Times in 1,962 Posts

System Specs

As I said, there's only two ways to: as code/scripting or as a served page.
__________________
Golden Rule of Programming: Never assume.

try { SteamDownload(); }
catch (Steamception ex) { RageQuit(); }
FordGT90Concept is online now  
Crunching for Team TPU
Reply With Quote
Old Jul 18, 2012, 09:24 PM   #19
Mindweaver
Moderato®™
 
Mindweaver's Avatar
 
Join Date: Apr 2009
Location: Statesville, NC
Posts: 3,667 (2.45/day)
Thanks: 4,327
Thanked 2,322 Times in 1,153 Posts

System Specs

With all due respect, and I mean with "All do respect".. I think we are all in agreeance that (hehehehe) we are all right... Especially me.. hehehe I think this is the most post on a subject with out the OP adding anything.... lol If anyone does not know... there is only 2 ways to do something.. The right way and the wrong way... I think we are all doing it right! hehehe I got to get out of here..
__________________
“As long as I feel the warmth from the sun and breathe precious air…. I must ask questions to feed the Mind!”

Battletag: Mindweaver#1523
Mindweaver is online now  
Crunching for Team TPU
Reply With Quote
Old Jul 18, 2012, 11:53 PM   #20
OnePostWonder
200 Posts
 
Join Date: Dec 2008
Posts: 486 (0.30/day)
Thanks: 61
Thanked 90 Times in 71 Posts

System Specs

I think the biggest problem with this thread is that two knowledgeable parties (whether right or wrong) wanted to show how knowledgeable they are instead of just providing OP a means to open the .aspx file.

That said, OP hasn't done much to help himself, otherwise he would've explained the context of his trying to open said .aspx file and either Ford or Mind would've been able to step in and give the technical details on why or how it would or wouldn't be possible to open the file.

DAT RUN-ON SENTENCE.
OnePostWonder is offline  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to open up a Sony Vaio? OrbitzXT General Hardware 16 Sep 21, 2010 05:11 PM
How to open downloads HELP Blackjack49 Games 3 Feb 19, 2010 12:13 AM
How do I open .HEX files? ShadowFold General Software 1 Feb 26, 2008 04:40 AM
How: Open Two Application HiddenStupid General Software 8 Oct 17, 2007 01:21 PM
How Can I Open...? MZ3692 General Software 3 Jul 10, 2006 08:40 PM


All times are GMT. The time now is 01:10 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
no new posts