Web.xml相关问题. [英] Web.xml related question.

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

问题描述

Hai All


我大约有50个aspx页面,每个页面都以网格形式显示数据.
我需要使用名为
的属性更新所有页面 <ItemStyle Wrap="false" />

如果要在所有页面中使用它,则需要更新所有页面.

我们还有其他方法吗,例如放置此web.xml文件或其他内容.

解决方案

我认为,如果您使用的是母版页,则可以在其中添加此属性.否则,只需执行复杂的查找/替换"搜索即可.

您仍然必须修改所有页面,对吗?当您可以轻松地将文本复制/粘贴到各个页面中时,将某些内容放入文件中会导致文件I/O的意义何在?

如果所有这些页面都显示网格",也许您应该想出所有这些页面都继承自的基类,以便您可以使用通用方法,每个页面都可以调用这些方法来制作必要的mod.缺点是您仍然必须修改每个页面才能调用这些方法.

没有捷径.欢迎使用计算机编程.


Hai All


I have about 50 aspx pages each page shows data in a grid.
I need to update all the pages with a property called
<ItemStyle Wrap="false" />

If I want this to be in all the pages I need to update this all the pages.

Do we have any other method like putting this web.xml file or something else.

Instead of putting this in all the aspx pages.

解决方案

I think if you''re using a master page you could add this property there. Otherwise just do a sophisticated Find / Replace search. Shouldn''t be to hard.


You still have to modify all the pages, right? What''s the point in putting something into a file that would cause file i/o when you could just as easily copy/paste the text into your individual pages?

If all of those pages "show a grid", maybe you should come up with a base class that all of those pages inherit from so you can have common methods available that each page can call that make the necessary mods. The downside is that you STILL have to modifyy each page ANYWAY to call those methods.

There is no shortcut. Welcome to computer programming.


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

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