How to dynamically determine the control path after a post - asp.net?
<p>I have some JS code that is sitting inside a userControl. The userControl is sitting inside a content placeholder, and to make matters worse, the server side script could be reused from a number of pages in the future. </p>

<p>This JS is responsible for creating a post request to a page via JSON. </p>

<p>In I.E: the names of the elements are fine - for example Name, Surname, Address</p>

<p>But in Firefox I'm getting the prefix too of the server side controls. </p>

<p>For example:</p>

<p>ctl00_ContentPlaceHolder_UserControl1_Name</p>

<p>ctl00_ContentPlaceHolder_UserControl1_Surname</p>

<p>ctl00_ContentPlaceHolder_UserControl1_Address</p>

<p>Once I have received the post values I'm hoping there is some clever way to determine the path of the controls dynamically, so I can get the real form element names. </p>

<p>Is this possible? This is a .net v2 solution so I am unable to just change config like I would if it was a v4 solution. </p>

<p>Thanks in advance. </p>
