Hi all,
i am trying to develope a web application using vb.net. In my application i have populated my Dropdownlist box using javascript.But when i am trying to save the selected value in button click event, it is taking as null value. i am not able to get the value for the selected item from that dropdownlist. Can anyone help me?
thank you
femin
Loading

oupoi12 reputationPosted Aug 28, 2006, 7:39 AM EDT
Femin Francis7 reputationPosted Aug 28, 2006, 8:39 PM EDT
Thanks for replay.But i need solution .And i am populating the dropdown using ajax with out refreshing.And i cannot do this using autopost back property. Because i dont want to refersh my page.
My .net frame work is asp.net 1.1 version. So will i not be able to get that values in my application? can u please reply me..
Dipen LamaRank #3,323 · 432 reputationPosted Aug 28, 2006, 8:53 PM EDT
Femin Francis7 reputationPosted Aug 28, 2006, 10:04 PM EDT
oupoi12 reputationPosted Aug 28, 2006, 10:59 PM EDT
Femin Francis7 reputationPosted Aug 28, 2006, 11:19 PM EDT
sunitha4 reputationPosted Oct 30, 2006, 3:09 AM EST
try this code in aspx.cs:
protected void Page_Load(object sender, EventArgs e)
{
DropDownList1.DataTextField =
"ContactID";DropDownList1.DataValueField =
"LastName";TextBox1.Text=DropDownList1.SelectedValue.ToString();
DropDownList1.DataBind();
}