2 Newbie questions...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm new to ASP programming but have been a C++ developer for years. Anyway as I'm just getting started I have some very basic questions

1) How do I make a "default" web page that is displayed when users navigate to my website without naming the page in the URL

2) What is the syntax to use an Active-X control in ASP.NET? Do I instantiate it with JScript - I have no idea how to do this in ASP

Any help would be appreciated..

--Richard
 
1) How do I make a "default" web page that is displayed when users
navigate to my website without naming the page in the URL?

You can set this is IIS. Just go into the properties on the root of the
domain, and the document tab and choose the file names in the order that you
wish for the default page. It will then work nicely.
2) What is the syntax to use an Active-X control in ASP.NET? Do I
instantiate it with JScript - I have no idea how to do this in ASP?

Check out the references folder in your project. If you right click on it,
and choose add you will (by default) get a list of .net controls and dlls.
If you switch to the COM tab, you get all of your ActiveX stuff. Be warned,
that you don't want to use ActiveX/COM stuff unless you have to, because
they're slow compared to native .net and eat memory. See if there is a .net
version of the control, or there is something built into the .net framework
that will replace what you're needing before you use an ActiveX control.

James Hancock
 
Back
Top