ASP.NET C#

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

Guest

hi,

why is the ASP.NET C# different to the ordinary C#? i cannot create C#
websites in asp.net because of this
 
Alvo,

How is it different? Last I checked, it was the same C# that I use for
all my other apps.

Can you give an example?
 
Alvo von Cossel I said:
hi,

why is the ASP.NET C# different to the ordinary C#? i cannot create C#
websites in asp.net because of this

Could you perhaps provide an example or 2 of how you think they differ?
What exactly are you having a problem implementing?

Bill Butler
 
Guess you are talking about webpages like .aspx (like default.aspx) or .asmx
files. These are no C# input files but pages parsed and possibly compiled by
a .NET compiler depending on the language directive in the page. These pages
can refer to codebehind files containing C# or VB.NET code, but they can
also contain embeded (script) code.

Willy.
 
Why do you think it's different? Are you talking about the HTML code in the
ASPX files? That's not C#, well, not all of it...

I prefer to write ASP+ web sites in much the same way as I write Windows
Forms applications. Often my ASPX page only has a single label control on
and all the HTML is generated by the application on the fly. This could be
seen as laborious but it's the only way to go if there are no web controls
that do the things you need. I find emitting javascript and creating dynamic
content almost intuitively easy becvause I hate HTML but lurrrve C#.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
hi,

well, if you have visual web developer, there is no messagebox in the
IntelliSense drop down menu. there is mbox and the program tells me that it
is the equivelant but it is still not the same. i cant really cope with
language change

--
Alvo von Cossel I of Germany


Nicholas Paldino said:
Alvo,

How is it different? Last I checked, it was the same C# that I use for
all my other apps.

Can you give an example?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Alvo von Cossel I said:
hi,

why is the ASP.NET C# different to the ordinary C#? i cannot create C#
websites in asp.net because of this
 
hi,

what is ASP+? and i'm not talking about the html. i mean the actual c# code
in the asp.net file (.aspx).

how can you not like html. it is so simple and so useful at times, even just
basic html. it also has such a cool format (tags). html doesnt do much but it
is still good enough. html is my fourth language and m first programming
language, if you wanted to know
 
Alvo,

The MessageBox class is a member of the System.Windows.Forms namespace,
which you should not be using in an ASP.NET application. Rather, you have
to use javascript on the client side to get a messagebox to pop up in the
browser.

Regardless, this is a function of the base class library, as well as how
ASP.NET applications work in relation to console or windows applications,
not a matter of the language. The C# you use in ASP.NET is the same as
anywhere else. However, the model of ASP.NET applications compared to
console or windows applications is completely different.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Alvo von Cossel I said:
hi,

well, if you have visual web developer, there is no messagebox in the
IntelliSense drop down menu. there is mbox and the program tells me that
it
is the equivelant but it is still not the same. i cant really cope with
language change

--
Alvo von Cossel I of Germany


Nicholas Paldino said:
Alvo,

How is it different? Last I checked, it was the same C# that I use
for
all my other apps.

Can you give an example?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Alvo von Cossel I said:
hi,

why is the ASP.NET C# different to the ordinary C#? i cannot create C#
websites in asp.net because of this
 
hi,

thanks, you answered my question

--
Alvo von Cossel I of Germany


Nicholas Paldino said:
Alvo,

The MessageBox class is a member of the System.Windows.Forms namespace,
which you should not be using in an ASP.NET application. Rather, you have
to use javascript on the client side to get a messagebox to pop up in the
browser.

Regardless, this is a function of the base class library, as well as how
ASP.NET applications work in relation to console or windows applications,
not a matter of the language. The C# you use in ASP.NET is the same as
anywhere else. However, the model of ASP.NET applications compared to
console or windows applications is completely different.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Alvo von Cossel I said:
hi,

well, if you have visual web developer, there is no messagebox in the
IntelliSense drop down menu. there is mbox and the program tells me that
it
is the equivelant but it is still not the same. i cant really cope with
language change

--
Alvo von Cossel I of Germany


Nicholas Paldino said:
Alvo,

How is it different? Last I checked, it was the same C# that I use
for
all my other apps.

Can you give an example?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

message hi,

why is the ASP.NET C# different to the ordinary C#? i cannot create C#
websites in asp.net because of this
 
Back
Top