V
V. Jenks
I have a RadioButtonList and an ImageButton in my form.
In the ImageButton Click event handler I'm trying to
redirect to a new page, passing the value from the
RadioButtonList in a querystring.
Why do I get a null reference when trying to get the
value of the RadioButtonList?
some code:
protected void AddToCartBttn_Click(object
sender, System.Web.UI.ImageClickEventArgs e)
{
if (Page.IsValid)
{
Response.Redirect(
String.Format(
"/
{0}/store/cart.aspx?pid={1}&poid={2}",
this.WebRoot,
this.ProductID,
ProductOptionsList.SelectedItem.Value //the
radiobuttonlist!
),
true
);
}
}
Thanks!
-v
In the ImageButton Click event handler I'm trying to
redirect to a new page, passing the value from the
RadioButtonList in a querystring.
Why do I get a null reference when trying to get the
value of the RadioButtonList?
some code:
protected void AddToCartBttn_Click(object
sender, System.Web.UI.ImageClickEventArgs e)
{
if (Page.IsValid)
{
Response.Redirect(
String.Format(
"/
{0}/store/cart.aspx?pid={1}&poid={2}",
this.WebRoot,
this.ProductID,
ProductOptionsList.SelectedItem.Value //the
radiobuttonlist!
),
true
);
}
}
Thanks!
-v