Hi Paul,

What's wrong with that integer?
What about using an hashtable-structure instead? Would it be possible,
giving your requirements?

--
Efran Cobisi
http://www.cobisi.com

Paul Cowan wrote:
Hi,

I have a flowing quandary that I am struggling with.  The long and the short of 
it is that we have the usual mix of static and dynamic pages for our ASP.NET 
2.0 web site.

What we need is a way of identifying each page on the site.  The dynamic pages 
do not really worry me.  What I would like to do is be able to identify each 
page with an int.

The first thing that sprung to mind was:

Request.Url.GetHashCode();

This unfortunately brings back:

-81369726

For the folloiwng URL:

http://localhost/ak/misc/sendtoafriend.aspx

Can anyone think of a better way to generate a unique integer which we can tag 
our pages with?  The only thing really unique is the url.

Thanks
[EMAIL PROTECTED]
_________________________________________________________________
Try Live.com - your fast, personalised homepage with all the things you care 
about in one place.
http://www.live.com/?mkt=en-gb
===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com


===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to