Why is this working?

  • Thread starter Thread starter bh
  • Start date Start date
B

bh

This is really weird. I have 2 drop-down lists in a user control (.ascx).

Both have methods for "SelectedIndexChanged". However, on one of them, it
is not working, unless I set autopostback to true, which I believe to be
accurate.

For some reason, the other one is still working even though I don't have
autopostback set to true for that control. Any ideas why that would be
happening?

Thanks in advance.

bh
 
I think you will need to post the code (both the *.ascx and codebehind) in
order for anyone to help you here. Also, you may want to be a little bit
clearer about what you mean by "not working" (Does it generate the html you
expect? Does it do a postback at all? Are the selected values available if
it does postback?). What happens if you do not use AutoPostback? My first
suggestion would be to set AutoPostback to False for both DropDownLists and
see if you can get it to work that way.
 
Back
Top