My current Web Site does not have any designer.cs files. (Yes it is not a Web Application)
The site is complete but now I added 2 Clases to my site and all good but when I want to make use of my GridView it tells me this:
This is because I wrapped my code with the same namespace as in my classes like so....
namespace samrasWebPortalSQL
{
public partial class GridView : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Functions.RemoveCaching(this);
LoadGrid();
}
private void LoadGrid()
{
DataSet dataSet = SQLHelper.GetDataSet("select * from company");
Functions.BindGridView(GridView1, dataSet);
}
}
}
I know I need the following code in my .designer.cs file but since I dont have one cant I place it anywhere ells?
protected global::System.Web.UI.WebControls.GridView GridView1;