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
Monday, March 26, 2012
Why my ListBox Control in my Web Control is not Raising the Se
Labels:
asp,
attributes,
attrubute,
autopostback,
control,
listbox,
net,
oupput,
raising,
rendered,
thelistbox,
web
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment