0
ajaxpro 메서드에 문제가 있습니다. .cs 파일에서 다음과 같이 내 페이지의 일부 전역 변수를 정의했습니다.Ajaxpro 메소드가 전역 페이지 변수를 다시 초기화 할 수 있습니까?
public partial class Admin : System.Web.UI.Page
{
public int localidMember = 9;
protected void Page_Load(object sender, EventArgs e)
{
AjaxPro.Utility.RegisterTypeForAjax(typeof(Admin));
if (HttpContext.Current.Session["HomeOwn_ID"] != null)
{
localidMember = Convert.ToInt32(HttpContext.Current.Session["HomeOwn_ID"].ToString());
}
}
[AjaxPro.AjaxMethod(AjaxPro.HttpSessionStateRequirement.ReadWrite)]
public string LoadInbox()
{
// I need to use the variable localidMember and expected that it will have the value that I have set to pageload.., but it didnt. The variable is reinitialized to 9... Anyone have any ideas what's going on... Thanks so much !
}
}