Hello...
Im implementing interface concept in asp.net web application to insert city details to database table. Im getting error as "Internal Compiler Error: stage 'DEFINE'" i couldn't able to access the interface and the class which has been implemented by that interface in asp webform...!
aspx.cs code:-
Hide Copy Code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Interface_Project.Presenter.PresenterAdmin;
using Interface_Project.Model.ModelAdmin;
namespace Interface_Project
{
public partial class ManageCity : System.Web.UI.Page
{
ModelCityDetails modelObjCity = null;
protected void Page_Load(object sender, EventArgs e)
{
modelObjCity = new ModelCityDetails(this);
}
protected void btnAdd_Click(object sender, EventArgs e)
{
if(modelObjCity.insertCityDetails())
{
ClientScript.RegisterStartupScript(this.GetType(),"alert","");
}
else
ClientScript.RegisterStartupScript(this.GetType(),"alert","");
}
}
public partial class ManageCity : Interface_Project.Presenter.PresenterAdmin.ManageCity.IManageCity
{
public int cityid
{
get
{
return 0;
//return int.Parse(hdnCityId.Value);
}
set
{
//hdnCityId.Value = value.ToString();
}
}
public string cityname
{
get
{
return txtCity.Text;
}
set
{
txtCity.Text = value;
}
}
}
}
Any help appreciated...! Thank you...!

Vincent Maverick DuranoRank #238 · 10.3K reputationPosted May 1, 2015, 10:38 PM EDT
rashmi S67 reputationPosted May 2, 2015, 4:36 AM EDT
Thanks for your reply...!
Error Message was - " Internal Compiler Error- Stage "DEFINE" Symbol.
Due to that error i couldnt able to execute any of the VS application. It showed same error for all the applications.
Then i restarted my PC. My issue is resolved...
Thanks....!
Vincent Maverick DuranoRank #238 · 10.3K reputationPosted May 2, 2015, 4:56 AM EDT
rashmi S67 reputationPosted May 4, 2015, 12:03 AM EDT
Thanks vincent for your reply... :-)