jsp到asp [英] jsp to asp

查看:64
本文介绍了jsp到asp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名jsp程序员,我已经改变了工作。我的老板没有关于我以前的经验,所以他告诉我用c#学习网络编程。


我也有很多Javascript / DOM经验,我希望用我的

编程已学习模式:


在jsp我编写Java代码的程序在.jsp页面直接使用

HTML和Javascript用于客户端逻辑:例如


<%@ page contentType =" text / html;字符集= UTF-8英寸language =" java"

import =" java.sql。*"的errorPage = QUOT;" %>

<%

连接conn = null;


DatabaseMetaData dbmd;


字符串信息="";


尝试

{

....

%>

< html>

.......

< / html>


那么是否有相同的c#方式或者其他方式可以实现

那个?


谢谢。

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;

DatabaseMetaData dbmd;

String info = "";

try
{
....
%>
<html>
.......
</html>

so is there an equal c# way or what are other ways to accomplish
that ?

Thanks.

推荐答案

您可以使用一些内联脚本但不建议使用。


基本上你可以'来到asp.net并希望像使用

不同的语言一样使用它。这就像去法国询问你怎么说法语,但用英语说法。只要忘记你对jsp的了解,然后从asp.net开始使用




" josh" < xd ******** @ gmail.comwrote in message

news:d8 ********************** ************ @ p69g2000 hsa.googlegroups.com ...
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.

"josh" <xd********@gmail.comwrote in message
news:d8**********************************@p69g2000 hsa.googlegroups.com...

我是jsp程序员,我已经改变了工作。我的老板没有关于我以前的经验,所以他告诉我用c#学习网络编程。


我也有很多Javascript / DOM经验,我希望用我的

编程已学习模式:


在jsp我编写Java代码的程序在.jsp页面直接使用

HTML和Javascript用于客户端逻辑:例如


<%@ page contentType =" text / html;字符集= UTF-8英寸language =" java"

import =" java.sql。*"的errorPage = QUOT;" %>

<%

连接conn = null;


DatabaseMetaData dbmd;


字符串信息="";


尝试

{

....

%>

< html>

......

< / html>


那么是否有相同的c#方式或者其他方法可以实现

那个?


谢谢。
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;

DatabaseMetaData dbmd;

String info = "";

try
{
....
%>
<html>
......
</html>

so is there an equal c# way or what are other ways to accomplish
that ?

Thanks.



11月23日,11:49,Aidy < a ... @ xxnoemailxx.comwrote:
On 23 Nov, 11:49, "Aidy" <a...@xxnoemailxx.comwrote:

您可以使用一些内联脚本,但不建议这样做。

基本上你不能来asp.net并且希望像使用不同的语言一样使用它。这就像去法国询问你怎么说法语,但用英语说法。只要忘记你对jsp的了解,然后从asp.net开始使用




" josh" < xdevel1 ... @ gmail.com写信息


新闻:d8 *********************** *********** @ p69g2000 hsa.googlegroups.com ...
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.

"josh" <xdevel1...@gmail.comwrote in message

news:d8**********************************@p69g2000 hsa.googlegroups.com...

我是jsp程序员而且我已经改变了工作。我的老板不会因为我之前的Java
Java体验而感到高兴,所以他告诉我用c#学习网络编程。
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#.


我还有很多Javascript / DOM经验,我希望在我的

已学习模式中编程:
I have also many Javascript/DOM experience and I wish to program in my
"already learned mode":


在jsp中我编程直接在.jsp页面编写Java代码,我使用

HTML和Javascript用于客户端逻辑:例如
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;字符集= UTF-8英寸language =" java"

import =" java.sql。*"的errorPage = QUOT;" %>

<%

连接conn = null;
<%@ page contentType="text/html; charset=utf-8" language="java"
import="java.sql.*" errorPage="" %>
<%
Connection conn = null;


DatabaseMetaData dbmd;
DatabaseMetaData dbmd;


String info ="" ;;
String info = "";


试试

{

....

%>

< html>

......

< / html>
try
{
....
%>
<html>
......
</html>


那么是否有相同的c#方式或者其他方法可以实现

那个?
so is there an equal c# way or what are other ways to accomplish
that ?


谢谢。
Thanks.



哦,我更好地解释了我。我不想使用c#作为Java但是我想

使用带内联代码的c#(不在HTML标签中)而且我不想要

使用visual studio为html添加自定义标签等等...

因为我非常清楚HTML / Javascript / CSS我希望

使用c#对于asp只用于后端代码而不用于演示

图层....

Oh I explain me better. I don''t want to use c# as Java but I''d like to
use c# with inline code (not in the HTML tag) and I dont'' want
to use visual studio that add custom tag also for html and so on...
Because I know very well HTML/Javascript/CSS I wish
to use c# for asp only for backend code and not for presentation
layer....


尽管可行,但它会花费你更长的时间创建代码而不是使用

控件和推荐的方法。你将从

中获益,学习asp.net对象模型,然后它就可以了。这不会减损您在CSS,HTML等方面的技能,因为您仍然需要这些技能。


冒险尝试从头开始学习。你应该没有问题

代码为c#会显得非常熟悉。


问候


John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog

josh < xd ******** @ gmail.comwrote in message

news:b1 ********************** ************ @ w28g2000 hsf.googlegroups.com ...
Although do-able, it will take you a lot longer to create code than using
the controls and the recommended approaches. You will benefit hugely from
learnign the asp.net object model and hiw it works. That won''t detract from
your skills in CSS, HTML etc. as you still need these.

Take the plunge and learn from the ground up. You should have no problem
with the code as c# will appear very familiar.

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"josh" <xd********@gmail.comwrote in message
news:b1**********************************@w28g2000 hsf.googlegroups.com...

11月23日,11:49,Aidy < a ... @ xxnoemailxx.comwrote:
On 23 Nov, 11:49, "Aidy" <a...@xxnoemailxx.comwrote:

>您可以使用一些内联脚本,但不建议这样做。

基本上你不能来asp.net并希望像使用不同的语言一样使用它。这就像去法国并询问你如何以英语方式说法语。只要忘记你对jsp的了解和
从asp.net的新鲜开始吧。

" josh" < xdevel1 ... @ gmail.com写信息

新闻:d8 *************************** ******* @ p69g200 0hsa.googlegroups.com ...
>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.

"josh" <xdevel1...@gmail.comwrote in message

news:d8**********************************@p69g200 0hsa.googlegroups.com...

您好,我是jsp程序员,我已经改变了工作。我的老板不会因为我之前的Java
Java体验而感到高兴,所以他告诉我用c#学习网络编程。
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#.


我还有很多Javascript / DOM经验,我希望在我的

已学习模式中编程:
I have also many Javascript/DOM experience and I wish to program in my
"already learned mode":


在jsp中我编程直接在.jsp页面编写Java代码,我使用

HTML和Javascript用于客户端逻辑:例如
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;字符集= UTF-8英寸language =" java"

import =" java.sql。*"的errorPage = QUOT;" %>

<%

连接conn = null;
<%@ page contentType="text/html; charset=utf-8" language="java"
import="java.sql.*" errorPage="" %>
<%
Connection conn = null;


DatabaseMetaData dbmd;
DatabaseMetaData dbmd;


String info ="" ;;
String info = "";


试试

{

....

%>

< html>

......

< / html>
try
{
....
%>
<html>
......
</html>


那么是否有相同的c#方式或者其他方法可以实现

那个?
so is there an equal c# way or what are other ways to accomplish
that ?


谢谢。
Thanks.



哦,我更好地解释了我。我不想使用c#作为Java但是我想

使用带内联代码的c#(不在HTML标签中)而且我不想要

使用visual studio为html添加自定义标签等等...

因为我非常清楚HTML / Javascript / CSS我希望

使用c# for asp仅用于后端代码而不用于演示

layer ....


Oh I explain me better. I don''t want to use c# as Java but I''d like to
use c# with inline code (not in the HTML tag) and I dont'' want
to use visual studio that add custom tag also for html and so on...
Because I know very well HTML/Javascript/CSS I wish
to use c# for asp only for backend code and not for presentation
layer....



这篇关于jsp到asp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