In this instance, I'm trying to add the data in the webpageType field into a text box on the edit webpage page in the admin.
I've put the dll from the custom class into the bin folder of the website
I've put in a using Custom.Objects; on the EditWebpage.aspx.cs
In the code, I've added in my code like this:
Code: Select all
private int _WebpageId;
private Webpage _Webpage;
private WebpageType _WebpageType;
protected void Page_Init(object sender, EventArgs e)
{
_WebpageId = AlwaysConvert.ToInt(Request.QueryString["WebpageId"]);
_Webpage = WebpageDataSource.Load(_WebpageId);
_WebpageType = WebpageTypeDataSource.Load(_WebpageId);
CancelButton.NavigateUrl = "Browse.aspx?CategoryId=" + PageHelper.GetCategoryId().ToString();
_WebpageType = WebpageTypeDataSource.Load(_WebpageId);
Then down in the code for if (!Page.IsPostBack)
I have added to the listing
TextBoxType.Text = _WebpageType.ToString();
I always get a System.StackOverflowException was unhandled error and can't figure out why or how to debug it.
Where would I start to figure out what the problem is? It's been 2 1/2 days typing all this code and my brain is fried.
Thanks