.aspx not working

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2005
Posts: 139
Reputation: aarya is an unknown quantity at this point 
Solved Threads: 0
aarya's Avatar
aarya aarya is offline Offline
Junior Poster

.aspx not working

 
0
  #1
Oct 20th, 2005
i m very new to asp.net.i m trying my first script.i have microsoft .net framework 1.1.but when i try my script
localhost/myweb/a.aspx i m getting blank screen.please any body help me
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 175
Reputation: Letscode is an unknown quantity at this point 
Solved Threads: 6
Letscode's Avatar
Letscode Letscode is offline Offline
Junior Poster

Re: .aspx not working

 
0
  #2
Oct 20th, 2005
what script did you run?
Are you getting a Blank page or an Error Page?

Can you show us your script?
Save White Tiger
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 139
Reputation: aarya is an unknown quantity at this point 
Solved Threads: 0
aarya's Avatar
aarya aarya is offline Offline
Junior Poster

Re: .aspx not working

 
0
  #3
Oct 21st, 2005
<html>
<body>

<form runat="server">
<asp:Calendar DayNameFormat="Full" runat="server">
<WeekendDayStyle BackColor="#fafad2" ForeColor="#ff0000" />
<DayHeaderStyle ForeColor="#0000ff" />
<TodayDayStyle BackColor="#00ff00" />
</asp:Calendar>
</form>

</body>
</html>

i have used this code from w3schools as i m learning asp.net
i m not gettinhg any error message i m getting white blank screen
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 483
Reputation: campkev is an unknown quantity at this point 
Solved Threads: 19
campkev campkev is offline Offline
Posting Pro in Training

Re: .aspx not working

 
0
  #4
Oct 21st, 2005
I copied and pasted into a text document and saved it as a.aspx on my computer and it works fine. if you are getting a blank screen, try right clicking and hitting view source to see if you can get any information that way.
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 793
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 26
Team Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: .aspx not working

 
0
  #5
Oct 22nd, 2005
Just a quick question aarya where did you save this file? In a virtual directory in your IIS wwwroot folder? AS you can't save this to just anywhere and have it work like a standard HTML file. You need to place it in a virtual directory.

If you don't know how to setup a virtual "web" directory let me know.

Originally Posted by aarya
<html>
<body>

<form runat="server">
<asp:Calendar DayNameFormat="Full" runat="server">
<WeekendDayStyle BackColor="#fafad2" ForeColor="#ff0000" />
<DayHeaderStyle ForeColor="#0000ff" />
<TodayDayStyle BackColor="#00ff00" />
</asp:Calendar>
</form>

</body>
</html>

i have used this code from w3schools as i m learning asp.net
i m not gettinhg any error message i m getting white blank screen
Assistant Manager, Pharmacy Informatics
Wordpress Learning Blog
Updated : ASP.Net Login Code
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 139
Reputation: aarya is an unknown quantity at this point 
Solved Threads: 0
aarya's Avatar
aarya aarya is offline Offline
Junior Poster

Re: .aspx not working

 
0
  #6
Oct 22nd, 2005
i ahve little knowledge of asp so i save file in wwroot folder
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 793
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 26
Team Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: .aspx not working

 
0
  #7
Oct 23rd, 2005
To make this work you need to do the follow.

1. Create a Folder under your IIS directory (the default directory format that IIS installs to is C:\Inetpub\wwwroot\)
2. Open Administrative tools (Start Menu --> Control Panel --> Administrative Tools)
3. Expand the Website branch to open up the IIS folder structure. Keep drilling down till you see your newly created folder.
4. Right Click your folder, and select Properties
5. In the properties window, and on the Directory Tab there is a section called application settings and a button called create. Click the CREATE button and then click OK.
6. Create your aspx file with this calendar control in the code (as you have already done), save it to the new folder you just created and then open the file by typing in the browers address bar (or even the start menu --> run command) http://localhost/your directory name you just created/then the name of the aspx file name & extension Voila!

Hope this helps!
Assistant Manager, Pharmacy Informatics
Wordpress Learning Blog
Updated : ASP.Net Login Code
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 139
Reputation: aarya is an unknown quantity at this point 
Solved Threads: 0
aarya's Avatar
aarya aarya is offline Offline
Junior Poster

Re: .aspx not working

 
0
  #8
Oct 23rd, 2005
i used to save my asp file as localhost/myweb/a.asp
it is working.i ahve downloaded the .netframework 1.1 to suport aspx extension and stored in wwroot/myweb directory.
the storing the file is same as asp right? is it different.
if it is the same then my a.asp is working why not a.aspx
Reply With Quote Quick reply to this message  
Join Date: Nov 2005
Posts: 47
Reputation: kedar_challa is an unknown quantity at this point 
Solved Threads: 1
kedar_challa's Avatar
kedar_challa kedar_challa is offline Offline
Light Poster

Re: .aspx not working

 
0
  #9
Nov 9th, 2005
Originally Posted by aarya
i used to save my asp file as localhost/myweb/a.asp
it is working.i ahve downloaded the .netframework 1.1 to suport aspx extension and stored in wwroot/myweb directory.
the storing the file is same as asp right? is it different.
if it is the same then my a.asp is working why not a.aspx
Hi Aarya,

Here u have to consider the difference between ASP and ASP.Net

ASP is just a scritping language where as ASP.Net is a language.

ASP pages are ineterpreted at rumtime. But, ASP.Net pages are compiled into MSIL at the compile time. When the request hits that page then MS Jitter generates the machine specific code.

Here, in your code you are using the ASP.Net server control calander.So, the code must be compiled first before u run it.

Thanks,
Kedar
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 483
Reputation: campkev is an unknown quantity at this point 
Solved Threads: 19
campkev campkev is offline Offline
Posting Pro in Training

Re: .aspx not working

 
0
  #10
Nov 9th, 2005
after you downloaded and installed the 1.1 framework, did you register asp.net in iis?

instructions are here
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC