c# - how to get data from .aspx pages and consume in angular 2 -
i trying move front-end part of application angular 2. have big asp.net application. i'm confused how data default.aspx page , consume in angular 2
default.aspx.cs
protected void page_load(object sender, eventargs e) { dataaccess = new dbmanager(); login_type = (string)session["login_type"]; bool isgroupaccount = false; if (login_type == "user") { operateur = (utilisateur)session["login_id"]; nom_compte = operateur.login + "(utilisateur)"; id_compte = operateur.id; enablepopupnotification = operateur.enablepopupnotification; enableemailnotification = operateur.enableemailnotification; email = operateur.email; login = operateur.login ; password = operateur.password; httpcookie mycookie = new httpcookie("id_compte"); mycookie.value = id_compte.tostring(); response.cookies.add(mycookie); }
Comments
Post a Comment