c# - Get form fields by names or ids ASP .Net -


i have web form ids. have array of these names. , on submit need retrieve these values array of name. like:

request.form["<some_name>"] 

problem in asp substitutes names ctl00$maincontent$

you can set clientidmode static , control id's remain same they're rendered.

this allow them actual id's.

set in page adding following...

<%@ page clientidmode="static" ... 

http://msdn.microsoft.com/en-us/library/system.web.ui.control.clientidmode.aspx


Comments