Click here to Skip to main content
15,305,361 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Updated 5-May-11 2:15am

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.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900