There could be many ways to tackle this and we can only guess the best
one because we haven't seen the page :

1. Set the RadioButton to Autopostback and initially hide all the
hyperlinks until the page has reloaded and the URLs have been created
by server side code.

2. Build client-side Javascript that allows you dynamically change the
URL of the links on click of the radiobutton. In this case you don't
need to postback to the server.

3. As m.quinn suggested, use an AJAX based hit to the server to
refresh the contents of the Panel which contains the hyperlinks. You
could use this in conjunction with Option 1 above. This is probably
the best option if the construction of the URL's requires some sort of
external data (e.g., a database hit), thus necessitating server side
processing.

On Mar 9, 7:43 pm, "<M>" <[email protected]> wrote:
> Hi,
>
> I'm trying to resolve a problem that i'm sure has been tackled
> countless times before, but I can't seem to find the right search
> criteria to show me the previous discussions.
>
> The probblem I have is with one of my web pages. I would like the user
> to be able to select an option from a radio button group and then use
> the selected value in a whole bunch of hyperlinks also on the same
> page. My current solution (which is flawed) basically refreshes the
> page after the radio button is selected and during the refresh it
> builds the hyperlink URLs correctly. It's flawed because if the user
> clicks a radio button and then immediately clicks the link then the
> URL will still be pointing to the old target. I've considered
> LinkButtons but I think (help me out here please) that the use of
> these will incurr an additional page hop as it builds up the URL
> passes it back to the original page which in turn calls the newly
> requested page.
>
> What i'm looking for is the correct way to dynamicly build a URL at
> runtime.
>
> Any help appreciated.
>
> Mike

Reply via email to