Re: Question

From: ksayal (ksayal_at_discussions.microsoft.com)
Date: 06/22/04


Date: Tue, 22 Jun 2004 07:08:01 -0700

Hi Steven,

Actually here is what i want to do....

Our site is a newspaper site. Only subscribed users can view the top 10
articles. These top ten articles are shown on the index page with a little
description. When a user clicks the article, the page first looks for the
cookie if a cookie is set then it redirects to the story page (supposedly).

My problem is it checks for the cookie, reads the cookie but when it has to
redirect, i don't know what server variable to use. If i use
("SCRIPT_NAME"), it brings to the topnewss.aspx page whereas this page is
holding the stories postings. However i want it to redirect to
/nr/exeres/GUID.htm page. Any ideas how i can i do that???

Thanks,
Kulwinder

"Steven Spits" wrote:

> "ksayal" wrote:
>
> > Can you please help me how to do in a postback. How do I identify the
> item
> > to set a hidden form field from client-side Javascript with the value of
> the link?
>
> Why do you need to set a hidden field?
>
> You write "link". Do you mean the LinkButton webcontrol? If so, you can
> write code in the Click-event of your control and work with the value
> there...
>
> Steven
>
> - - -
>
>
>