I used 3 ddl for address purpose using ajax extention (script manager and update panel)
they worked but when user never select any country,state or city and submit then header for each ddl (select country,select city,select state) stored in database.
Loading
Sanjeeb LenkaPosted Jun 14, 2013, 1:24 PM
Ex:
within insert button click event write below code
if(ddlCountry.SelectedIndex==0)
{
lblmsg.text="select country";
return;
}
if(ddlCity.SelectedIndex==0)
{
lblmsg.text="select city";
return;
}
if(ddlstate.SelectedIndex==0)
{
lblmsg.text="select state";
return;
}
after this code insert data to database.
you can also use javascript
if any problem rply
Arun KurmiPosted Jun 14, 2013, 1:16 PM
Sanjeeb LenkaPosted Jun 14, 2013, 12:27 PM
ex-
if (!IsPostBack)
{
Bind(); //or your dropdown bindcode
}