Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to create default.aspx

1 view
Skip to first unread message

Mark A Gregory

unread,
Dec 15, 2000, 1:48:44 AM12/15/00
to
Hi,

I try to add a new webform default.aspx and I get lots of errors.

Do I need to build the solution before I look at the web pages?
thank you
Mark

Paul Murphy

unread,
Dec 15, 2000, 12:13:23 PM12/15/00
to
The good people in Redmond overlooked the fact that Default is the standard
IIS homepage, while it is also a keyword in the Visual Basic Language. You
should go to the code behind page and change all refernces to Default to
something other than default. Then you can open the page in the designer and
change the class information in the page directive. this beat me for almost
a week before the obvious showed itself.

Paul

"Mark A Gregory" <mgre...@gt.com.au> wrote in message
news:ecMylImZAHA.1988@tkmsftngp04...

Jean-Claude Manoli

unread,
Dec 15, 2000, 6:32:30 PM12/15/00
to
An easier way is to create a page with a different name, say MyDefault.aspx,
and then rename it to Default.aspx in the IDE (make sure you close the form
first). This will rename the page, but will leave MyDefault in the
codebehind so it avoids keyword conflicts.

"Paul Murphy" <kasa...@hotmail.com> wrote in message
news:et57MqrZAHA.1960@tkmsftngp04...

Peter McMahon

unread,
Dec 21, 2000, 6:12:14 AM12/21/00
to
Or you could just use another name like index.aspx and then set index.aspx
as a default file in IIS. :-)

Peter

"Jean-Claude Manoli" <j...@manoli.org> wrote in message
news:Obu$L9uZAHA.2140@tkmsftngp02...

0 new messages