'<#% ... #>' code segments in aspx (C#.net)

E

Emre Guldogan

Is there any resource that lists the functions of asp which are available in
C#.NET or lists the equivalence of these functions in C#.NET. thanks...
 
M

Mark Fitzpatrick

It's not exactly going to be that simple unfortunately. Basically what you
can do is compare the functions available in VBScript, since that is what
most people think of when it comes to ASP. The real difficulty though is
some of the functions aren't in C#, but instead are part of the .Net
Framework itself. For example, if you want to see if a database field is
null, you don't call an IsNull function as in VBScript, but instead compare
it to System.DbNull.Value which is a constant in the framework. Basically
though, there is almost always a way to do exactly what you want in C# that
you wanted to do in ASP, it's just a matter of figuring out where in the
framework some of the comperable functions are.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
P

Patrice

Bascially the Server, Request, Response etc classes are available either :
- as part of the Page class
- as System.web.httpContext.Current that is the current HTTP request

That said it's unlikely to be that usefull as ASP.NET provides much more...
I would ratehrt suggest ot start "fresh" on ASP.NET...

Patrice
 
E

Emre Guldogan

Then, how can we find the equivalences at least for now?. Will we just try
in order to determine the compatibility of the asp codes?; is't there any
resourse which designates the integrity level of asp codes in C#?.. I need
them because, the asp script inside the aspx seriously helps the performance
of the work. thanks...
 
B

bruce barker

try here:

http://msdn.microsoft.com/asp.net/gettingstarted/aspmigrate/default.aspx

to list the .net equivalents, we need to know what asp language and features
you used. asp pages written in javascript port with almost no changes. those
written in vbscript need to be converted to a new language.

the only objects supplied by asp were Application, Server and Request. they
are actually pretty simular. Everything else in asp was add on com objects.
you will need to look in the framework, for matching functionality.

-- bruce (sqlwork.com)



"Emre Guldogan" <ask me please...> wrote in message
| Is there any resource that lists the functions of asp which are available
in
| C#.NET or lists the equivalence of these functions in C#.NET. 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

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,044
Latest member
RonaldNen

Latest Threads

Top