Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Controls / December 2004

Tip: Looking for answers? Try searching our database.

ASP.NET 2.0 C# DropDownList

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bradd Schick - 28 Dec 2004 15:07 GMT
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!
Alvin Bruney [MVP] - 28 Dec 2004 21:12 GMT
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!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.