Hi, I have a simple .ascx file
<%@ Control Language="C#"
AutoEventWireup="true"
CodeFile="Profile.ascx.cs"
Inherits="UserControls_Profile" %>
<%@ Register Assembly="RadChart.Net2"
Namespace="Telerik.WebControls"
TagPrefix="radC" %>
<div id="testdiv" runat="server"></div>
in code behind:
protected void Page_Load(object sender, EventArgs e) {
Chart();
}
private void Chart() {
testdiv.Visible=false;
}
When I try to access the page I get the exception:
error CS0103: The name 'testdiv' does not exist in the current context
I have tried onload as well but same result!