Hi paul2811,
This requirement is not difficult, but its description is not clear enough for me. I write a simple demo for you. It may not exactly meet your request, but the logic is the same. I hope it is helpful to you.
***************************
First.aspx
<div>
<asp:RadioButtonList ID="RadioButtonList1" runat="server" Style="position: static">
<asp:ListItem Value="msdn">msdn</asp:ListItem>
<asp:ListItem Value="msn">msn</asp:ListItem>
<asp:ListItem Value="asp.net">asp.net</asp:ListItem>
</asp:RadioButtonList>
<asp:Button ID="Button1" PostBackUrl="~/second.aspx" runat="server" Style="position: static" Text="Button" />
</div>
***************************
Second.aspx
<div>
<asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
</div>
Second.aspx.cs
protected void Page_Load(object sender, EventArgs e)
{
if (PreviousPage != null)
{
RadioButtonList rbl = (RadioButtonList)PreviousPage.FindControl("RadioButtonList1");
switch(rbl.SelectedValue)
{
case "msdn":
HyperLink li = new HyperLink();
li.ID = "HyperLink1";
li.Text = "Microsoft MSDN";
li.NavigateUrl = "http://msdn.com";
PlaceHolder1.Controls.Add(li);
break;
case "msn":
break;
case "asp.net":
break;
}
}
}
Sincerely,
Benson Yu
Microsoft Online Community Support
Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.