A C# + ASP.Net question

G

Guest

Hi

I've done some VB + ASP in the past and done some C#.net

Now, I've a request for a Web application and I thought its a good time to
look at C# + ASP.net (Framework 2)

but like always; I've some questions.

Can i take an old VB + ASP file (.asp) and just remove all vb scripts and
replace it with C# (of course adding the line in top declaring C#) and rename
the file to (.aspx) ? or must I also do something with the HTML part so it
fits in .Net

another question:

The old VB+ASP uses .inc files for generic stuff that will be included in
the .asp files, Can I use the same idea in aspx (using .inc files), or has
this been changed in ASP.net.?

Kjell
 
J

John Timney \(MVP\)

Kjell said:
Hi

I've done some VB + ASP in the past and done some C#.net

Now, I've a request for a Web application and I thought its a good time to
look at C# + ASP.net (Framework 2)

but like always; I've some questions.

Can i take an old VB + ASP file (.asp) and just remove all vb scripts and
replace it with C# (of course adding the line in top declaring C#) and
rename
the file to (.aspx) ? or must I also do something with the HTML part so it
fits in .Net

No

another question:

The old VB+ASP uses .inc files for generic stuff that will be included in
the .asp files, Can I use the same idea in aspx (using .inc files), or has
this been changed in ASP.net.?

It has been changed, you can still use includes for somethings but you
should be using ascx files (user controls)

Read up on beginner stuff at the quickstart
http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/userctrl/default.aspx

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top