저는 .NET/1.0에서 작성된 ASP.NET/C# 프로젝트를 상속 받았습니다. .NET 2.0에서 프로그래밍을 시작 했으므로 오래된 개념 중 일부는 외국어입니다. 이 지역은 페이지로드 과정에서 충돌 있지만 그것을 주석하는 웹 페이지에 명백한 영향을주지 않습니다,코드에서 컴포넌트 디자이너가 코드를 생성했습니다
#region Component Designer generated code
//Required by the Web Services Designer
private IContainer components = null;
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
connSQL = new System.Data.SqlClient.SqlConnection();
connSQL.ConnectionString = Inventory.Properties.Settings.Default.connectionString;
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose(bool disposing)
{
if(disposing && components != null)
{
components.Dispose();
}
base.Dispose(disposing);
}
#endregion
: 나는 페이지의 80 %가 다음 코드 또는 이와 유사한을 가지고 것으로 나타났습니다. 나는 connSQL 객체가 사용되고 다른 곳에서 초기화되지 않는다면 문제가 발생할 수 있다고 추측 할 수있다. 그래서, 내 질문은이 디자이너가 코드를 생성 한 곳입니까? 나는 뒤에 코드를 본 적이 없다. 이것은 .net 1.0의 또 다른 것입니까?