zmienna dostępu z kodu za inną stroną
Mam index.aspx (index.aspx.cs), który będzie zawierał body.aspx (body.aspx.cs) przy użyciu 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)
{
}
}
w index.asp.cs istnieje zmienna text1, której chcę użyć w body.aspx.cs, jak to zrobić?
dzięki