Dot net Maestro
HOME VB.Net ASP.Net Applications .Net Programmers Contact Us  
FAQ's:
Question list:

Q: Frequently Asked Questions Version Do I have to use a single programming language for all the Web pages in my app?

Ans. 2.0. No. Each page can be written in a different programming
language if you want, even in the same application.

If you are creating source code files and putting them in the \App_Code folder
to be compiled at run time, all the code in must be in the same language.

However, you can create subfolders in the \App_Code folder and use subfolders
to store components written in different programming languages.

Q: Which page code model is better, single-file or code-behind?

Ans. Both models have the same performance.

The choice of using single-file pages versus code-behind pages
depends on your personal preference and convenience.

Q: How can I find out the USERPROFILE environment variable with ASP.NET?

Ans. <%
Response.Write("The USERPROFILE environment variable is : " & Environment.GetEnvironmentVariable("USERPROFILE"))
%>

Q: How can I find out which account ASP.NET is running as ?

Ans. <%
Response.Write("ASP.NET is running as the account : " & Environment.Username)
%>

Q: How can I find out my System Directory with ASP.NET?

Ans. <%
Response.Write("The System Directory is " & System.Environment.SystemDirectory.ToString() )
%>

Q: How can I find out my memory working set with ASP.NET?

Ans. <%
Response.Write("The Working Set is " & System.Environment.WorkingSet.ToString() & " bytes")
%>

Q: How can I find out the OS Version my computer is running with ASP.NET?

Ans. <%
Response.Write("The OS Version is " & System.Environment.OSVersion.ToString() )
%>

Q: How can I find out my computer's machine name with ASP.NET?

Ans. <%
Response.Write("The MachineName is " & System.Environment.MachineName.ToString() )
%>

Q: How can I find out what version of ASP.NET is running on my computer?

Ans. <%
Response.Write("The .NET version is " & System.Environment.Version.ToString() )
%>