IIS Index Server - How to get DocTitle from aspx master pages ?

This is Interesting: Free IT Magazines  
Home > Archive > IIS Index Server > February 2006 > How to get DocTitle from aspx master pages ?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to get DocTitle from aspx master pages ?
Mike Dee

2006-02-19, 10:32 am

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


Ken Cox - Microsoft MVP

2006-02-19, 5:50 pm

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:dMmdneCa-e76E2XeRVn-ug@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
>
>



Hilary Cotter

2006-02-19, 5:50 pm

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:dMmdneCa-e76E2XeRVn-ug@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
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com