delphi7做网页比asp做网页效率快多了(0分)

  • 主题发起人 主题发起人 山泉
  • 开始时间 开始时间

山泉

Unregistered / Unconfirmed
GUEST, unregistred user!
delphi7做网页比asp做网页效率快多了
我用delphi7 打造的网站
组图
http://www.datacn.com/readme/tupian.html
如何做这样的主页看懂下面的文章就可以了
网页模板用Dreamweaver打造
delphi 调用模板
Intraweb 中重要组件用法
Layout Managers
What is a Layout Manager
A layout manager assembles the HTML pieces from each component into a complete HTML
page for output to the browser. IntraWeb has a base layout manager, TIWLayoutMgr that can
be descended from to create new layout managers. Currently IntraWeb has two layout
managers TIWLayoutMgrForm and TIWTemplateProcessorHTML. In the future, there will be
other layout managers to support XML and more.
Form Layout Manager – TIWLayoutMgrForm
This is the default layout manager. If no layout manager is specified, and implicit
TIWLayoutMgrForm will be created and used. TIWLayoutMgrForm creates HTML pages
that have the same layout and look as the designed form.
HTML Templates
Templates allow for advanced formatting and layout of individual forms. Templates also allow a
web designer to design the layout of forms without using Delphi. In short, templates allow
presentation and implementation to be separated. Templates are simply special HTML files.
The use of templates still requires the browser to support HTML 4 and JavaScript.
Any framed controls will be rendered without frames when templates are used. If you wish to
have them frames in the template, you should frame them by using IFrame or other method in
your template.
To use templates create a ‘Templates’ sub directory in your application directory and create a
<FormName>.html file. Next, for the form that you wish to apply the template to:
1. Add a TIWTemplateProcessorHTML component from the IntraWeb Control tab to
your form.
2. Set the form’s TemplateProcessor to the new TIWTemplateProcessorHTML
component.
Most of the template functionality should be self-explanatory by looking at the examples. To see
templates in action see the Phonetics Customer Profiler demo.
For each component, the template should contain a tag of the form
{%Component.HTMLName%}. HTMLName in most cases is the same as the name. When
the form is generated, the tags will be replaced with the component output. The use of {%%}
instead of <> allows for easier editing in WSIWYG HTML editors and is compatible with all
HTML editors. The {% %} tag characters are also not considered special characters and
therefore are not converted to special tags. By default, a master FORM tag will surround the
body to ensure proper function of all input controls and buttons. However, in some cases this
can interfere with the HTML. For such cases, see the help topic for
TIWTemplateProcessorHTML.MasterFormTag.
For components on a TFrame, HTMLName differs from Name. Because a TFrame is the
owner of the components contained in it, components on a TFrame can have the same name as
components on other TFrame instances, or as components on the form. To circumvent this
components on a TFrame set their HTMLName to the frame name + component name at run
time. For instance, if a component named Label1 is on a TFrame named Frame1, the
components HTMLName at run time will be Frame1Label1. {%Frame1Label1%} is the tag
that need to use when using components on a frame in a template.
If you wish to use the Borland style tags <#TagName#> instead of the IntraWeb style tags you
can set the TagType property to ttBorland. IntraWeb type tags are easier to use with
WSYWIG HTML editors.
System Templates
System templates can be used to modify the look and layout of system messages and dialogs
generated by IntraWeb.
System Dialogs
There are two specific template files called IWShowMessage.html and IWException.html.
These are used to provide additional formatting to ShowMessage method and for the display of
uncaught exceptions. The following tags must be present:
{%textMessage%}
{%butnOk%}
The Guess demo has these two templates implemented as an example.
Note that the template for ShowMessage has no effect when smAlert or smNewWindow is
passed to ShowMessage.
 
比asp.net怎么样?
 
运行中有什么别的不足之处吗?
关注
 
网上关于Intraweb 的资料太少!
 
intraweb上手很快,我
10.17才接触 intraweb花了3天
边学边写,就完成了上面的程序
我在单位架设了intraweb开发的服务器
客户端浏览传输数据比asp明显快
可能由于asp是解释性的语言,delphi编译后的是
执行性语言,效率上有差别
我主要是看到上面那段的英文帮助,结合delphi7的自带的例子(越看越觉的个个经典),
懂得了dreamweaver和delphi7共同打造动态网页,
谁有什么好的心得,能否交流下,网上这东西介绍太少了,谢谢。
 
asp 都是com的,当然慢
 
可惜我英文不好。
 
对编程人员来说,当然是delphi好了,但不一定用Intraweb,标准cgi,isapi/nsapi均可实现.
 
用Intraweb写出来的是DLL文件,通过IIS访问时需将DLL文件加载。但它一直在内存中,
只有重启IIS才能释放DLL文件,请问有没有办法在没有人访问时将DLL文件自动释放的
方法??
 
没人叫你写成dll ,
就编译成exe,可以作为一个服务器使用,可以穿越平台
 
exe吃资源太厉害
 
to 山泉
,可以给点代码 ,写几篇教学文章吗?
大家都期待着你
 
有空我就写,顺便问下怎么投稿?
 
你就贴到这里来嘛
如果想搞些稿费地话,再发到 电脑报、电脑爱好者,肯定会录取地
大哥,快点啊,大家都等着经
 
TO 山泉等:我遇到了很多困難,能否幫忙解決?
http://www.delphibbs.com/delphibbs/dispq.asp?lid=1400596
http://www.delphibbs.com/delphibbs/dispq.asp?lid=1404099
 

Similar threads

A
回复
0
查看
932
Andreas Hausladen
A
A
回复
0
查看
805
Andreas Hausladen
A
A
回复
0
查看
655
Andreas Hausladen
A
A
回复
0
查看
834
Andreas Hausladen
A
后退
顶部