ASP.NET 2.0比ASP更容易? Gimmie休息一下! [英] ASP.NET 2.0 Easier than ASP? Gimmie a Break!

查看:70
本文介绍了ASP.NET 2.0比ASP更容易? Gimmie休息一下!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道现在微软的所有炒作都是比以前的版本更容易,更快,更少的代码。我很困惑这个

因为我可以在几个小时内找出一个经典的ASP网页来查询一个

数据库,显示一个网格/表格,而不是非常担心。在ASP.NET 2.0中执行

相同的任务看起来几乎是微不足道的,但它真的是真实世界吗?


我有一个经典的ASP应用程序,我写的几年前,我可能需要花费6到8个小时来编写,调试和部署。我从来没有真正触及它。

它只有一个输入表单,它将回发给自己并显示一个

网格/表格,其中包含查询结果。


因为我试图加入ASP.NET 2.0的潮流,我认为简单的

ASP应用程序将是一个完美的启动器 ;申请我的ASP.NET 2.0

之旅。当然,我将一个表拖放到设计服务上,将一个

GridView连接到SQLDataSource和垃圾,但真正的挑战是实现

这些拖动和 - 在现实世界的场景中丢弃对象。


我已经花了大约。将这个ASP网页(单个

页面,请注意)转换为ASP.NET 2.0 40多个小时。我正在尝试进行n层设计并且使用DAL,BAL以及ASP.NET 2.0前端来获得
。我甚至没有得到设计一个漂亮的主人美元。网站主题的页面。


这些概念看起来很简单......有些结果看起来非常令人印象深刻。


我的目前的斗争是处理从SQL返回的可空数据类型
服务器的日期时间字段。你们中的一些人可能已经阅读了我以前的帖子

我在努力获得一个NULL DateTime字段来添加到我的通用

集合中。我一直在收到InvalidCastExceptions。我约90%用我的代码完成了

,但是这个问题让我疯狂......我已经花了10多个小时b / b
一个问题,但仍然没有解决。


我看过一些在线示例为ASP.NET 2.0编写n层设计但是

大多数只是处理字符串而不是混合数据类型。我已经观看了大约10个不同的网络广播最新的技巧和做事方式......甚至Fritz

洋葱的Essential ASP.NET 2.0网络广播系列。 ...我已经购买了所有最新的Microsoft .NET 2005书籍。在那里关于BAL / DAL最好没有多少

做法。


从现在开始六个月,这似乎是一个微不足道的挑战,但对于一个

新手学习ASP.NET 2.0,我很难通过采用新技术来证明节省的成本

。是的,我的代码更面向对象......

我的代码和可视内容是分开的...我已经从我的数据中完全抽象了我的

业务数据访问。很酷。但这些优势的成本是多少?我仍然没有工作的应用程序和微软

taughts ASP.NET比ASP更优越,更容易。


我遇到了其他问题在这些新闻组中,我已经解决了这些新闻组。我不是大师级程序员,请注意,

并且只是为了好玩而做一个爱好...虽然我写了一些网页

应用程序来解决问题在工作......这不是我的主要功能。


我很想知道其他人对新编程环境的看法

以及他们如何''正在适应新技术和编程

的要求。


ASP.NET 2.0是否真的让你的生活比传统的ASP更容易,或者使用一些

其他服务器端脚本技术,如PHP或Cold Fusion?

I know all the hype right now from Microsoft is how much easier, faster, and
less code ASP.NET 2.0 provides over previous versions. I''m puzzled by this
as I could turn out an classic ASP webpage in a few hours to query a
database, display a grid/table, and not have much to worry about. Doing the
same tasks in ASP.NET 2.0 seems almost trivial, but is it really real-world?

I have a classic ASP app that I wrote a few years back that took me probably
6-8 hours to write, debug, and deploy. I haven''t really touched it since.
It has simply an input form that will post back to itself and display a
grid/table with the results from a query.

