Monday, March 26, 2012

Why my ListBox Control in my Web Control is not Raising the Se

TheListBox.Attributes.Add("AutoPostBack","true") ;
Will add an "AutoPostBack" Attrubute to the rendered oupput of your control,
but will not set this property of the control.
try:
TheListBox.AutoPostBack=true
TheListBox.Attributes.Add("id","ListBoxCheck") ;
TheListBox.OnSelectedIndexChanged +=new
EventHandlerTheListBox_SelectedIndexChan
ged);
Hope this helps.
BrianThanks a lot Brian it worked.
"bchandley" <Bchan3@.yahoo-.-com> wrote in message
news:601A2E63-1113-4C3D-8E5E-9779755A4F27@.microsoft.com...
> TheListBox.Attributes.Add("AutoPostBack","true") ;
> Will add an "AutoPostBack" Attrubute to the rendered oupput of your
> control,
> but will not set this property of the control.
> try:
> TheListBox.AutoPostBack=true
> TheListBox.Attributes.Add("id","ListBoxCheck") ;
> TheListBox.OnSelectedIndexChanged +=new
> EventHandlerTheListBox_SelectedIndexChan
ged);
>
> Hope this helps.
> Brian

0 comments:

Post a Comment