I have a DropDownList, AutoPostBack is set to true, and it fires great, except if the user picks the first item, which granted is what is showing, but does the DropDownList then automatically "select" the first item? If so, how does one get around that problem when he wants the user to be able to select the first item and not have to click a button?
also in that case as per the selection of item from dropdownlist i am trying to show image in image button, but page init calls automatically & it doesn't load image, & displays other controls.
how to resolve this
thanx
pranav

One option is to Add an Empty string as the first Item in the Dropdownlist - "". Then Add the other Items. In the SelectedIndexChanged Event of the Dropdownlist- write code using an If-Else or Select Case to display the required Image for the selected Item. You wont need to use a Button and AutoPostBack still works.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.