Since I''m trying to get on the ASP.NET 2.0 bandwagon, I thought that simple
ASP application would be a perfect "starter" application for my ASP.NET 2.0
journey. Sure, I drag and drop a table onto the design service, wire up a
GridView to a SQLDataSource and junk, but the real challenge is implementing
these drag-and-drop objects in a real world scenario.

I''ve been spent approx. 40+ hours on converting this ASP webpage (a single
page, mind you) to ASP.NET 2.0. I''m trying to do an n-tier design and have
a DAL, BAL, along with the ASP.NET 2.0 front-end. I haven''t even gotten to
designing a nice "Master" page for site''s theme yet.

The concepts seem simple... and some of the results seem pretty impressive.

My current struggle is dealing with nullable datatypes coming back from SQL
Server for a datetime field. Some of you may have read my previous thread
where I am struggling in getting a NULL DateTime field to add to my generic
collection. I keep getting InvalidCastExceptions. I''m about 90% done with
my code, but this one issue is driving me nuts... I''ve literally spent 10+
hours on this one issue and still do not have it resolved.

I''ve seen a few online examples writing an n-tier design for ASP.NET 2.0 but
most just deal with strings and not mixed data types. I''ve watched about 10
different webcasts the latest tricks and ways of doing things... even Fritz
Onion''s Essential ASP.NET 2.0 webcast series.... I''ve purchased all the
latest Microsoft .NET 2005 books. Not much in there about BAL/DAL best
practices.

Six months from now, this may seem like a trivial challenge, but for a
newbie learning ASP.NET 2.0, I''m having a hard time justifying the savings
with going to the new technology. Yeah, my code is more object oriented...
my code and visual content is separate... and I''ve totally abstracted my
business data from my data access. Very cool. But what is the cost of all
these "advantages"? I still do not have a working application and Microsoft
taughts ASP.NET is far superior and easier than ASP.

I"ve run into other issues along the way and thanks to the kind folks in
these newsgroups, I''ve resolved them. I''m not master programmer, mind you,
and simply do this for fun and as a hobby... although I do write some web
applications to solve problems at work... it is not my primary function.

I''m curious to know how others feel about the new programming environment
and how they''re adapting to the new technologies and programming
requirements.

Does ASP.NET 2.0 really make your life easier than classic ASP or using some
other server-side scripting technology such as PHP or Cold Fusion?

推荐答案

>我有一个经典几年前我写的ASP应用程序让我
>I have a classic ASP app that I wrote a few years back that took me
可能是
6-8小时来编写,调试和部署。我从来没有真正触及它。

它只有一个输入表单,它将回发给自己并显示一个

网格/表格,其中包含查询结果。


我喜欢asp.net,与imo有缺陷的asp相比可能性更高

更多。


你的6-8小时应用程序,我可以在~30分钟内使用sqldatasource,

gridview并手动修改预定义的更新SQL语句。

我会有分页,排序,编辑和更新。

重点是我花了很多时间来学习这个,毕竟是琐碎的东西。

所以我可以说它是'可能有一种误解,认为ASP.NET是平等或更差。

学习曲线对于'和'不是'非常陡峭。

但是在结尾好多了......


GREAT MULTIPOST ...再来一次!!

" dm1608" < DM **** @ spam.net> schreef in bericht

新闻:%2 ****************** @ tk2msftngp13.phx.gbl ...我现在知道所有的炒作与以前的版本相比,Microsoft 2.0提供了更简单,更快速,更少的代码。我很困惑,因为我可以在几个小时内找出一个经典的ASP网页来查询数据库,显示网格/表格,而且不用担心。在ASP.NET 2.0中执行相同的任务看起来几乎是微不足道的,但它真的是真实世界吗?

我有几年前写过的经典ASP应用程序这让我花了大概6-8个小时来编写,调试和部署。从那以后我真的没有碰过它。它只有一个输入表单,它将回发给自己并显示一个带有查询结果的网格/表格。

