To be blunt. You're wrong.
You've been trained to think you have to do everything and I think you
also believe that all web programming essentially looks the same. That
was true 5 years ago, but not today.
ASP.NET does SO much of this for you, especially now with the AJAX
libraries from Microsoft, that you really are better off just forgetting
that ASP.NET has anything to do with HTML or client/server programming
other than to keep in mind that there is a disconnect between the client
and the server.
It's great that you know that stuff, and it will certainly help you when
you debug and it may actually help you create a few new controls. But,
programming ASP.NET is a lot more like programming a windows application
than it is programming a web application. Unless you've done JSF
programming in JSP and even then, it's not the same.
You're gonna have to trust us on this one. I've programmed ASP since
1.0, JSP since 1.0, hacked as PHP a bit and now ASP.NET in CSharp and
VB.NET. I'm not bragging I just want you to understand that we know
what the heck we're talking about. I even taught ASP, JSP and ASP.NET
for 3 and a half years. I can tell you from that experience that the
biggest hurdle you are going to have to overcome is the whole idea of
event based web programming. The closest thing I know of in the JSP
world is JSF and I'm not even really sure that even that comes close
enough to what you are going to experience in ASP.NET.
Once you understand how things are done using ASP.NET, then and only
then should you pull in the other parts that you've referenced below.
That being said, assuming you've done Struts, I think you are going to
have a lot easier time understanding ASP.NET MVC/REST pattern once it
comes out than most current ASP.NET programmers because of your JSP
experience.
You might want to think about taking a class some place to get you up to
speed. There are several companies that offer one week classes in
ASP.NET that I think you'd benefit from. Of course, I'm a bit biased
now, since I use to teach at one of these places.
Dave Bush
http://blog.dmbcllc.com
-----Original Message-----
From: josh [mailto:
[email protected]]
Posted At: Friday, November 23, 2007 1:28 PM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: jsp to asp
Subject: Re: jsp to asp
Exactly!
Actually, it was a lot easier to move from JSP to ASP. But, moving from
JSP to ASP.NET just isn't going to happen.
Aidy,
Great analogy.
Programmers trying to use today's technology like they used last week's
technology is what gets programmers in big trouble. It is the main
reason why I recommend that VB6 programmers learn C# first and then go
back to VB.NET if they must.
To further push the analogy trying to code in ASP.NET like you coded in
JSP is like a 40 year old saying, "I was a teenager once." And trying
to use teen jargon. All he really ends up doing is looking like an
idiot.
Syntactically, there are some similarities. But, you aren't going to
see anything close to MVC/Struts/Model II in ASP.NET (yet... MVC/REST is
coming) so you need to learn multi-tiered architecture first and event
driven programming if you haven't already.
-----Original Message-----
From: Aidy [mailto:
[email protected]]
Posted At: Friday, November 23, 2007 5:50 AM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: jsp to asp
Subject: Re: jsp to asp
You can use some in-line scripting but it isn't recommended.
Basically you can't come to asp.net and hope to use it like you would a
different language. It's like going to France and asking how you can
speak
French but in an English way. Just forget what you know about jsp and
start
from fresh with asp.net.
s.com..
.
Hi, I'm a jsp programmer and I have changed work. My boss does not
matter about my previous
Java experience and so he told me to learn web programming using c#.
I have also many Javascript/DOM experience and I wish to program in my
"already learned mode":
In jsp I program to write Java code in .jsp page directly and I use
HTML and Javascript for client logic: e.g.
<%@ page contentType="text/html; charset=utf-8" language="java"
import="java.sql.*" errorPage="" %>
<%
Connection conn = null;
String info = "";
so is there an equal c# way or what are other ways to accomplish
that ?
Well, I understand that I should to use new methodologies. In fact
today Java programmers use MVC pattern
and tag libs. But however there is also a new trend. Many programmers
use many Javascript API like YUI, Prototype
ecc. and so they don't use the server side tag to render html. They
use server technologies to business logic and client technologies
(Javascript/DOM Ajax Css ecc) to presentation and behavior layer. So I
don't think that they are like old VB6 programmers ... they are only
programmers that are choosing other way to make web programming! Am I
wrong? Am I misunderstanding something? Really I don't think to be
like an idiot but only like a man that is searching a way to don't
loose his background that I assure you it is not so old...
Regards