This is a migrated thread and some comments may be shown as answers.

[Solved] User Control access controls in the hosting Page with master page

1 Answer 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jerry
Top achievements
Rank 1
Jerry asked on 04 Sep 2009, 01:54 AM
Hi All,

I am working on a case which is copying the example 

Grid / Editing with external form


In which the grid is in a user control (ascx) and the external form is in the hosting page(aspx). However my .aspx  is using masterpage.

 I got reference error when try to access controls in the hosting page from the .ascx like:

 this.Page.FindControl("pnlExternalForm").Visible = true;//code in .ascx
pnlExternalForm is in the hosting .aspx page

The codes works fine if I put them into a case without masterpage.

I think the code is right, but just not work

Any idea?

TIA

Jerry


         

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 08 Sep 2009, 07:24 AM
Hi Jerry,

Based on the supplied information, it is hard to determine what is causing the unwanted behavior, without being familiar with the setup at your end. If the issue persists, you can open a formal support ticket, and send us the problematic code, in the form of a small working project. We will review it locally, and get back to you with additional information.

Kind regards,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Jerry
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or