因为我正在尝试使用ASP.NET 2.0潮流,我认为简单的ASP应用程序将是一个完美的启动器。申请我的ASP.NET 2.0之旅。当然,我将一个表拖放到设计
服务上,将GridView连接到一个SQLDataSource和垃圾,但真正的挑战是在现实世界中实现这些拖放对象
我已经花了大约。将这个ASP网页(单个页面,请注意)转换为ASP.NET 2.0 40多个小时。我正在尝试进行n层设计,并且有一个DAL,BAL和ASP.NET 2.0前端。我甚至没有设计出一个漂亮的主人。网站的主题页面。

这些概念看起来很简单...而且一些结果看起来很漂亮。

我目前的斗争是交易具有可空数据类型从SQL Server返回日期时间字段。你们中的一些人可能已经阅读了我以前的线程,我正在努力将NULL DateTime字段添加到我的
泛型集合中。我一直在收到InvalidCastExceptions。我约90%完成了我的代码,但是这个问题让我疯了......我已经花了10多个小时来解决这个问题,但仍然没有
解决了。

我看过一些在线示例为ASP.NET 2.0编写n层设计
但大多数只是处理字符串而不是混合数据类型。我已经看过大约10种不同的网络广播最新的技巧和做事方式......
甚至Fritz Onion的基本ASP.NET 2.0网络广播系列......我已经<购买了所有最新的Microsoft .NET 2005书籍。关于BAL / DAL最佳实践的内容并不多。

六个月后,这似乎是一个微不足道的挑战,但对于一个学习ASP.NET 2.0的新手来说,我很难通过采用新技术证明节省成本。是的,我的代码更加面向对象......我的代码和可视内容是分开的...我完全从我的数据访问中抽象出我的业务数据。很酷。但是所有这些优势的代价是什么?我仍然没有工作的应用程序和微软的工具ASP.NET比ASP更优越,更容易。

我一直遇到其他问题并且谢谢对于这些新闻组中的善良人士,我已经解决了这些问题。我不是大师级程序员,介意你,并且只是为了好玩和作为一个爱好而做这件事......虽然我写了一些
网络应用程序来解决工作中的问题...但它不是我的主要功能。

我很想知道其他人对新编程环境的看法以及他们如何适应新技术和编程/>


ASP.NET 2.0是否真的让您的生活比传统的ASP更容易,或者使用其他一些服务器端脚本技术,如PHP或Cold Fusion?

probably 6-8 hours to write, debug, and deploy. I haven''t really touched it since.
It has simply an input form that will post back to itself and display a
grid/table with the results from a query.

I love asp.net, the possibilities compared to imo flawed asp is much
greater.

Your 6-8 hours app, i can do that within ~30 minutes with an sqldatasource,
gridview and manually modifying the predefined update SQL statements.
I''ll have paging, sorting , editting and updating.
The point is that it took me ages to learn this, after all, trivial stuff.
So i can say it''s probably a misconception to say ASP.NET is equal or worse.
The learning curve is pretty steep for the do''s and the dont''s.
But at the end so much better ...

GREAT MULTIPOST... AGAIN!!
"dm1608" <dm****@spam.net> schreef in bericht
news:%2******************@tk2msftngp13.phx.gbl...I know all the hype right now from Microsoft is how much easier, faster,
and less code ASP.NET 2.0 provides over previous versions. I''m puzzled by
this as I could turn out an classic ASP webpage in a few hours to query a
database, display a grid/table, and not have much to worry about. Doing
the same tasks in ASP.NET 2.0 seems almost trivial, but is it really
real-world?

I have a classic ASP app that I wrote a few years back that took me
probably 6-8 hours to write, debug, and deploy. I haven''t really touched
it since. It has simply an input form that will post back to itself and
display a grid/table with the results from a query.

