473,394 Members | 2,071 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,394 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 1204
"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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.