473,396 Members | 1,814 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 get DocTitle from aspx master pages ?

I posted this back in November 2005 a couple times but did not get any
responses. I'm hoping someone here can please shed some light on this.

I'm new to index server and can't get any DocTitle value back from index
server (it is returned as null) for all my aspx pages. It do get the values
from inside the <title> tags from my static .htm pages just fine.

My aspx pages however are generated from master pages where the title tag is
set dynamically at run-time. So, it seens like index server is just
indexing my raw .aspx and .cs.aspx pages instead of actually first running
the .aspx page to get its fully rendered content at runtime and then index
that resulting page.

How can I get index server to actually execute my aspx pages like a browser
would request the pages so that it can see the real, dynamically generated
content and index that, and pick up the title tag value for DocTitle?

A few of us were asking this in the index server group but no one there has
ideas. Since I assume many of you are using master pages and run into this
same thing with indexing aspx pages I thought perhaps you'd have some ideas
to share. In case it matters I am running VS.NET 2005 ASP.NET 2.0 on Win2k3
server and IIS 6. Thanks!!

--- Mike
Feb 19 '06 #1
3 1522
I'm running into the same problem. Index server doesn't seem to be a good
solution because it is file-based.

The best way seems to be to spider your own site "Google style". I'm looking
at an article here on doing that:

http://www.codeproject.com/aspnet/Spideroo.asp

Ken
MVP [ASP.NET]

"Mike Dee" <x@x.com> wrote in message
news:dM********************@comcast.com...
I posted this back in November 2005 a couple times but did not get any
responses. I'm hoping someone here can please shed some light on this.

I'm new to index server and can't get any DocTitle value back from index
server (it is returned as null) for all my aspx pages. It do get the
values from inside the <title> tags from my static .htm pages just fine.

My aspx pages however are generated from master pages where the title tag
is set dynamically at run-time. So, it seens like index server is just
indexing my raw .aspx and .cs.aspx pages instead of actually first running
the .aspx page to get its fully rendered content at runtime and then index
that resulting page.

How can I get index server to actually execute my aspx pages like a
browser would request the pages so that it can see the real, dynamically
generated
content and index that, and pick up the title tag value for DocTitle?

A few of us were asking this in the index server group but no one there
has ideas. Since I assume many of you are using master pages and run into
this same thing with indexing aspx pages I thought perhaps you'd have some
ideas to share. In case it matters I am running VS.NET 2005 ASP.NET 2.0
on Win2k3 server and IIS 6. Thanks!!

--- Mike

Feb 19 '06 #2
aspx pages are indexed using the html ifilter. It can index content it sees
within the html title tags and you can return this using the DocTitle
property. If you want it to index dynamically generated content you must
write your own ifilter and register this with the aspx extension. Another
option is to use something with will connect to your web site and generate
the rendered apsx files and store them in the file system and then have the
html iFilter index them there. You will probably have to do some resolution
back to the original apsx pages however.

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com

"Mike Dee" <x@x.com> wrote in message
news:dM********************@comcast.com...
I posted this back in November 2005 a couple times but did not get any
responses. I'm hoping someone here can please shed some light on this.

I'm new to index server and can't get any DocTitle value back from index
server (it is returned as null) for all my aspx pages. It do get the
values from inside the <title> tags from my static .htm pages just fine.

My aspx pages however are generated from master pages where the title tag
is set dynamically at run-time. So, it seens like index server is just
indexing my raw .aspx and .cs.aspx pages instead of actually first running
the .aspx page to get its fully rendered content at runtime and then index
that resulting page.

How can I get index server to actually execute my aspx pages like a
browser would request the pages so that it can see the real, dynamically
generated
content and index that, and pick up the title tag value for DocTitle?

A few of us were asking this in the index server group but no one there
has ideas. Since I assume many of you are using master pages and run into
this same thing with indexing aspx pages I thought perhaps you'd have some
ideas to share. In case it matters I am running VS.NET 2005 ASP.NET 2.0
on Win2k3 server and IIS 6. Thanks!!

--- Mike

Feb 19 '06 #3
Hilary,

Thanks - but here's the part I'm not following... You say it can index
content it see within the html title tags. However in an ASP.NET page that
uses MasterPages, there is no hard coded title in the html. Instead there
is a Title property defined which is set in the code behind. So then I
assume this is not possible?

This is really mind boggling how something like Index Server that is
supposed to be so well coupled with IIS/ASP.NET cannot perform such a basic
function.

Certainly with the spread of ASP.NET 2 and MasterPages there must be a ton
of developers that have run into this issue. I would really like to know
how folks are going about solving this.

Thanks!

--- Mike

"Hilary Cotter" <hi***********@gmail.com> wrote in message
news:uY**************@TK2MSFTNGP12.phx.gbl...
aspx pages are indexed using the html ifilter. It can index content it
sees within the html title tags and you can return this using the DocTitle
property.

Mar 25 '06 #4

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

Similar topics

7
by: J Smithers | last post by:
I have several ASPX pages (with code-behind logic) that I reuse amongst many Web sites on the same production server. Currently each Web site has its own copy of these aspx pages. I was thinking...
1
by: Carl Gilbert | last post by:
Hi I am trying to get a site working with some 1&1 web space. I have the MS Business Pro account which has ASP.NET Support and SQL Server. I am trying to get an online gallery to work but I...
8
by: Thomas Coleman | last post by:
Ok, I've obviously discovered that Global.aspx has been completely changed in ..NET 2.0. However, I haven't figured out how to declare a constant that's available to any page in my application...
4
by: ¿ Mahesh Kumar | last post by:
Hi groups, I'm following Master page concept of ASP.NET 2.0, in which I'm deriving all the following page from master page for Theme. So unfortunately i'm dont get any Form Tag in my derived...
0
by: Mike Dee | last post by:
I'm new to index server and can't get any DocTitle value back from index server (it is returned as null) for all my aspx pages. It do get the values from inside the <title> tags from my static...
0
by: Joey | last post by:
I have a web app that contains several subfolders. In one of them, I have a page set up as "Default.aspx", so users can hit it just by typing the directory name in the browser address bar (example:...
13
by: Matt | last post by:
Does anyone know how to hide the ASPX extension of web pages in ASP.Net 2.0? Thanks, Matt
4
by: VB Programmer | last post by:
My client wants to be able to have unlimited pages in his website and I'm making an "admin interface" for him to add and remove pages. (He will use Macromedia Contribute to modify the content of...
7
by: iguana84 | last post by:
Hi, I have a newbie question for (ASP.Net 2.0 framework) which is based on Design Pattern / Coding Trick --> I need to :- - Inherit one aspx page and its code (super abstract class)...
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: 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
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.