Since I''m trying to get on the ASP.NET 2.0 bandwagon, I thought that
simple ASP application would be a perfect "starter" application for my
ASP.NET 2.0 journey. Sure, I drag and drop a table onto the design
service, wire up a GridView to a SQLDataSource and junk, but the real
challenge is implementing these drag-and-drop objects in a real world
scenario.

I''ve been spent approx. 40+ hours on converting this ASP webpage (a single
page, mind you) to ASP.NET 2.0. I''m trying to do an n-tier design and
have a DAL, BAL, along with the ASP.NET 2.0 front-end. I haven''t even
gotten to designing a nice "Master" page for site''s theme yet.

The concepts seem simple... and some of the results seem pretty
impressive.

My current struggle is dealing with nullable datatypes coming back from
SQL Server for a datetime field. Some of you may have read my previous
thread where I am struggling in getting a NULL DateTime field to add to my
generic collection. I keep getting InvalidCastExceptions. I''m about 90%
done with my code, but this one issue is driving me nuts... I''ve
literally spent 10+ hours on this one issue and still do not have it
resolved.

I''ve seen a few online examples writing an n-tier design for ASP.NET 2.0
but most just deal with strings and not mixed data types. I''ve watched
about 10 different webcasts the latest tricks and ways of doing things...
even Fritz Onion''s Essential ASP.NET 2.0 webcast series.... I''ve
purchased all the latest Microsoft .NET 2005 books. Not much in there
about BAL/DAL best practices.

Six months from now, this may seem like a trivial challenge, but for a
newbie learning ASP.NET 2.0, I''m having a hard time justifying the savings
with going to the new technology. Yeah, my code is more object
oriented... my code and visual content is separate... and I''ve totally
abstracted my business data from my data access. Very cool. But what is
the cost of all these "advantages"? I still do not have a working
application and Microsoft taughts ASP.NET is far superior and easier than
ASP.

I"ve run into other issues along the way and thanks to the kind folks in
these newsgroups, I''ve resolved them. I''m not master programmer, mind
you, and simply do this for fun and as a hobby... although I do write some
web applications to solve problems at work... it is not my primary
function.

I''m curious to know how others feel about the new programming environment
and how they''re adapting to the new technologies and programming
requirements.

Does ASP.NET 2.0 really make your life easier than classic ASP or using
some other server-side scripting technology such as PHP or Cold Fusion?



是的,我可以删除GridView和SQLDataSource,并且可能是

复制大部分内容ASP中的功能。但同样,我正在尝试使用最佳实践来实现这一点并使用ObjectDataSource代替......

这使得开发页面变得更加复杂和时间

通过创建BAL和DAL访问来消费。


" Edwin Knoppert" <在** @ pbsoft.speedlinq.nl>在消息中写道

news:dt ********** @ azure.qinip.net ...
Yes, I can drop-and-drop the GridView and SQLDataSource and probably
duplicate much of the same functionality in the ASP. But again, I''m trying
to do this with best practices in mind and use ObjectDataSource instead...
which makes developmenting the page a lot more complicated and time
consuming with creating the BAL and DAL access.


"Edwin Knoppert" <in**@pbsoft.speedlinq.nl> wrote in message
news:dt**********@azure.qinip.net...
I我有一个经典的ASP应用程序,几年前我写了,这可能
I have a classic ASP app that I wrote a few years back that took me
probably


6-8小时编写,调试和部署。我从来没有真正触及过它。
它只是一个输入表单,它将回发给自己并显示一个
网格/表格,其中包含查询结果。
我喜欢asp.net,与imo有缺陷的asp相比,可能性更大。

你的6-8小时应用程序,我可以在约30分钟内用
sqldatasource,gridview并手动修改预定义的更新SQL语句。
我会进行分页,排序,编辑和更新。
关键是我花了很多时间来学习这个,毕竟,琐碎的东西。
所以我可以说,说ASP.NET相等或更糟糕可能是一种误解。
学习曲线相当陡峭。 s和dont's。
但最后还是那么好......

