Click here to Skip to main content
15,906,333 members
Home / Discussions / C#
   

C#

 
GeneralRe: AcitveX equivalent in C# ? Pin
Heath Stewart6-May-04 10:26
protectorHeath Stewart6-May-04 10:26 
AnswerRe: AcitveX equivalent in C# ? Pin
TigerNinja_6-May-04 9:09
TigerNinja_6-May-04 9:09 
GeneralSound- Two Events at a time Pin
MeterMan6-May-04 8:14
MeterMan6-May-04 8:14 
GeneralRe: Sound- Two Events at a time Pin
Heath Stewart6-May-04 8:29
protectorHeath Stewart6-May-04 8:29 
GeneralRe: Sound- Two Events at a time Pin
MeterMan6-May-04 12:15
MeterMan6-May-04 12:15 
GeneralRe: Sound- Two Events at a time Pin
Heath Stewart6-May-04 17:53
protectorHeath Stewart6-May-04 17:53 
GeneralRe: Sound- Two Events at a time Pin
MeterMan6-May-04 17:58
MeterMan6-May-04 17:58 
GeneralRe: Sound- Two Events at a time Pin
Heath Stewart6-May-04 18:01
protectorHeath Stewart6-May-04 18:01 
GeneralRe: Sound- Two Events at a time Pin
MeterMan6-May-04 13:25
MeterMan6-May-04 13:25 
GeneralRe: Sound- Two Events at a time Pin
Heath Stewart6-May-04 17:57
protectorHeath Stewart6-May-04 17:57 
GeneralRe: Sound- Two Events at a time Pin
MeterMan6-May-04 19:46
MeterMan6-May-04 19:46 
GeneralRe: Sound- Two Events at a time Pin
Heath Stewart7-May-04 3:08
protectorHeath Stewart7-May-04 3:08 
GeneralDiffgram Updates Pin
MrJJKoolJ6-May-04 7:31
MrJJKoolJ6-May-04 7:31 
GeneralRe: Diffgram Updates Pin
Mazdak6-May-04 7:45
Mazdak6-May-04 7:45 
GeneralRe: Diffgram Updates Pin
MrJJKoolJ6-May-04 8:30
MrJJKoolJ6-May-04 8:30 
GeneralRe: Diffgram Updates Pin
Mazdak6-May-04 8:36
Mazdak6-May-04 8:36 
Generalphp request Pin
Alex Getman6-May-04 6:09
Alex Getman6-May-04 6:09 
GeneralRe: php request Pin
Heath Stewart6-May-04 8:02
protectorHeath Stewart6-May-04 8:02 
GeneralRe: php request Pin
leppie6-May-04 9:13
leppie6-May-04 9:13 
GeneralRe: php request Pin
Alex Getman6-May-04 10:15
Alex Getman6-May-04 10:15 
GeneralRe: php request Pin
Heath Stewart6-May-04 10:24
protectorHeath Stewart6-May-04 10:24 
QuestionPassing Parameters using OnSelectedIndexChanged? Pin
stan286-May-04 6:07
stan286-May-04 6:07 
I am trying to pass a parameter to one of the OnSelectedIndexChanged events. Is this even possible ?
Code-Behind is C#.

Here's the Front-End Sample..
<asp:dropdownlist autopostback="True" id="SomeID" runat="server" onselectedindexchanged="ChangeIndex">

Here's What I want to achieved..
<asp:dropdownlist autopostback="True" id="SomeID" runat="server" onselectedindexchanged="ChangeIndex(1)">

So my method is ChangedIndex. Usually, if i leave it as is,
it will work. But I'm trying to make a generic function that
can be use for all.

Code-Behind.
public void ChangeIndex(object sender, EventArgs e)
{
do some stuff..
}
this works, but no parameters.

I tried:-
public void ChangeIndex(int i_temp)
{
do some stuff..
}
this gave me error.

Any sample syntax is appreciated. Confused | :confused:

Stanley
AnswerRe: Passing Parameters using OnSelectedIndexChanged? Pin
Mazdak6-May-04 6:57
Mazdak6-May-04 6:57 
GeneralRe: Passing Parameters using OnSelectedIndexChanged? Pin
leppie6-May-04 9:15
leppie6-May-04 9:15 
GeneralRe: Passing Parameters using OnSelectedIndexChanged? Pin
stan286-May-04 9:18
stan286-May-04 9:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.