| | |
.aspx not working
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
<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
<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
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.
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
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!
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!
•
•
•
•
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
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
![]() |
Similar Threads
- Javascript links not working (Web Browsers)
- Page_Load never called when I browse to my aspx page (ASP.NET)
- Sound driver not working (Windows 95 / 98 / Me)
- get an error while viewing .aspx page (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: hide checkbox when field value is null
- Next Thread: How to auto increment?
| Thread Tools | Search this Thread |
.net 2.0 activexcontrol advice ajax alltypeofvideos application asp asp.net bc30451 bottomasp.net browser button c# c#gridviewcolumn checkbox click commonfunctions compatible confirmationcodegeneration content courier css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dynamically edit expose feedback fill flash form formatdecimal forms formview gridview homeedition hosting iframe iis javascript jquery listbox login microsoft mono mouse mssql multistepregistration news numerical objects opera panelmasterpagebuttoncontrols parent radio ratings registration reportemail rotatepage save schoolproject search security serializesmo.table silverlight smartcard smoobjects software sql-server sqlserver2005 suse textbox tracking typeof unauthorized validation vb.net video videos virtualdirectory vista visual-studio visualstudio web webapplications webarchitecture webdevelopemnt webprogramming webservice xml xsl youareanotmemberofthedebuggerusers





