Click here to Skip to main content
15,892,697 members
Home / Discussions / C#
   

C#

 
AnswerRe: wpf help Pin
John_Adams7-Aug-08 20:12
John_Adams7-Aug-08 20:12 
QuestionCould I index controls? Pin
blackhattrick7-Aug-08 15:31
blackhattrick7-Aug-08 15:31 
AnswerRe: Could I index controls? Pin
teejayem7-Aug-08 16:23
teejayem7-Aug-08 16:23 
AnswerRe: Could I index controls? Pin
User 66587-Aug-08 21:27
User 66587-Aug-08 21:27 
AnswerRe: Could I index controls? Pin
blackhattrick8-Aug-08 15:20
blackhattrick8-Aug-08 15:20 
QuestionSeraching in XML by LINQ ? Pin
Mohammad Dayyan7-Aug-08 15:27
Mohammad Dayyan7-Aug-08 15:27 
AnswerRe: Seraching in XML by LINQ ? Pin
teejayem7-Aug-08 16:24
teejayem7-Aug-08 16:24 
Generalcustom control dropdownlist autopostback event not firing Options Pin
leon_yoo7-Aug-08 14:38
leon_yoo7-Aug-08 14:38 
Hi

I have a custom control which encapsulates a dropdownlist and label.
when you select an item from the dropdownlist it should autopostback
and change the lable text. But postback (selectionchanged) event is
not working at all.
Here is my code.


protected override void RenderContents(HtmlTextWriter output)
{
this.buildControl(output);
}


private void buildControl(HtmlTextWriter output)
{
Table currencyConverterTable = new Table();
// add a label


// here I am adding a dropdownlist
dropdownlist currencySelector= new dropdownlist();
currencySelector.DataSource = mydatasource;
currencySelector.DataTextField = "CurrencyCode";
currencySelector.DataValueField = "id";
currencySelector.DataBind();
currencySelector.AutoPostBack = true;
currencySelector.SelectedIndexChanged += new
EventHandler(OnSelectedChanged);


// add this dropdownlist to the table


// now render it
currencyConverterTable.RenderControl(output);
}


Shouldn't OnSelectedChanged event be fired?


Thanks,


Toby
QuestionWhat's the difference between the two? Pin
Silvyster7-Aug-08 14:37
Silvyster7-Aug-08 14:37 
AnswerRe: What's the difference between the two? Pin
Gideon Engelberth7-Aug-08 15:22
Gideon Engelberth7-Aug-08 15:22 
QuestionQueue using c# Pin
Angelinna7-Aug-08 14:26
Angelinna7-Aug-08 14:26 
AnswerRe: Queue using c# Pin
The Only Nock7-Aug-08 14:41
The Only Nock7-Aug-08 14:41 
GeneralRe: Queue using c# Pin
Angelinna7-Aug-08 22:21
Angelinna7-Aug-08 22:21 
AnswerRe: Queue using c# Pin
Alan Balkany8-Aug-08 7:59
Alan Balkany8-Aug-08 7:59 
Questiondatagridview currentrow Pin
nelsonpaixao7-Aug-08 12:29
nelsonpaixao7-Aug-08 12:29 
QuestionReading/Writing Cookies Pin
dbrenth7-Aug-08 10:48
dbrenth7-Aug-08 10:48 
QuestionInserting html into mssql error Pin
phil_mob7-Aug-08 10:40
phil_mob7-Aug-08 10:40 
AnswerRe: Inserting html into mssql error Pin
Colin Angus Mackay7-Aug-08 13:06
Colin Angus Mackay7-Aug-08 13:06 
AnswerRe: Inserting html into mssql error Pin
Guffa7-Aug-08 13:38
Guffa7-Aug-08 13:38 
QuestionWhen binding to a DataGridView ComboBox I always get this error message!? Pin
tkrn7-Aug-08 10:27
tkrn7-Aug-08 10:27 
AnswerRe: When binding to a DataGridView ComboBox I always get this error message!? Pin
SomeGuyThatIsMe7-Aug-08 10:39
SomeGuyThatIsMe7-Aug-08 10:39 
AnswerRe: When binding to a DataGridView ComboBox I always get this error message!? Pin
tkrn8-Aug-08 7:32
tkrn8-Aug-08 7:32 
QuestionAPDU Pin
Stathread7-Aug-08 9:03
Stathread7-Aug-08 9:03 
AnswerRe: APDU Pin
Alaric_7-Aug-08 10:19
professionalAlaric_7-Aug-08 10:19 
QuestionSubscribing and unsubscribing from events. Pin
Steve_7-Aug-08 8:26
Steve_7-Aug-08 8:26 

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.