Getting SelectedIndexChanged to fire again

  • Thread starter Thread starter ]-[aTc]-[
  • Start date Start date
A

]-[aTc]-[

How do I fire a
private void myTabStrip_SelectedIndexChange(object sender, System.EventArgs
e) to fire again?

I have a post back to my if statment and i have this ...

if(Request["contactID"] != null)

{

divContact.Attributes["class"] = "ShowContact";

myTabStrip.SelectedIndex = 1;


}

I need to have this fire again with the index of 1 to refresh that data
grid.

Thanks

--Mike
 
Hi,

it is a method, you can call it yourself (setting index in code won't
usually raise the event unless databinding or going through postback)

myTabStrip.SelectedIndexChange(myTabStrip,EventArgs.Empty);

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist




How do I fire a
private void myTabStrip_SelectedIndexChange(object sender, System.EventArgs
e) to fire again?

I have a post back to my if statment and i have this ...

if(Request["contactID"] != null)

{

divContact.Attributes["class"] = "ShowContact";

myTabStrip.SelectedIndex = 1;


}

I need to have this fire again with the index of 1 to refresh that data
grid.

Thanks

--Mike
 
Back
Top