Hiding a template item
Posted: Thu Apr 02, 2009 7:23 am
Hello
I'm trying to figure out how to hide a text box from a product template. Here's where I'm at so far...
In BuildProductChoices I monitor the controls being added until I see the RadioButtonList I'm interested in. I then add an event handler like this
((RadioButtonList)o).AutoPostBack = true;
((RadioButtonList)o).SelectedIndexChanged += new EventHandler(ProductHelper_SelectedIndexChanged);
I then added the handler
static void ProductHelper_SelectedIndexChanged(object sender, EventArgs e){}
so now I can see the handle is getting called but I don't know how to tell which are the text boxes I want to hide. I'm able to get the InputFieldId from ac_InputFields. But now I'm stuck
How can I find the control I need hide based on InputFieldId?
Thanks!
I'm trying to figure out how to hide a text box from a product template. Here's where I'm at so far...
In BuildProductChoices I monitor the controls being added until I see the RadioButtonList I'm interested in. I then add an event handler like this
((RadioButtonList)o).AutoPostBack = true;
((RadioButtonList)o).SelectedIndexChanged += new EventHandler(ProductHelper_SelectedIndexChanged);
I then added the handler
static void ProductHelper_SelectedIndexChanged(object sender, EventArgs e){}
so now I can see the handle is getting called but I don't know how to tell which are the text boxes I want to hide. I'm able to get the InputFieldId from ac_InputFields. But now I'm stuck
How can I find the control I need hide based on InputFieldId?
Thanks!