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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -