<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Classic ASP</title><link>http://forums.iis.net/1032.aspx</link><description>Problems with Classic ASP (*.asp) applications discussion</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: How to retrieve the current page's URL in vbScript?</title><link>http://forums.iis.net/thread/1906837.aspx</link><pubDate>Fri, 12 Jun 2009 22:04:03 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1906837</guid><dc:creator>x-format</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1906837.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1906837</wfw:commentRss><description>&lt;p&gt;Thank you, but after endless tries I finally got it to work by using an html file and some javascript&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to retrieve the current page's URL in vbScript?</title><link>http://forums.iis.net/thread/1906641.aspx</link><pubDate>Thu, 11 Jun 2009 17:00:04 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1906641</guid><dc:creator>tomkmvp</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1906641.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1906641</wfw:commentRss><description>&lt;p&gt;Your&amp;#39;e using vbscript in client-side script?&amp;nbsp; This is a server-side classic ASP forum ...&lt;/p&gt;
&lt;p&gt;... anyway, that webcheatsheet link shows you the correct way to get that URL in clasic ASP.&amp;nbsp; You can then mix that with your client-side script like this ...&lt;/p&gt;
&lt;p&gt;&lt;font face="courier new,courier"&gt;&amp;lt;script language = &amp;quot;vbscript&amp;quot;&amp;gt;&lt;br /&gt;a = &amp;quot;url&amp;quot;&lt;br /&gt;loc = &amp;quot;&amp;lt;%&amp;nbsp;response.write(curPageURL()) %&amp;gt;&amp;quot;&lt;br /&gt;msgbox(a &amp;amp; &amp;quot;: &amp;quot; &amp;amp; loc)&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>How to retrieve the current page's URL in vbScript?</title><link>http://forums.iis.net/thread/1906639.aspx</link><pubDate>Thu, 11 Jun 2009 15:42:01 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1906639</guid><dc:creator>x-format</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1906639.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1906639</wfw:commentRss><description>&lt;p&gt;&lt;font face="verdana,geneva"&gt;Hello!&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="verdana,geneva"&gt;I&amp;#39;m
trying to retrieve the current page&amp;#39;s URL in vbScript but whatever I do
doesn&amp;#39;t work. I&amp;#39;m new to vbScript and I created a button for IE that
will redirect me to a given url to which I&amp;#39;d like to append the current
page&amp;#39;s url.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="verdana,geneva"&gt;I&amp;#39;ve searched the
web for quite some time and I&amp;#39;ve found some &amp;#39;solutions&amp;#39; but none of
them worked. If I used a msgbox to display the URL of the current
viewed page it&amp;#39;s always empty, no matter what...&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="verdana,geneva"&gt;&amp;nbsp;I&amp;#39;ve tried this:&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="verdana,geneva"&gt;http://www.webcheatsheet.com/ASP/get_current_page_url.php&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="verdana,geneva"&gt;and this&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="verdana,geneva"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;font face="verdana,geneva"&gt;a = &lt;span class="st"&gt;&amp;quot;url&amp;quot;&lt;/span&gt;&lt;span class="st"&gt;&lt;/span&gt;&lt;/font&gt;&lt;br /&gt;loc = window.location.href&lt;br /&gt;msgbox(a &amp;amp; &lt;font face="verdana,geneva"&gt;&lt;span class="st"&gt;&amp;quot;: &amp;quot;&lt;/span&gt; &amp;amp; loc)&lt;/font&gt;&lt;/pre&gt;&lt;font face="verdana,geneva"&gt;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;p&gt;&lt;font face="verdana,geneva"&gt;&amp;nbsp;but loc variable is empty...&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="verdana,geneva"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="verdana,geneva"&gt;I
desperately need this because I have a web directory and I&amp;#39;d like to be
able to add different websites to my directory by clicking the custom
button instead of copying the url, navigate to my web directory and
submitting the url...&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="verdana,geneva"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="verdana,geneva"&gt;Please help!&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="verdana,geneva"&gt;&amp;nbsp;thank you in advance :) &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;ve posted the same message on asp.net forums but no luck...(see http://forums.asp.net/t/1434209.aspx) &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;PS&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If I use this code:&lt;/p&gt;&lt;p&gt;set shlApp = createobject(&amp;quot;shell.application&amp;quot;) &lt;br /&gt;for each wdw in shlApp.windows &lt;br /&gt;&lt;br /&gt;&amp;nbsp; Wscript.Echo wdw.locationUrl&lt;br /&gt;next &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I get all urls; is there a way to detect the current viewed (tab) page ? &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>