Click here to Skip to main content
15,914,323 members
Home / Discussions / C#
   

C#

 
QuestionFreeing resources ( forcing object destruction) [modified] Pin
abhijit pai11-Aug-06 1:35
abhijit pai11-Aug-06 1:35 
AnswerRe: Freeing resources ( forcing object destruction) Pin
Filip van der Meeren11-Aug-06 1:56
Filip van der Meeren11-Aug-06 1:56 
GeneralRe: Freeing resources ( forcing object destruction) Pin
abhijit pai11-Aug-06 4:57
abhijit pai11-Aug-06 4:57 
AnswerRe: Freeing resources ( forcing object destruction) Pin
Dave Kreskowiak11-Aug-06 4:54
mveDave Kreskowiak11-Aug-06 4:54 
GeneralRe: Freeing resources ( forcing object destruction) Pin
abhijit pai11-Aug-06 5:12
abhijit pai11-Aug-06 5:12 
GeneralRe: Freeing resources ( forcing object destruction) Pin
Filip van der Meeren11-Aug-06 6:25
Filip van der Meeren11-Aug-06 6:25 
GeneralRe: Freeing resources ( forcing object destruction) Pin
Dave Kreskowiak11-Aug-06 13:01
mveDave Kreskowiak11-Aug-06 13:01 
Questionhow to search given word in the word document Pin
ayyp11-Aug-06 1:11
ayyp11-Aug-06 1:11 
hi all,i need to search the documents(word document which are present in the application domain)for a given input "search word".when i run the code it takes too much time to search and display the result,i thing this is because of large amount of the documents...is it possible to speed up this search....or is there any other way to do this....currently my application domain contain 1500 documents,in future it will increase to any amount....

here is my code:

string[] files=Directory.GetFiles(Server.MapPath("."),"*.doc");
for(int i=0;i<files.length;i++)
{="" response.write(files[i]);
="" foreach(string="" s="" in="" files)
="" {
="" streamreader="" sr="new" streamreader(s);
="" string="" s1="sr.ReadToEnd();
" regex="" regtext="new" regex("\\b"+txtsearchdata.text.replace="" (",","\\b|\\b").trim()+"\\b",regexoptions.ignorecase);
="" match="" str="Regex.Match(s1,regtext.ToString());
" if(str.success)
="" res1.add(s);
="" else
="" response.write("not="" present");
="" }
="" }=""

regards,
<div="" class="ForumSig">ayyp
AnswerRe: how to search given word in the word document Pin
TheJudeDude16-Aug-06 14:22
TheJudeDude16-Aug-06 14:22 
QuestionDisable Mouse Pin
Rahul.RK11-Aug-06 0:26
Rahul.RK11-Aug-06 0:26 
AnswerRe: Disable Mouse Pin
stancrm11-Aug-06 1:50
stancrm11-Aug-06 1:50 
JokeRe: Disable Mouse Pin
Filip van der Meeren11-Aug-06 2:00
Filip van der Meeren11-Aug-06 2:00 
AnswerRe: Disable Mouse Pin
Thomas Stockwell12-Aug-06 11:54
professionalThomas Stockwell12-Aug-06 11:54 
QuestionGeneric MultiMap class / Set like the STL one... [modified] Pin
Florian Storck10-Aug-06 23:31
Florian Storck10-Aug-06 23:31 
QuestionSSL vs HTTPS Pin
Kamleshs10-Aug-06 22:56
Kamleshs10-Aug-06 22:56 
Answerspelling Pin
Ennis Ray Lynch, Jr.11-Aug-06 6:41
Ennis Ray Lynch, Jr.11-Aug-06 6:41 
AnswerRe: SSL vs HTTPS Pin
Dave Kreskowiak11-Aug-06 7:31
mveDave Kreskowiak11-Aug-06 7:31 
QuestionDump please! Pin
psamy10-Aug-06 22:53
psamy10-Aug-06 22:53 
AnswerRe: Dump please! Pin
Colin Angus Mackay10-Aug-06 22:57
Colin Angus Mackay10-Aug-06 22:57 
GeneralRe: Dump please! Pin
psamy10-Aug-06 23:00
psamy10-Aug-06 23:00 
GeneralRe: Dump please! Pin
User 665810-Aug-06 23:20
User 665810-Aug-06 23:20 
GeneralRe: Dump please! Pin
Colin Angus Mackay11-Aug-06 2:23
Colin Angus Mackay11-Aug-06 2:23 
GeneralRe: Dump please! Pin
Colin Angus Mackay11-Aug-06 2:24
Colin Angus Mackay11-Aug-06 2:24 
Questiondatagrid Pin
john3410-Aug-06 22:38
john3410-Aug-06 22:38 
QuestionChecking user belong to group Pin
stancrm10-Aug-06 22:33
stancrm10-Aug-06 22:33 

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.