|
Hi
Does anyone know any good articles for creating a keyword search in c#?
Ive found loads which show you how to search through a database driven website but all the content on my website that I need to search for is not database driven
any help would be great!
thanks
|
|
|
|
|
If it's not database driven, your best bet is to use google to search your site, if it's live. If it's not, then you need to build a DB.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
OK
Basically Im building a web app which will have lots of links and text information displayed on pages. So the text information which is not stored in the database can only be searched using google and not a custom search engine I build myself as it would take too long, is that what you mean?
I was hoping to find some example code on how to create my own search engine but I dont want to spend months doing it.
thansk for the reply
|
|
|
|
|
.netman wrote: I was hoping to find some example code on how to create my own search engine but I dont want to spend months doing it.
Every search engine, including Google, is based on databases and indexes. The better the indexing, the quicker the searches. That's what a database is good for, there's really no alternative. If your pages are static, you could choose to put the content into a DB, and search from there, that shouldn't take too long. It depends on how complex a search you want to support. IF your site is live, then there is no better option IMO than doing a google search from your site with site: yourURL as part of the search string.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks for the reply.
The app is not live yet so it may be worth putting the content in a database and then just using queries to search the data. I think I will do that.
cheers
|
|
|
|
|
Take a look at the Searcharoo project here[^]
|
|
|
|
|
Hi
thanks for the reply
This is not quite what I want though
cheers anyway
|
|
|
|
|
i have a master page n a content page..in content page i have a datalist and two button....while running this it trows an exception "Control 'ctl00_ContentPlaceHolder1_btnPrev' of type 'Button' must be placed inside a form tag with runat=server." so i add the code in content page's load event
System.IO.StringWriter stringwriter = new System.IO.StringWriter();<br />
System.Web.UI.HtmlTextWriter htmlwriter = new System.Web.UI.HtmlTextWriter(stringwriter);<br />
this.pnl1.RenderControl(htmlwriter);<br />
string s = stringwriter.ToString();<br />
public override void VerifyRenderingInServerForm(Control control)<br />
{<br />
return;<br />
}<br />
EnableEventValidation="false"....now its working but the problem is this..the click-event of the buttons of content page are not working...please someone help
|
|
|
|
|
You lose viewstate when you add dynamic controls, unless you do it before page_load. You'd do better to fix your tag so that it works when placed in the content page. Your content was obviously broken or you would not have got an error
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
but i have done...<%@ Page Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" EnableViewState="true" CodeFile="Default2.aspx.cs" Inherits="Default2" Title="Untitled Page" EnableEventValidation="false" %> ..still my button click event is not working...please help
|
|
|
|
|
hi,
I want to display a datagrid sub columns in each column as follows...
example
---------------------------------------------------------------
date | 1 | 2 | 3 | 4 | 5 |
---------------------------------------------------------------
|in | out| in |out | in |out | in| out| |
---------------------------------------------------------------
Name | | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
Please help me thanks in advance
|
|
|
|
|
To display first row use simple html table having span of two columns of Datagrid...
Thanks & Regards...
Amit
|
|
|
|
|
??
do you think this can solve the purpose ?
Ashish Sehajpal
|
|
|
|
|
Can you give solution in detail.?
regards
sam asir
|
|
|
|
|
Hi all,
please let me know any one knows the rgular expresstion to ristrict the string format of Url type:
1)http:\\www,goog.com.......
2)wwww.google.com..........
3http://www.codeproject.com/script/Forums/Edit.aspx.............
the expresstion which does not accept the Any specal charectes at last continously.
Thanks And Regards,
Guru
|
|
|
|
|
There's this helpful website regexplib.com[^] which i'm sure contains loads of examples to help you out.
|
|
|
|
|
hi everyone ..
i hve a small requiremnt inmy application. i need to enalarge images that are retrieved from the database dynamically(i am working on matrimaonal kind of site) when the image is pointed upon by the mouse..
would be really happy for ur reply..
thank u
regards
rack.
rack
|
|
|
|
|
Check this out
Its not dynamic code but as long as the code displaying the image from the database is you cna just use this get around it:
http://www.dynamicdrive.com/style/csslibrary/item/css-popup-image-viewer/
|
|
|
|
|
hi thank u very much for ur reply..
i want tu retreive the images from database so what sould i write in
"
thank u!!
rack
|
|
|
|
|
hi
i think my mail has just got distrbed ..
wat should write in "Src=...." if at all i want to display the images present in a database..
thank u
rack
|
|
|
|
|
can u please tel me wat should be written in " Src=..." if i have to display images from database..
thank u
|
|
|
|
|
Why did you ask this over and over ?
You need to write a HTTP Handler that pushes out the bytes of the bitmap from the DB. It would typically take the id of the image in the DB on the URL, read it and then do a BinaryWRite of the data. Your src tag would contain the URL that loads the image from the DB
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello everyone.
I have a little application in which there are some main pages, and some detail pages for each main page.
in the detail page there is a button which gets you back to one of the main pages.
the main page, in the OnLoad method, there is a method which saves the page thet led you there (using HttpRequest.UrlReferrer).
I need the main page not to store the urlreferrer of the detail page, passing null as urlreferrer value.
I know javascript does this, but for some reason i cannot use it - and i am forced to do everything server-side.
Is there some method which sends you to one page, without passing its own url?
I googled about it and found lots of pages about people complaining that Response.redirect has this behaviour. I tried, and to my dismay, found that in my application works flawlessly - that is NOT what i want. I need Response.redirect NOT to work, thus passing null as the HttpRequest.UrlReferrer value.
I know this is at least confusing, but please try and see if you can give me an hand.
Thanks in advance.
Rey9999
~~~ From Milano to The Hague, easy as it goes ~~~
|
|
|
|
|
This looks odd. Changing the value sent on referrer can't be done AFAIK. BTW, why you need such a solution ?
|
|
|
|
|
N a v a n e e t h wrote: BTW, why you need such a solution ?
It is a long story....
Anyway, i do not need to change it. I just need it to be null, and i know there are some situation in which HttpRequest.UrlReferrer is null.
Example:
typing a new url in the address bar
using browser history
using javascript...
I need something like that, just server-side. I read around that Response.Redirect has sometimes this behaviour, but not in my case.
Any ideas?
~~~ From Milano to The Hague, easy as it goes ~~~
|
|
|
|