473,386 Members | 1,886 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Getting SelectedIndexChanged to fire again

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
1 1062
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: sandman | last post by:
I've got a combo box that has an event handler set for SelectedIndexChanged event. The problem is that it's firing at startup when I load data from the Form_OnLoad event. I tried setting a flag...
0
by: PeacError | last post by:
Using Microsoft Visual Studio .NET 2003, Visual C# .NET 1.1: I apologize if this question has been addressed elsewhere, but I could not find a reference to it in the search engine for this...
2
by: Geordie | last post by:
I was wondering what capabilities ASP.Net has at the client level. I have been using a RadioButtonList. My control and additional textboxes look like this: o See item number o See...
0
by: tafpin | last post by:
I have an application with a datagrid. In the IDE I have 2 template columns. The first has an image button and the second contains a link button. According to the results that I get back I must...
2
by: A-PK | last post by:
Could someone guide me why "SelectedIndexChanged" always trigger event twice I tried to put a simple messagebox.show("test") there. but always poping up twice messagebox. please guide me.
2
by: Chris Davoli | last post by:
I have a problem where my SelectedIndexChanged on a drop down will fire sporadically. When it won't fire, I go into Debug and set a break point on the SelectedIndexChanged event, it will then fire...
1
by: kevin | last post by:
Hi, I'm working with VS 2005 and Framework 2.0 I have a datagrid with a link and the selectedindexchanged will not fire. The page posts back but does nothing. Protected Sub...
3
by: martin1 | last post by:
Hi, All, I want user select first item (called All) in listbox, then all other items are selected by SetSelected method, but in loop (see code below) whenever going to SetSelected(), the...
4
by: lakepeir | last post by:
Hello, I have combobox with a selectedindexchanged method that seems to be called when starting the application, launching the form with the combobox and making a change in the drop down box of...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.