很多Response.Writes of HTML - 你如何做到这一点? [英] Lots of Response.Writes of HTML - How do YOU do it?

查看:65
本文介绍了很多Response.Writes of HTML - 你如何做到这一点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是ASP& amp;的新手HTML。看来当你使用服务器端

代码并且你要返回一个带有几个

字段和标签的自定义HTML表单时,你需要做大量的工作。

Response.Writes。


是否有任何工具可以让你设计表格然后转换

表格到Response .Writes你可以用ASP进一步定制

逻辑吗?例如:使用Dreamweaver设计表单,然后使用另一个

程序转换为aspx文件中的response.writes。


什么是简单的这样做的方式?只是为了减少对我来说不费力。


Response.Write谢谢,


tt

I''m a newbie at ASP & HTML. It seems that when you use server side
code and you''re going to return a customized HTML form with several
fields and labels, you have to do an extensive amount of
Response.Writes.

Are there any tools that will let you design the form then convert
that form to Response.Writes that you can further customize with ASP
logic? For instance: use Dreamweaver to design the form, then another
program to convert to response.writes in an aspx file.

What''s the easy way of doing it? Just trying to make it less
laborious for me.

Response.Write "Thanks,"

tt

推荐答案

这是一个有趣的问题。但是,你需要担心的只是

HTML的动态部分。


剩下的部分,你可以把ASP作为只需关闭括号即可。


例如。


<%

无论= ...

Response.Write(无论如何)

%>

< form>

blah blah blah
< / form>

<%

...

%>

你也可以使用= expression作为写表达式的简写,如果它是括号内的整个代码的话。


例如< (%)=无论%GT;而不是<%Response.Write(无论)%>


这有帮助吗?


Paul

" TinyTim" <钛***** @ MissVicky.com>在消息中写道

news:ar ******************************** @ 4ax.com ...
That''s an interesting question. However, it is only the dynamic parts of the
HTML that you need to worry about.

The rest of it, you can put in the ASP as is simply by closing the brackets.

eg.

<%
whatever = ...
Response.Write(whatever)
%>
<form>
blah blah blah
</form>
<%
...
%>

You can also use =expression as shorthand for writing an expression if it is
the entire code within brackets.

For example <%=whatever%> instead of <%Response.Write(whatever)%>

Does that help?

Paul

"TinyTim" <Ti*****@MissVicky.com> wrote in message
news:ar********************************@4ax.com...
我是ASP&的新手HTML。看来当你使用服务器端的代码并且你要返回一个带有几个
字段和标签的自定义HTML表单时,你必须做大量的响应.Writes 。

是否有任何工具可以让你设计表单,然后将表单转换为Response.Writes,你可以用ASP
逻辑进一步自定义?例如:使用Dreamweaver设计表单,然后使用另一个程序转换为aspx文件中的response.writes。

这样做的简单方法是什么?只是为了让我不那么辛苦。

Response.Write谢谢,

tt
I''m a newbie at ASP & HTML. It seems that when you use server side
code and you''re going to return a customized HTML form with several
fields and labels, you have to do an extensive amount of
Response.Writes.

Are there any tools that will let you design the form then convert
that form to Response.Writes that you can further customize with ASP
logic? For instance: use Dreamweaver to design the form, then another
program to convert to response.writes in an aspx file.

What''s the easy way of doing it? Just trying to make it less
laborious for me.

Response.Write "Thanks,"

tt



TinyTim写道:
TinyTim wrote:
我是ASP&的新手HTML。看来当你使用服务器端的代码并且你要返回一个带有几个
字段和标签的自定义HTML表单时,你必须做大量的响应.Writes 。
I''m a newbie at ASP & HTML. It seems that when you use server side
code and you''re going to return a customized HTML form with several
fields and labels, you have to do an extensive amount of
Response.Writes.




你知道吗......

<%= myVar%>


....是一个词汇的简写吗?

<%Response.Write(myVar)%>

我的大部分文件都是这样写的HTML是一个连续的部分,

点缀着令牌。表单元素示例:


< input name =" LastName" value ="<%= Page.LastName%>">

< select name =" Role"><%= Page.RoleOptionList%>< / select>

< textarea name =" Comments"><%= Page.Comments%>< / textarea>


逻辑用于填充变量已经被抽象到脚本的仅仅服务器端的一段,并且上面显示的很好用于像Dreamweaver这样的工具。

a工具。

-

戴夫安德森


未经请求的商业电子邮件将以



Are you aware that this...
<%=myVar%>

....is a lexical shorthand for this?
<% Response.Write(myVar) %>
Most of my documents are written so the HTML is a single continuous section,
dotted with tokens. Form element examples:

<input name="LastName" value="<%=Page.LastName%>">
<select name="Role"><%=Page.RoleOptionList%></select>
<textarea name="Comments"><%=Page.Comments%></textarea>

The logic for populating the variables has been abstracted away to a
server-side-only segment of the script, and the above displays just fine in
a tool like Dreamweaver.
--
Dave Anderson

Unsolicited commercial email will be read at a cost of


的费用阅读每条消息500条。使用

此电子邮件地址即表示同意这些条款。请不要直接联系

我或要求我直接与您联系以获取帮助。如果您的

问题值得询问,那就值得发帖。
500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it''s worth posting.


这篇关于很多Response.Writes of HTML - 你如何做到这一点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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