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

Compiler Error Message: CS0103: The name 'RadControl1' does not exist in the current context

2 Answers 254 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gina
Top achievements
Rank 1
Gina asked on 12 Mar 2008, 07:17 PM
I was having issues with prometheus running when using a Master page... I have found a thread that states to remove the runat = server from the head tag and insert 
<script>var controlClientObject = <%= RadControl1.ClientID %></script>
below is how I have added it in my master page.
 

<

body style="margin: 0px;" runat=server>

<form id="frmMaster" >

<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true">

<Scripts>

<asp:ScriptReference Path="~/Scripts/setFooter.js" />

</Scripts>

</asp:ScriptManager>

<

script>var controlClientObject = <%= RadControl1.ClientID %></script>

<div id="Header">

Now I get the following error... Can someone please help me as to what I am missing?

Compiler Error Message: CS0103: The name 'RadControl1' does not exist in the current context

I have made sure everything is in the web config and I do have the dll in the bin folder... I am able to to run everything fine as long as I do not use a master page?

Thanks for the help
Gina

2 Answers, 1 is accepted

Sort by
0
Salman
Top achievements
Rank 1
answered on 05 Mar 2011, 11:32 PM
i have similar problem
please help
0
Peter
Telerik team
answered on 11 Mar 2011, 08:20 AM
Hello Salman,

Which version of Telerik controls do you use? I did a simple test, but there were no problems at my end. Please, view the attached sample.

Can you provide us with the exact steps needed to see the issue?

Regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Gina
Top achievements
Rank 1
Answers by
Salman
Top achievements
Rank 1
Peter
Telerik team
Share this question
or