W
William Parker
OK, these questions are going to seem so basic that I am actually embarrased
to ask them but I really need the guideance. I've done some fairly complex
coding for years with class ASP and I'm very comfortable with it. However I
am new to ASP.NET and there are a few basic things I just don't get...
#1: Using VS.NET (original, 2002 release) how am I supposed to create a
basic, static ASP.NET page that just contains HTML and maybe some JavaScript
and no form? My choices of page types to create when I choose Project->Add
New Item do not show just a regular aspx page to create. I see a WebForm
page type, but I'm NOT looking to create a form with a code behind page,
just a plain old aspx page. There is a HTML page type. Basically I've been
using that and just renaming the page to .html to .aspx.
For example, let's say I just wanted to create a basic .aspx web page that
contained only static data like this:
<html>my content goes here</html>
I don't need a code behind and all that. I can use notepad to create it but
I'm trying to do everything from within VS.NET. Is my current approach for
this correct by just creating it as a HTML page type and renaming it? Or
should I be approaching this differently? For example, what are you
supposed to do for information only web pages where the content is static -
no db access needed etc?
#2: For content that needs to be included in every web page, like a footer -
how are you supposed to go about that? Is there a "include file" directive
like in classic ASP?
#3: Let's say I have helper "global" functions that I need to access from
many different aspx pages. In classic ASP I would just include a .inc file
from each page I needed to call the global functions from and define the
functions in the .inc file. What is the right technique for this with
ASP.NET?
I appreciate the whatever tips and guideance you guys have for me. Thank
you!!!
Bill
to ask them but I really need the guideance. I've done some fairly complex
coding for years with class ASP and I'm very comfortable with it. However I
am new to ASP.NET and there are a few basic things I just don't get...
#1: Using VS.NET (original, 2002 release) how am I supposed to create a
basic, static ASP.NET page that just contains HTML and maybe some JavaScript
and no form? My choices of page types to create when I choose Project->Add
New Item do not show just a regular aspx page to create. I see a WebForm
page type, but I'm NOT looking to create a form with a code behind page,
just a plain old aspx page. There is a HTML page type. Basically I've been
using that and just renaming the page to .html to .aspx.
For example, let's say I just wanted to create a basic .aspx web page that
contained only static data like this:
<html>my content goes here</html>
I don't need a code behind and all that. I can use notepad to create it but
I'm trying to do everything from within VS.NET. Is my current approach for
this correct by just creating it as a HTML page type and renaming it? Or
should I be approaching this differently? For example, what are you
supposed to do for information only web pages where the content is static -
no db access needed etc?
#2: For content that needs to be included in every web page, like a footer -
how are you supposed to go about that? Is there a "include file" directive
like in classic ASP?
#3: Let's say I have helper "global" functions that I need to access from
many different aspx pages. In classic ASP I would just include a .inc file
from each page I needed to call the global functions from and define the
functions in the .inc file. What is the right technique for this with
ASP.NET?
I appreciate the whatever tips and guideance you guys have for me. Thank
you!!!
Bill