Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
WebDropDown SelectedItem.Text oder Value Error?
posted

1.) To "pre-filter" the data from a large table i do this in the

WebDropDown1_ItemsRequested - Event:

this.SqlDataSource1.SelectCommand = string.Format("SELECT IDX,PARAMETER FROM MASTER.K_PARAMETER WHERE PARAMETER LIKE '{0}%'", e.Value.ToString().ToUpper()); this.WebDropDown1.DataBind();

so far so good, it works

2.) I've selected a value in the WebDropDown

3.) I fire a WebImageButton1_Click ... Event

    this.WebTextEdit1.Text = this.WebDropDown1.SelectedItem.Text;

4.) Error:    SelectedItem.Text is null

kind regards

Parents Reply Children
No Data