I was able to customize the createuserwizard in .net 3.5 with no problems. I could add controls like the dropdownlist for city and state. In the code behind, I was able to reference these controls by name, such as ddlstate. However, I'm creating a new site from the ground up in .net 4.0 and was trying to edit the website that visual web developer 2010 creates when you create a new web site. I went to the register.aspx page and added the city and state dropdowns. In the code behind, I can't reference them as ddlstate anymore. I even tried setting the clientidmode to static at the page level since I know the control names get mangled but that didn't help either. However, the project builds fine as long as I don't attempt to reference the dropdownlist by name in the code behind.
I'm also using jquery that I pulled from a working .net 3.5 site I had that gets errors when trying to reference the dropdownlist by name in .net 4.0. The error says "ddlstate" is not a member of "asp.account_register_aspx". The dropdownlist is set to runat server so I'm really confused why both my jquery and code behind can't seem to see the control in the createuserwizard control. If I move the dropdownlist outside of the createuserwizard, it can see it and use it just fine. A
View Complete Post