problem with dll file linked with masterpage

Posted by sumit on Stack Overflow See other posts from Stack Overflow or by sumit
Published on 2009-12-07T16:56:22Z Indexed on 2010/03/14 20:05 UTC
Read the original article Hit count: 267

Filed under:

i have recently find the solution that how i can retrieve the fileupload id when page is linked with masterpage in codebehind as

ContentPlaceHolder content = Page.Master.FindControl("ContentPlaceHolder1") as ContentPlaceHolder;
Fileupload f=content.FindControl("FileUpload1") as FileUpload;

in my contentplaceholeder1 i have a dropdownlist with id dropdownlist1 now i m trying to use it in one of the cs file of dll file as

if (previousFields.ContainsKey("dropdownlist1"))
                    {
                        prefix = previousFields["dropdownlist1"];

                    }

where dropdownload list is the previos field of fileupload so it checks the previos field and assign the prefix to the corresponding value.nw i want to know how can i access the dropdownlist id within contentplaceholder1 id

© Stack Overflow or respective owner

Related posts about ASP.NET