Tuesday, April 5, 2011

Get Text from dropdown

I have one page which has Only one Dropdown name called "MydropDown".My submitted form i can get value of selected dropdown by

HttpContext.Current.Request.Form["MydropDown"];

but i need Text not value how can i get this Plz help me on this

From stackoverflow
  • If its not a control, there is no way to get the text other than put the text into the value field.

    Gulshan : Its a HTMl control i used

0 comments:

Post a Comment