Click here to Skip to main content
15,899,754 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionLooking for Reporting Help - Visual Studio and Compnent One. Pin
Member 158934911-Dec-08 12:29
Member 158934911-Dec-08 12:29 
QuestionHow to get text from source code files ? Pin
jenni200811-Dec-08 8:08
jenni200811-Dec-08 8:08 
AnswerRe: How to get text from source code files ? Pin
Christian Graus11-Dec-08 8:27
protectorChristian Graus11-Dec-08 8:27 
GeneralRe: How to get text from source code files ? Pin
led mike11-Dec-08 8:40
led mike11-Dec-08 8:40 
GeneralRe: How to get text from source code files ? Pin
Christian Graus11-Dec-08 8:43
protectorChristian Graus11-Dec-08 8:43 
GeneralRe: How to get text from source code files ? Pin
led mike11-Dec-08 8:51
led mike11-Dec-08 8:51 
AnswerRe: How to get text from source code files ? Pin
led mike11-Dec-08 8:27
led mike11-Dec-08 8:27 
AnswerRe: How to get text from source code files ? Pin
ptrckmc24911-Dec-08 12:05
ptrckmc24911-Dec-08 12:05 
I use the following script. Put it in a file called RemoveTags.txt and execute from MS-DOS prompt

C:/biterScripting/biterScripting.exe RemoveTags.txt dir("<project dir="">") files("*.html")

If you really have 1000 documents, it may take a while.

Hope this helps. (If you don't have biterScripting, goto biterScripting.com -> download)

Patrick

# START OF SCRIPT


var str files # patterns for file names
var str dir # dir where entire project is

# Collect a list of files
var str fileList
find -rn $files $dir > $fileList

# Process files one by one
while ( $fileList <> "")
do

# Get the next file
var str file
lex "1" $fileList > $file

# Read the file contents into a variable.
var str content
cat $file > $content

# Remove all <> tags
while ( { sen -r "^<&>^" $content } > 0 )
sal -r "^<&>^" "" $content > null

# All <> are now removed in this one file. $content has the modified content.
# sen = string enumerator, sal = string alterer, & = regular expression that matches any number of
# any characters. <&> means, heck find out help pages.


# If you want to remove empty lines, do in a loop like above, sal "^\n\n^" "\n" $content > null

# Get the file name without the ending .html, etc.
stex "[^.^l" $file > null

# stex means string extractor. l means last instance. [ means, ... heck find out from the help pages.

# Add .txt extension to file name.
set $file = $file + ".txt"

# Write the modified content to the .txt file.
echo -e "DEBUG: Writing file " $file
echo $content > { echo $file }

done # end of do after while ( $fileList <> "")

# All text version are now availabel in corresponding .txt files in the same directories for
# the 1000 of your files.
Questionmultiple instances of same user control Pin
kiran kumar[Intelligroup]11-Dec-08 7:47
kiran kumar[Intelligroup]11-Dec-08 7:47 
AnswerRe: multiple instances of same user control Pin
Christian Graus11-Dec-08 8:01
protectorChristian Graus11-Dec-08 8:01 
AnswerRe: multiple instances of same user control Pin
Brij11-Dec-08 17:13
mentorBrij11-Dec-08 17:13 
QuestionStylesheets in a master page Pin
Brendan Vogt11-Dec-08 6:05
Brendan Vogt11-Dec-08 6:05 
AnswerRe: Stylesheets in a master page Pin
#realJSOP11-Dec-08 6:25
professional#realJSOP11-Dec-08 6:25 
AnswerRe: Stylesheets in a master page Pin
Guffa11-Dec-08 6:26
Guffa11-Dec-08 6:26 
GeneralRe: Stylesheets in a master page Pin
Brendan Vogt11-Dec-08 6:58
Brendan Vogt11-Dec-08 6:58 
QuestionRitch text editor Pin
ahawari0911-Dec-08 5:58
ahawari0911-Dec-08 5:58 
AnswerRe: Ritch text editor Pin
Christian Graus11-Dec-08 8:01
protectorChristian Graus11-Dec-08 8:01 
GeneralRe: Ritch text editor Pin
ahawari0911-Dec-08 10:31
ahawari0911-Dec-08 10:31 
Question'/LM/W3SVC/1/ROOT/MyWebsite' is not a valid IIS application error Pin
Brendan Vogt11-Dec-08 5:33
Brendan Vogt11-Dec-08 5:33 
AnswerRe: '/LM/W3SVC/1/ROOT/MyWebsite' is not a valid IIS application error Pin
Parwej Ahamad11-Dec-08 5:41
professionalParwej Ahamad11-Dec-08 5:41 
QuestionManaging multiple ressource files [modified] Pin
itsKnuckles11-Dec-08 5:18
itsKnuckles11-Dec-08 5:18 
AnswerRe: Managing multiple ressource files Pin
itsKnuckles5-Jan-09 4:58
itsKnuckles5-Jan-09 4:58 
QuestionBest way to Retrieve the Data from DB to UI Pin
dayakar_dn11-Dec-08 5:07
dayakar_dn11-Dec-08 5:07 
AnswerRe: Best way to Retrieve the Data from DB to UI Pin
Christian Graus11-Dec-08 8:03
protectorChristian Graus11-Dec-08 8:03 
QuestionHow to use the socket capability in web page or ASPX? Pin
The_Collector11-Dec-08 3:37
The_Collector11-Dec-08 3:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.