Why Does this cause an erorr in compliation....
Heres the error " CS0103: The name 'DDRoleList' does not exist in the
current context "
Heres a piece of the code, I am using C#.
"void DataBind()
{
DDRoleList.DataSource = Roles.GetAllRoles();
DDRoleList.DataBind();
}"
DDRoleList is the "ID" of my DropDownList.
So why does this not work? Thanks for the help!
check your case sensitivity, c# is case sensitive.
also check the declaration at the top of the file to see if something funky
is going on.

Signature
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
> Why Does this cause an erorr in compliation....
> Heres the error " CS0103: The name 'DDRoleList' does not exist in the
[quoted text clipped - 10 lines]
>
> So why does this not work? Thanks for the help!
Bradd Schick - 29 Dec 2004 02:41 GMT
Thanks Alvin,
But the problem was due to the DropDownList and other controls that were
placed within the CreateUserWizardTemplate had to be refered to as
@_controlx were x is the number of the control.
My problem now is how will this affect the rest of the application? This
page works, but do you see any problems with this approach?
Thanks for the reply
Bradd
> check your case sensitivity, c# is case sensitive.
> also check the declaration at the top of the file to see if something funky
[quoted text clipped - 14 lines]
> >
> > So why does this not work? Thanks for the help!