public ActionResult Create()
        {
            Student9ViewModel objEntity = new Student9ViewModel();

            List<SelectListItem> objStateList = new List<SelectListItem>();
            objStateList.Add(new SelectListItem { Text = "---Select---", Value = "0" });
            objStateList.Add(new SelectListItem { Text = "India", Value = "1" });
            objStateList.Add(new SelectListItem { Text = "Srilanka", Value = "2" });
            objStateList.Add(new SelectListItem { Text = "China", Value = "3" });
            objStateList.Add(new SelectListItem { Text = "Austrila", Value = "4" });
            objStateList.Add(new SelectListItem { Text = "USA", Value = "5" });
            objStateList.Add(new SelectListItem { Text = "UK", Value = "6" });

            objEntity.CountryList = new SelectList(objStateList, "Value", "Text");

            return View(objEntity);
        }
        public ActionResult Create(Student9ViewModel objEntity)
        {
            if (ModelState.IsValid)
            {

            }

            #region Rebinding after posting

            List<SelectListItem> objCountryList = new List<SelectListItem>();
            objCountryList.Add(new SelectListItem { Text = "Select", Value = "0" });
            objCountryList.Add(new SelectListItem { Text = "India", Value = "1" });
            objCountryList.Add(new SelectListItem { Text = "Srilanka", Value = "2" });
            objCountryList.Add(new SelectListItem { Text = "China", Value = "3" });
            objCountryList.Add(new SelectListItem { Text = "Austrila", Value = "4" });
            objCountryList.Add(new SelectListItem { Text = "USA", Value = "5" });
            objCountryList.Add(new SelectListItem { Text = "UK", Value = "6" });

            #endregion

            objEntity.CountryList = new SelectList(objCountryList,"Value", "Text");

            return View(objEntity);
        }