PDA

View Full Version : problem of aspx


rycw
08-31-03, 05:14 AM
hi all
why i can run the aspx file through the Dreamweaver MX(using Preview), but not in directly right clicking the file and choosing open with IE?

Tesco
08-31-03, 07:56 AM
You need to run the page on a server, usually IIS with ASP.NET installed & enabled.

Arctic
08-31-03, 01:28 PM
You can go here to download .NET Framework 1.1

http://www.microsoft.com/downloads/details.aspx?FamilyId=262D25E3-F589-4842-8157-034D1E7CF3A3&displaylang=en

rycw
09-01-03, 09:37 AM
But...I actually install all of them, if not, why can I see the features of aspx through the IE

Shane
09-02-03, 05:02 PM
Originally posted by rycw
But...I actually install all of them, if not, why can I see the features of aspx through the IE

Because you can't directly access an ASP.NET by just using the typical file system. Sure, you can go to c:\inetpub\wwwroot\MyFile.aspx, but it won't process it on the server. You'll end up getting a mix of HTML and unprocessed ASP.NET code. You need to use IE to call the file using the web server.

For example. if IIS is turned on, c:\inetpub\wwwroot\ is really http://localhost/ in web server terms. So, in order to access MyFile.aspx, just go to http://localhost/MyFile.aspx.

IIS handes the request, passes it to the ISAPI filter and then the ASP.NET worker process. Just double-clicking the file won't do this.