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...!
rashmi SPosted May 4, 2015, 4:03 AM
Thanks vincent for your reply... :-)
Vincent Maverick DuranoPosted May 2, 2015, 8:56 AM
rashmi SPosted May 2, 2015, 8:36 AM
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 DuranoPosted May 2, 2015, 2:38 AM