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!.,
Loading
Satyapriya NayakPosted Jul 13, 2012, 1:43 AM
Make sure AutoPostBack property of the dropdownlist to True
Thanks
SarikaPosted Jul 12, 2012, 3:09 PM
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