0

Hello Everyone,

Page Structure
Page -> Place Holder -> web User control -> Dropdownlists

This is my Page Elements. There is click event to generate new webUserControl and place it onto PlaceHolder.
Now my Problem is that
I have three Dropdownlist inside webUserControl
and all values of dropdownlist populates from xml files.

Here is some Images to clarify my Problem
"All are inside WebUserControl which will created dynamically on the occurance of Click event"

1) suppose this is my first Drop down list
afb4c824a9bc62cf8fc255e881323b0d

2) Now suppose I am selected "verb" option from dropdownlist1 automatically other dropdownlist2 will be visible and populates items in it according to dropdownlist1 selection

here is second pic
cbcaeeb0b2289da21e14389fc6cf4bdf

3) **Now main Problem starts here, **
when I am clicked on "Auxiliary" option, I am supposed to get index of Auxiliary text. It is 3. but it always returns index 0

4) and finally picture becomes like this.
93f32ba2498cb29db94634e3982fa04a

this dropDownList does not hold the selected value.

Please give suggesions to resolve this problem.
Thanking you

6
Contributors
5
Replies
46
Views
4 Years
Discussion Span
Last Post by annaharris
0

Are you using ajax? If so, be sure to register the controls so the DOM can be updated properly.

0

check the postsbacks with the third dropdownlist. sometimes when there is no postbacks fired, the value is not working properly

0
  use this code on Page_Load

   Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then

            Dropdownlist1()
            Dropdownlist2()

            '' Fill ur Dropdownlist
        End If


    End Sub
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.