Eğer sayfanızda bir dropdownlist içine Ajax ile değerler doldurduysanız, sayfanızı postback yaptığınızda seçtiğiniz değeri
kaybedersiniz. S
udan çıkmış balık gibi olursunuz :)


Çözüm
C# ile

string strTown = Request.Form["ddlTown"];


Eğer MasterPage'den türemiş bir sayfanız var ise client tarafında yaratılmış dropdownlist kontrolün "name" attribute kısmını vereceksiniz.

string strTown = Request.Form["ctl00$ContentPlaceHolder1$ddlTown"];



 
All comments require the approval of the site owner before being displayed.
Name
E-mail
Home page

Comment (Some html is allowed: a@href@title, i, strike, u) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview