Classic ASP mixed with ASP.NET 2?

D

Dennis

my company has a large web site written in old asp, vbscript, and a little
javascript.

I am trying to convert it over to ASP.NET C# as we add new features instead
of having to write the new items in both the old crap and new format.

I have one of the old pages calling an aspx page which displays correctly
BUT when I put the events (for example a Button Click event) in the code
behind it fails. I tried to move the C# code into the top of the aspx page
and it works just fine.

Any clue what I am missing or have not set in the IIS config maybe? I even
went into IIS and changed the settngs on the directory I have placed the
aspx, .cs, & .dll files so that it is "script & executable" now but that
didn't help.

I will also need to be able to pass session state and parameters between the
asp & aspx pages if that is possible, so does anyone have any good examples
or point me to any articles on the subject?

sorry if these are obvious questions, I am mostly a WinForms developer so I
don't fully have down all the quirks of Web Site development / setup.

thanks in advance
Dennis
 
R

Ralph

my company has a large web site written in old asp, vbscript, and a little
javascript.

I am trying to convert it over to ASP.NET C# as we add new features instead
of having to write the new items in both the old crap and new format.

I have one of the old pages calling an aspx page which displays correctly
BUT when I put the events (for example a Button Click event) in the code
behind it fails. I tried to move the C# code into the top of the aspx page
and it works just fine.

Any clue what I am missing or have not set in the IIS config maybe? I even
went into IIS and changed the settngs on the directory I have placed the
aspx, .cs, & .dll files so that it is "script & executable" now but that
didn't help.

I will also need to be able to pass session state and parameters between the
asp & aspx pages if that is possible, so does anyone have any good examples
or point me to any articles on the subject?

sorry if these are obvious questions, I am mostly a WinForms developer so I
don't fully have down all the quirks of Web Site development / setup.

thanks in advance

Unfortunately the Session States between the Classic asp and the
asp.net are not compatible.
Cookies, and query strings are one of a few ways to get information
from one to the other.
You could use a service written in asp.net because the classic can
indeed use it.
I would have to see the entire code to say why the events aren't
firing.
 

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

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,744
Latest member
CortneyMcK

Latest Threads

Top