R
Rich
Is there anything wrong with the following statements?
private void btnFindCustomer_Click(object sender, System.EventArgs e)
{
storeSettings();
}
private void storeSettings()
{
Session["receivedByIndex"] = ddlReceivedBy.SelectedIndex;
}
When the page reloads after the user has clicked the button btnFindCustomer
the session object variable "receivedByIndex" is not set to an instance of
object.
Its as if the page reloads after clicking the button before the call to the
method storeSettings(), is this how its supposed to behave?
If this is the case how can I force my objects to be stored after clicking a
button before the page posts back so that I can reload them after the past
back?
Thanks
Rich.
private void btnFindCustomer_Click(object sender, System.EventArgs e)
{
storeSettings();
}
private void storeSettings()
{
Session["receivedByIndex"] = ddlReceivedBy.SelectedIndex;
}
When the page reloads after the user has clicked the button btnFindCustomer
the session object variable "receivedByIndex" is not set to an instance of
object.
Its as if the page reloads after clicking the button before the call to the
method storeSettings(), is this how its supposed to behave?
If this is the case how can I force my objects to be stored after clicking a
button before the page posts back so that I can reload them after the past
back?
Thanks
Rich.