переменная доступа из кода позади другой страницы
у меня есть index.aspx (index.aspx.cs), который будет включать в себя body.aspx (body.aspx.cs) с использованием Server.exectue ("body.aspx»);
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 System.Data.SqlClient;
using System.Configuration;
using System.Collections;
public partial class index : System.Web.UI.Page
{
public string text1 = "abc";
protected void Page_Load(object sender, EventArgs e)
{
}
}
в index.asp.cs есть переменная text1, которую я хочу использовать в body.aspx.cs, как это сделать?
Спасибо