What template to use?

  • Thread starter Thread starter vbMark
  • Start date Start date
V

vbMark

Hi there,

I need to create an asp page using ASP.NET that does not have an interface
but only accepts URL Query Strings.

When starting a new project what template should I use?

Thanks!
 
Just do it the regular way
Then manually remove all HTML except <%Page%> directive.

Also you might want to move all code into ASPX page to avoid having to move DLL and ASPX.

George
My Site - Body Jewelry
Hi there,

I need to create an asp page using ASP.NET that does not have an interface
but only accepts URL Query Strings.

When starting a new project what template should I use?

Thanks!
 
Okay, that works fine. But I don't understand what you mean by this:

"Also you might want to move all code into ASPX page to avoid having to
move DLL and ASPX."

Thanks.
 
There is 2 ways to code ASPX page.
1. When code C# for example is embedded into ASPX page. That way when you move your application you need only move the ASPX file. And there is no recompiling ( visible). ASP.NET will recompile page for you.

2. Using codebehind. This is the only way Visual Studio supports. But then it creates 2 files ASPX page and C# file which has to be compiled into DLL. Then everytime you change the C# file you need to recompile it. And then move new DLL.


I found it more convenient to keep all code in the ASPX page for small projects.



George
My Site - Body Jewelry
Okay, that works fine. But I don't understand what you mean by this:

"Also you might want to move all code into ASPX page to avoid having to
move DLL and ASPX."

Thanks.
 

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

Back
Top