By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,678 Members | 2,402 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,678 IT Pros & Developers. It's quick & easy.

Getting SelectedIndexChanged to fire again

P: n/a
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
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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,EventArg s.Empty);

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


"]-[aTc]-[" <ha**********@hotmail.com> wrote in message
news:ua***************@TK2MSFTNGP11.phx.gbl...
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

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.