Embedding Classic ASP in ASP.NET page.

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

Guest

In the past in my company we have used the following to place the company
banner at the top of the page. In an attempt to be expedient and lazy, I
placed it immediate after the body tag in my template aspx jsut as we did in
classic ASP.
Two questions -- why didn't it work and what should I have done?

<body>
<script language="javascript" type="text/javascript"
src="http://exchangeshared.ibastra.net/pages/ExchangeSharedTopNav.asp">
</script>
....stuff...
 
Hi John,
Two questions -- why didn't it work and what should I have done?

It didn't work because you don't program ASP.Net like ASP. They are 2
entirely different approaches to web application development.

What should you have done? Well, you have 2 choices:

1. Learn the ASP.Net programming paradigm.
2. Use ASP (expedient and lazy)

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 
Mr Bankhead !

The lazy way is to Response.Redirect("Lazy.asp",true);

The above instruction is the best xcommand to .xfer the control to someone
else, as long as it is web page :)

John BankRupt
 
Back
Top