I would have believed that this question has an obvious answer, but I cannot seem to find any. I have an ASP.Net MasterPage which has a content page in which there are several dynamically created input controls. When I post the form which contains them, I want to retrieve their values. That is only possible using the name attribute of the control and calling Request.Form[name].
Since the input controls are part of a ContentPlaceHolder, their name attribute is assigned the UniqueId of the control, which is a string that could look like this for example: "ctl00$skts_body_div$MyNameId".
The above name in the example is not a randomly generated name, but it depends on the structure of the controls parents, hence it is not that easy in a postback to generate the name "ctl00$skts_body_div$MyNameId", so that I can call Request.Form["ctl00$skts_body_div$MyNameId"].
What is the best practice way of retrieving the posted data?
The platform is .Net 4.0
Thanks Jihad