Why is this working?

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
 
N

Nathan Sokalski

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top