Thursday, February 4, 2010

INSERT DROPDDOWN LIST value in db

objReg.Faculty = drpdFaculty.SelectedValue;

select DROPDDOWN LIST value from db

if (Convert.ToString(dt.Rows[0]["Faculty"]) == "")
{
drpdFaculty.SelectedValue = "--Select--";
}
else
{
drpdFaculty.SelectedValue = dt.Rows[0]["Faculty"].ToString();
}

No comments:

Post a Comment