GREAT MULTIPOST ...再次!!

" dm1608" < DM **** @ spam.net> schreef in bericht
新闻:%2 ****************** @ tk2msftngp13.phx.gbl ...


6-8 hours to write, debug, and deploy. I haven''t really touched it since.
It has simply an input form that will post back to itself and display a
grid/table with the results from a query.

I love asp.net, the possibilities compared to imo flawed asp is much
greater.

Your 6-8 hours app, i can do that within ~30 minutes with an
sqldatasource, gridview and manually modifying the predefined update SQL
statements.
I''ll have paging, sorting , editting and updating.
The point is that it took me ages to learn this, after all, trivial stuff.
So i can say it''s probably a misconception to say ASP.NET is equal or
worse.
The learning curve is pretty steep for the do''s and the dont''s.
But at the end so much better ...

GREAT MULTIPOST... AGAIN!!
"dm1608" <dm****@spam.net> schreef in bericht
news:%2******************@tk2msftngp13.phx.gbl...

我知道所有的现在从微软宣传的是,与以前的版本相比,ASP.NET 2.0提供的代码更容易,更快,更少。我很困惑
因为我可以在几个小时内找出一个经典的ASP网页来查询数据库,显示一个网格/表格,而不用担心。在ASP.NET 2.0中执行相同的任务看起来几乎是微不足道的,但它真的是真实世界吗?

我有几年前写过的经典ASP应用程序这让我花了大概6-8个小时来编写,调试和部署。从那以后我真的没有碰过它。它只有一个输入表单,它将回发给自己并显示一个带有查询结果的网格/表格。

因为我正在尝试使用ASP.NET 2.0潮流,我认为简单的ASP应用程序将是一个完美的启动器。申请我的ASP.NET 2.0之旅。当然,我将一个表拖放到设计
服务上,将GridView连接到一个SQLDataSource和垃圾,但真正的挑战是在现实世界中实现这些拖放对象
我已经花了大约。将这个ASP网页(一个单页,请注意)转换为ASP.NET 2.0 40多个小时。我正在尝试进行n层设计并拥有DAL,BAL以及ASP.NET 2.0前端。我甚至没有设计出一个漂亮的主人。网站主题页面


这些概念看起来很简单......有些结果看起来很漂亮

我的目前的斗争是处理从SQL Server返回日期时间字段的可空数据类型。你们中的一些人可能已经阅读了我以前的线程,我正在努力获得一个NULL DateTime字段来添加到我的通用集合中。我一直在收到InvalidCastExceptions。我的约90%完成了我的代码,但是这个问题让我疯了......我已经花了10多个小时才解决这个问题但仍然没有
解决了。

我看过一些在线示例为ASP.NET 2.0编写n层设计
但大多数只是处理字符串而不是混合数据类型。我已经看过大约10种不同的网络广播最新的技巧和做事方式......
甚至Fritz Onion的基本ASP.NET 2.0网络广播系列......我已经<购买了所有最新的Microsoft .NET 2005书籍。关于BAL / DAL最佳实践的内容并不多。

六个月后,这似乎是一个微不足道的挑战,但对于一个学习ASP.NET 2.0的新手来说,我很难通过采用新技术来证明节省的成本。是的,我的代码更加面向对象......我的代码和可视内容是分开的...我完全从我的数据访问中抽象出我的业务数据。很酷。但是所有这些优势的代价是什么?我仍然没有工作的应用程序和微软的工具ASP.NET比ASP更优越,更容易。

我一直遇到其他问题并且谢谢对于这些新闻组中的善良人士,我已经解决了这些问题。我不是大师级程序员,介意你,并且只是为了好玩和作为一个爱好而做这件事......虽然我写了一些Web应用程序来解决工作中的问题...但它不是我的主要功能。

