Ok this is what I understood, but I don't think it's a good solution, because I have to manually add a asp:RadioButton* in checkoutshipping.aspx
anyway, this is just an idea..
in checkoutshipping.aspx I added:
Code:
<asp:RadioButton GroupName="ShippingMethodID" ID="ShippingMethodID3" runat="server" AutoPostBack="true" />
<asp:Panel ID="pnlPickup" runat="server" Visible="false">
<asp:Literal ID="pickup" runat="server" Mode="passThrough"></asp:Literal>
</asp:Panel>
in the codebehind:
Code:
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
private void InitializeComponent()
{
ShippingMethodID3.CheckedChanged += new EventHandler(ShippingMethodID3_CheckedChanged);
ShippingMethodID3.Text = "my radio button";
pickup.Text = "<div style=\"float:left; margin-left:20px; margin-bottom:20px; padding:10px; width:50%; background-color:#cfdde8\">" +
"<p>hi i\'m here asdasd</p><p>hi i'm here asdasd</p><p>hi i'm here asdasd</p><p>hi i'm here asdasd</p><p>hi i'm here asdasd</p><p>hi i'm here asdasd</p><p>hi i'm here asdasd</p><p>hi i'm here asdasd</p>" +
"</div>";
}
void ShippingMethodID3_CheckedChanged(object sender, EventArgs e)
{
pnlPickup.Visible = true;
}
* I think this is the only way, since looking at checkoutpayment.aspx I see that all the payment options are declared manually, then from the codebehind you set the ones you want to be visible.. right?
Any further idea will be appreciated.. Thanks!