when the user clicks the combobox i want to show the message to the user please select the id first.
please send the code using csharp or vb.net.
i am doing using web application.please send the code it is great helpful for me.
Thanks & Regards,
RAO!.,
Clicking the combobox message will appear to the user
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sarika8 reputationPosted Jul 12, 2012, 11:09 AM EDT
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
if (ListBox1.SelectedItem == null)
{
MessageBoxShow(this, "Please select listitem first.");
}
}
private void MessageBoxShow(Page page, string message)
{
Literal ltr = new Literal();
ltr.Text = @"";
page.Controls.Add(ltr);
}
Sarika
Satyapriya NayakRank #47 · 31.5K reputationPosted Jul 12, 2012, 9:43 PM EDT
Make sure AutoPostBack property of the dropdownlist to True
Thanks