我很想知道其他人对新编程环境的看法以及他们如何适应新技术和编程/>


ASP.NET 2.0是否真的让您的生活比传统的ASP更容易,或者使用其他一些服务器端脚本技术,如PHP或Cold Fusion?

I know all the hype right now from Microsoft is how much easier, faster,
and less code ASP.NET 2.0 provides over previous versions. I''m puzzled
by this as I could turn out an classic ASP webpage in a few hours to query
a database, display a grid/table, and not have much to worry about. Doing
the same tasks in ASP.NET 2.0 seems almost trivial, but is it really
real-world?

I have a classic ASP app that I wrote a few years back that took me
probably 6-8 hours to write, debug, and deploy. I haven''t really touched
it since. It has simply an input form that will post back to itself and
display a grid/table with the results from a query.

Since I''m trying to get on the ASP.NET 2.0 bandwagon, I thought that
simple ASP application would be a perfect "starter" application for my
ASP.NET 2.0 journey. Sure, I drag and drop a table onto the design
service, wire up a GridView to a SQLDataSource and junk, but the real
challenge is implementing these drag-and-drop objects in a real world
scenario.

I''ve been spent approx. 40+ hours on converting this ASP webpage (a
single page, mind you) to ASP.NET 2.0. I''m trying to do an n-tier
design and have a DAL, BAL, along with the ASP.NET 2.0 front-end. I
haven''t even gotten to designing a nice "Master" page for site''s theme
yet.

The concepts seem simple... and some of the results seem pretty
impressive.

My current struggle is dealing with nullable datatypes coming back from
SQL Server for a datetime field. Some of you may have read my previous
thread where I am struggling in getting a NULL DateTime field to add to
my generic collection. I keep getting InvalidCastExceptions. I''m about
90% done with my code, but this one issue is driving me nuts... I''ve
literally spent 10+ hours on this one issue and still do not have it
resolved.

I''ve seen a few online examples writing an n-tier design for ASP.NET 2.0
but most just deal with strings and not mixed data types. I''ve watched
about 10 different webcasts the latest tricks and ways of doing things...
even Fritz Onion''s Essential ASP.NET 2.0 webcast series.... I''ve
purchased all the latest Microsoft .NET 2005 books. Not much in there
about BAL/DAL best practices.

Six months from now, this may seem like a trivial challenge, but for a
newbie learning ASP.NET 2.0, I''m having a hard time justifying the
savings with going to the new technology. Yeah, my code is more object
oriented... my code and visual content is separate... and I''ve totally
abstracted my business data from my data access. Very cool. But what is
the cost of all these "advantages"? I still do not have a working
application and Microsoft taughts ASP.NET is far superior and easier than
ASP.

I"ve run into other issues along the way and thanks to the kind folks in
these newsgroups, I''ve resolved them. I''m not master programmer, mind
you, and simply do this for fun and as a hobby... although I do write
some web applications to solve problems at work... it is not my primary
function.

I''m curious to know how others feel about the new programming environment
and how they''re adapting to the new technologies and programming
requirements.

Does ASP.NET 2.0 really make your life easier than classic ASP or using
some other server-side scripting technology such as PHP or Cold Fusion?




>对于do'和'dont'来说,学习曲线非常陡峭。
> The learning curve is pretty steep for the do''s and the dont''s.
但最后还是那么好......
But at the end so much better ...




这就是我的意思。


ASP.net非常好,一旦你得到它。这需要很长时间。我是

仍然试图完全得到它。


因此,我认为ASP.net很适合很多东西,也是矫枉过正的

的东西。


-Darrel



That''s how I''d put it.

ASP.net is really great ONCE you ''get'' it. And that takes a long while. I''m
still trying to ''get'' it fully.

As such, I think ASP.net is great for a lot of stuff, and overkill for a lot
of stuff, too.

-Darrel


这篇关于ASP.NET 2.0比ASP更容易? Gimmie休息一下!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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