all groups > dotnet security > october 2006 >
You're in the

dotnet security

group:

Accessing the DeopDownList in the LoginView


Accessing the DeopDownList in the LoginView gilespy
10/31/2006 9:13:02 AM
dotnet security:
Hi!

I am using C# and Visual WEB Developer 2005.

I have a method
protected void DropDownList1_SelectedIndexChanged... {

this.DropDownList1.SelectedValue.ToString()...
//more code

}

After I have put the DropDownList in the LoginView control, I can not access
the list anymore. Compiler gives me the message "ASP.page_aspx does not
contain a definition for DropDownList1".

How can I fix this?

Re: Accessing the DeopDownList in the LoginView Dominick Baier
11/3/2006 12:00:00 AM
use the FindControl method on the login view to get to the drop down list.

---
Dominick Baier, DevelopMentor
http://www.leastprivilege.com

[quoted text, click to view]

AddThis Social Bookmark Button