Home All Groups Group Topic Archive Search About

Accessing the DeopDownList in the LoginView

Author
31 Oct 2006 5:13 PM
gilespy
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?

Thank you

Author
3 Nov 2006 6:39 AM
Dominick Baier
use the FindControl method on the login view to get to the drop down list.

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

Show quoteHide quote
> 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?
>
> Thank you
>



Post Thread options