用.Net编译(差不多)html编码? [英] is html coding (almost) obsolute with .Net?

查看:55
本文介绍了用.Net编译(差不多)html编码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

跳上火车,跳得那么大.Net是有的,我觉得很难相信的东西......因为Web表格的到来

(< asp:xxx />) - 除了我的网页的实际

图形设计外,我是否需要手动编写HTML代码(例如< p>< br><表>)???

解决方案

欢迎参加派对。


HTML编码绝对不会过时用ASP.NET。我自己只能代表

,但我唯一的HTML工作是创建aspx页面的布局,

自定义页面模板和控件模板。 DataList Web服务器

控件是您(可以)定义原始HTML

模板的控件示例。即使这些服务器端控件可以为您渲染大量HTML

- 您有时也必须提供

HTML模板才能得到你想要的样子。


另外,不要丢弃你喜欢的HTML编辑器。 VS.NET 2003以垃圾清理HTML而臭名昭着。
臭名昭着。也就是说,如果您在记事本或DreamWeaver中创建一个漂亮干净的HTML页面布局,然后在

Visual Studio中打开该页面,那么干净的HTML很可能很好将被销毁

,因为VS.NET 2003为您完成了重写。并且它不仅仅是简单地使用不同的HTML重新创建原始布局。你也得到一个完全

的新布局。这里的好消息是Visual

Studion的下一个版本应该会解决这个问题。在那之前,我们很多人使用Dreamweaver和VS.NET 2003一起使用 - 使用DW进行所有HTML /页面

布局工作和站点管理任务(上传文件等) ),并将
切换到VS.NET进行所有编码,调试和测试。


祝你好运!


-GH

" David" <分贝**** @ simnet.is>在消息中写道

新闻:Ot ************** @ TK2MSFTNGP10.phx.gbl ...

跳上火车有了这么大的跳跃,.Net就有了我难以置信的东西......自从Web表单到来之后(< asp:xxx />) - 我是否会需要除了我的网站的
实际图形设计之外做手动HTML代码(例如< p>< br>< table>)???



>另外,不要丢弃你最喜欢的HTML编辑器。 VS.NET 2003是

因废弃干净的HTML而臭名昭着。




请务必查看Visual Web Developer Express。它不会改变你的

代码,除非你告诉它格式化。


Ken


HTML控件比ASP.NET控件更快。


另外,如果你想建立一个真实的制作网站,你应该总是

在Web控件之前选择一个html服务器控件。真正的制作

网站,实际看起来不太好用,不要用VS.NET作为前端或

用户界面。


如果您不关心图形用户界面,无论您的工作是什么,或者您做什么,您都无法构建真正的制作

网站对于公众而言,因为公众实际上需要完成工作

和html是最简单,最快速的解决方案,实际上可以在一致的基础上工作




此外,如果你使用web

控件,你会越来越多地将自己锁定在ASP.NET中。


" David" <分贝**** @ simnet.is>在消息中写道

新闻:Ot ************** @ TK2MSFTNGP10.phx.gbl ...

跳上火车有了这么大的跳跃,.Net就有了我难以置信的东西......自从Web表单到来之后(< asp:xxx />) - 我是否会需要除了我的网站的
实际图形设计之外做手动HTML代码(例如< p>< br>< table>)???



jumping on the train and with such a big jump that .Net is there is
something I just find hard to believe... since the arrival of Web forms
(<asp:xxx/>) - will I ever need to do manual HTML code except for the actual
graphical design of my web (e.g. <p> <br> <table>) ???

解决方案

Welcome to the party.

HTML coding is definitely NOT obsolete with ASP.NET. I can only speak for
myself, but the only HTML work I do is to create the layout of aspx pages,
custom page templates, and control templates. The DataList Web Server
control is an example of a control for which you (can) define raw HTML
templates. Even with these server-side controls that can inject lots of HTML
into the rendered page for you - you will sometimes have to provide it with
an HTML template in order to get the look you want.

Separately, don''t throw away your favorite HTML editor. VS.NET 2003 is
notorious for trashing your clean HTML. That is, if you create a nice clean
HTML page layout in Notepad or DreamWeaver, and then open that page in
Visual Studio, odds are pretty good that your clean HTML will be destroyed
as VS.NET 2003 does a complete rewrite for you. And it''s not simply
recreating your original layout with different HTML; you get a completely
new layout as well. The good news here is that the next version of Visual
Studion is supposedly going to solve this problem. Until then, many of us
use Dreamweaver in conjunction with VS.NET 2003 - using DW for all HTML/page
layout work and site management tasks (uploading files, etc), and switch
over to VS.NET for all coding, debugging, and testing.

Good Luck!

-GH
"David" <db****@simnet.is> wrote in message
news:Ot**************@TK2MSFTNGP10.phx.gbl...

jumping on the train and with such a big jump that .Net is there is
something I just find hard to believe... since the arrival of Web forms
(<asp:xxx/>) - will I ever need to do manual HTML code except for the actual graphical design of my web (e.g. <p> <br> <table>) ???



> Separately, don''t throw away your favorite HTML editor. VS.NET 2003 is

notorious for trashing your clean HTML.



Make sure you check out Visual Web Developer Express. It won''t change your
code unless you tell it to format.

Ken


HTML controls are FASTER than ASP.NET controls.

Also, if you want to build a real production website, you should always
choose an html server control before a web control. Real Production
websites, that actually look decent don''t use VS.NET for the front end or
UI.

If you aren''t concerned about the graphical user interface, regardless of
what your job is, or what you do, you are not building a real production
website for the public because the public actually needs to get work done
and html is the simpliest and fastest solution out there that actually works
on a consistent basis.

Furthermore, you lock yourself into ASP.NET more and more if you use web
controls.

"David" <db****@simnet.is> wrote in message
news:Ot**************@TK2MSFTNGP10.phx.gbl...

jumping on the train and with such a big jump that .Net is there is
something I just find hard to believe... since the arrival of Web forms
(<asp:xxx/>) - will I ever need to do manual HTML code except for the actual graphical design of my web (e.g. <p> <br> <table>) ???



这篇关于用.Net编译(差不多)html编码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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