Thursday, May 20, 2004 - Posts

Search enginen problem/help?!?

Hey all,

So i have my urls in the right way for a spider search engine like google and all works pritty good one problem i have now is what kind of a search engine should i use/build for the site?

I have to think about what the server can handel because it is a shared server with other sites.
My consurn is that if i use a spider engine that spiders everytime someone searches the site that this will overload the server in some kinda way. And the problem is that i can't use a crawler because that won't find all the products, brands and categorys.So the last kinda engine i could build is a database driven one.

Problem with the last one is i don't have a clou how to make a good one that indexs words in a good way and then there is still the part of letting it only search thru products or brands or categorys.

Anyway if someone has a good idee that could help me for a search engine give me a mail/comment :D

Here are 2 links about the way to build a search engine:

Hope some one can help :D

Happy Netting

ItemDataBound stupid mistake between e.Item.ItemIndex and e.Item.DataSetIndex

Hi there :)

Ok yet again a small problem :(
I had a very nice datagrid with info in it a ItemDataBound to show the pricture the right way and it was great :D
But then there came the evil paging *i was scared* and when i went to page to the images wheren't right anymore!!
There was no darn reson i could find.......
The code with the error:
private void DataGrid1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if(e.Item.ItemIndex >= 0)
{
string ID = dataSetProduct1.product[e.Item.ItemIndex].productID.ToString();
HyperLink picture = e.Item.FindControl("img_product") as HyperLink;
picture.ImageUrl = string.Format("/Picture/Product/Tumb/{0}.jpg",ID);
}
}

And then i found the problem it was e.Item.ItemIndex dam wat was i stupid the problem was that i looked at the row of the datalist and not to the row of the dataset witch can be gotten by using e.Item.DataSetIndex and now i works like a speed ass again :p
private void DataGrid1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if(e.Item.ItemIndex >= 0)
{
string ID = dataSetProduct1.product[e.Item.DataSetIndex].productID.ToString();
HyperLink picture = e.Item.FindControl("img_product") as HyperLink;
picture.ImageUrl = string.Format("/Picture/Product/Tumb/{0}.jpg",ID);
}
}

Happy Netting