Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

difficulty in using asp.net controls in webpart

0 views
Skip to first unread message

silentsoldier

unread,
Feb 1, 2005, 6:59:02 AM2/1/05
to

i initially added one TextBox and a Button in a webpart programmatically and
on Button_Click event i captured the text of TextBox , this task was done
successfully.

Then i added a ListBox and a Button, now on button_Click i am trying to
capture selected item in ListBox through ListBox.SelectedValue or
ListBox.SelectedItem.Value none of it is working. i tried almost everything
but unable to capture selected value on postback when button is clicked.

I repeated the listbox process by replacing ListBox with DropDownList but
had no effect.

So if any one come up with solution do let me know

0 new messages