473,321 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

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

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...
Nov 19 '05 #1
4 1683
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

"Emre Guldogan" <ask me please...> wrote in message
news:OB**************@TK2MSFTNGP12.phx.gbl...
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...

Nov 19 '05 #2
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
--

"Emre Guldogan" <ask me please...> a écrit dans le message de
news:OB**************@TK2MSFTNGP12.phx.gbl...
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...

Nov 19 '05 #3
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...

"Mark Fitzpatrick" <ma******@fitzme.com> wrote in message
news:ey**************@TK2MSFTNGP09.phx.gbl...
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

"Emre Guldogan" <ask me please...> wrote in message
news:OB**************@TK2MSFTNGP12.phx.gbl...
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...


Nov 19 '05 #4
try here:

http://msdn.microsoft.com/asp.net/ge...e/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
news:OB**************@TK2MSFTNGP12.phx.gbl...
| 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...
|
|
Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Christina IME | last post by:
I have configured a brand new machine with IIS and Windows XP Pro, plus .NET Framework v1.1. Installation went perfect. But when I run a simple ASPX file containing only "<% Response.Write("Hello...
2
by: Axel Dahmen | last post by:
HI, I want to dynamically add controls to a web page from within a common base class. Unfortunately, ASP.NET fails with "System.Web.HttpException: The Controls collection cannot be modified...
29
by: John Rivers | last post by:
Hello, What good reason there is for not allowing methods in ASPX pages I can't imagine, but here is how to get around that limitation: (START) <body MS_POSITIONING="FlowLayout"> <form...
1
by: Joergen Bech | last post by:
Looking for a component or source code for converting between rtf and html. NOT a report generator with rtf/html output, but one I can use to, say, load a bunch of html files and save them as rtf...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.