Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityCommunity Membe...Community Membe...New FREE DNN Search and Replace tool (HtmlText, Links, ModuleSettings, TabModuleSettings, etc.)New FREE DNN Search and Replace tool (HtmlText, Links, ModuleSettings, TabModuleSettings, etc.)
Previous
 
Next
New Post
11/1/2008 8:40 PM
 

= DNN Search and Replace tool =
A generic DNN Search and Replace tool

Useful e.g. to replace (fix) broken links on HTML/TEXT modules or stored phisical server path in a module's setwhen moving the site from host/server or URL.

Download from: http://www.evotiva.com/Downloads/tabid/54/Default.aspx

It's a single is self-contained ASPX page. To work, it does not need any stored procedure, DLL, vb or cs file, etc..
No module to install/register.
Just upload to your site (in any folder, even the root) and browse to it.
Before browsing to the page, you must be logged in as a super user (host).

Usage
=============
Select the table (tablesList) where you want to search and/or replace data on the configured column (columnsList)
You can enter a term to search and once you click on <search> a grid will display the results (may be in the future paging/sorting could be implemented)
The search  will look for the given string on the select table/column. The search will match 'contains...' and 'starts with...'
The search  will be case sensitive or not depending on you database configuration (the database collation). Typically (by default), the search is case-insensitive.

Clicking on <Replace> will replace every instance of the search string with the defined 'Replace With' string.
An empty 'Replace With' is valid. Therefore, you can 'delete' text.
The replace operation is case-insensitive. You can easily modify this on the Replace() method (may be in the future a checkbox could be added)

Configuration
=============
The "Settings" region within the ASPX file defines the tables available for the tool (where the tool can search and replace).
You can add more (or remove), specifying the table name, column where to search & replace and the primary key column of the table.
You do this adding each value to each array defined below (tablesList, columnsList, primarykeysList).
You can even add the same table and a different column to search/replace. (may be in the future a more detailed description can be added to the dropdown)
You can add any table, for which the following conditions are meet:
- you are searching in a string column (varchar, nvarchar, text, ntext,..)
- the table has a single column primary key of type integer

To handle long-time running operations (e.g. if you search/replace within a very huge table) you may have to set or increase the executionTimeout
value defined for <httpRuntime> in the web.config file.
e.g.: <httpRuntime useFullyQualifiedRedirectUrl="true" executionTimeout="96000" maxRequestLength="10192" requestLengthDiskThreshold="10192" />

Thanks,
Horacio.-

 

 
New Post
11/1/2008 9:38 PM
 

About time someone wrote something like this ;)

I have been meaning to do it for ages- I have so many old links etc. that need changing site wide in HTML mods. I have not tried it yet but it sounds like quite a security risk leaving the page live - it wuold be good if this could be wrapped in a module with Admin perms etc.


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
11/2/2008 4:26 AM
 

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/3/2008 5:55 AM
 

Could this be used to search and replace containers in a large site? That has been one thing that makes me wary of changing the skin on a site with many (>1000 pages).

thanks,

Will Sugg

 
New Post
11/3/2008 8:30 AM
 

How did I miss that!? I'll have to do a compare of both sometime..


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityCommunity Membe...Community Membe...New FREE DNN Search and Replace tool (HtmlText, Links, ModuleSettings, TabModuleSettings, etc.)New FREE DNN Search and Replace tool (HtmlText, Links, ModuleSettings, TabModuleSettings, etc.)


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out