473,396 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to build a site search in ASP.Net 2.0?

Hi,

I was used to build site search from page's <meta ... description ...and
other <meta ...>. Now there's a site using MasterPage and those pages as
content have no <meta>. Is there a nice way to do the same job?

Thanks
Mar 6 '07 #1
4 1205
"Keven" <ke***@home.nlwrote in message
news:OF**************@TK2MSFTNGP05.phx.gbl...
I was used to build site search from page's <meta ... description ...and
other <meta ...>. Now there's a site using MasterPage and those pages as
content have no <meta>. Is there a nice way to do the same job?
1) Put the meta tags in the MasterPage's <headersection

or

2) Add the meta tags programmatically:
http://www.yafla.com/dennisforbes/Ma...-NET-v2-0.html
Mar 6 '07 #2
Thanks!
if so, lots page share one MasterPage and how do I get each page's <meta>.

After search for a while, I found a nice free class on
http://www.simplydll.net/aspnet/SearchSiteMap.aspx
which search the Title and Description, and even support securityTrimming,
not bad idea

"Mark Rae" <ma**@markNOSPAMrae.comдÈëÏûÏ¢ÐÂÎÅ:Oj************ **@TK2MSFTNGP05.phx.gbl...
"Keven" <ke***@home.nlwrote in message
news:OF**************@TK2MSFTNGP05.phx.gbl...
>I was used to build site search from page's <meta ... description ...>
and other <meta ...>. Now there's a site using MasterPage and those pages
as content have no <meta>. Is there a nice way to do the same job?

1) Put the meta tags in the MasterPage's <headersection

or

2) Add the meta tags programmatically:
http://www.yafla.com/dennisforbes/Ma...-NET-v2-0.html

Mar 6 '07 #3
Thanks!
if so, lots page share one MasterPage and how do I get each page's <meta>.

After search for a while, I found a nice free class on
http://www.simplydll.net/aspnet/SearchSiteMap.aspx
which search the Title and Description, and even support securityTrimming,
not bad idea

"Mark Rae" <ma**@markNOSPAMrae.comдÈëÏûÏ¢ÐÂÎÅ:Oj************ **@TK2MSFTNGP05.phx.gbl...
"Keven" <ke***@home.nlwrote in message
news:OF**************@TK2MSFTNGP05.phx.gbl...
>I was used to build site search from page's <meta ... description ...>
and other <meta ...>. Now there's a site using MasterPage and those pages
as content have no <meta>. Is there a nice way to do the same job?

1) Put the meta tags in the MasterPage's <headersection

or

2) Add the meta tags programmatically:
http://www.yafla.com/dennisforbes/Ma...-NET-v2-0.html


Mar 6 '07 #4
"Keven" <ke***@home.nlwrote in message
news:eF**************@TK2MSFTNGP06.phx.gbl...
if so, lots page share one MasterPage
That's right - that's the whole point of a MasterPage - that was suggestion
1) below...
and how do I get each page's <meta>.
ContentPages don't have a <headersection - that's why if you need
different meta tags when individual content pages are built, you need to
program it - that was suggestion 2) below...
>1) Put the meta tags in the MasterPage's <headersection

or

2) Add the meta tags programmatically:
http://www.yafla.com/dennisforbes/Ma...-NET-v2-0.html


Mar 6 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: JP SIngh | last post by:
Hi There I am creating a search page and need help writing the code to build the sql string. I have 3 fields on the main page which a user can choose to enter search terms in any of the 3...
3
by: Carol | last post by:
What's the best way to do a site search of my site? I am using asp and access heavily on a regular ISP google? Or write a bunch of queries? what else is there?
1
by: D. Lee Christopher | last post by:
Can anyone point me to a good tutorial for creating a site-level search applet? I am trying to create a virtual catalog of sorts, and I would like to be able to search the catalog and have the...
0
by: Rob Young | last post by:
This is the latest in the "Total Non-Programmer" series. Any feedback on the usability of this tutorial would be greatly appreciated. Thanks, Rob How to Build A Web Database (Without...
1
by: David Alloza | last post by:
Hello, I have exactly the same problem as this guy, but in the case of a ( final ) commercial version of .NET2005. ...
71
by: Murray R. Van Luyn | last post by:
Hi, Since I have made changes to my website it's been a complete flop. According to the logs, as soon as visitors have downloaded the index page they are off. I can't figure out why? ...
1
by: Keven | last post by:
Hi, I was used to build site search from page's <meta ... description ...and other <meta ...>. Now there's a site using MasterPage and those pages as content have no <meta>. Is there a nice way...
5
by: eranshuman | last post by:
Hi, I m very new to perl I m running an API which have the Buil.pl When Im compiling using perl Build.pl I was getting error : Can't locate Module/Build.pm in @INC (@INC contains:...
25
by: pereges | last post by:
Hello, I'm trying to build a database driven website for a library management system. The database is stored on a remote server which all of my team mates can access. I've installed MySQL, PHP and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.