D
Dominic Godin
Hi,
I have a some radio buttons on a aspx page that cause a post back. I
need to get the checked status in the page_init event handler. However
it seems that the checked status is only updated after the page_init
event. Any way I can get arround this?
I'll give a quick example in C#. These two methods are fired when I
check the radio button radioBtnExample
void Page_Init(Object sender, EventArgs e)
{
// false here
bool buttonState = radioBtnExample.Checked;
SetUpDataGridColumns(buttonState);
}
private void radioBtnExample_CheckedChanged(object sender,
System.EventArgs e)
{
// true here
bool buttonState = radioBtnExample.Checked;
BindDataToDataGrid(buttonState);
}
Any help would be most welcome
Dominic Godin
I have a some radio buttons on a aspx page that cause a post back. I
need to get the checked status in the page_init event handler. However
it seems that the checked status is only updated after the page_init
event. Any way I can get arround this?
I'll give a quick example in C#. These two methods are fired when I
check the radio button radioBtnExample
void Page_Init(Object sender, EventArgs e)
{
// false here
bool buttonState = radioBtnExample.Checked;
SetUpDataGridColumns(buttonState);
}
private void radioBtnExample_CheckedChanged(object sender,
System.EventArgs e)
{
// true here
bool buttonState = radioBtnExample.Checked;
BindDataToDataGrid(buttonState);
}
Any help would be most welcome
Dominic Godin