asp.net - context.User.Identity.Name return empty value always in ashx -


context.user.identity.name return empty value in ashx

login.aspx:

 protected void button1_click(object sender, eventargs e)         {             if (username.text == "admin" && password.text == "admin")             {                 formsauthentication.setauthcookie(username.text, false, formsauthentication.formscookiepath);                 response.redirect("manageindex.aspx");             }         } 

ashx:

/// <summary> /// summary description transactionrecordlist /// </summary> public class transactionrecordlist : ihttphandler {      public void processrequest(httpcontext context)     {        string a= context.user.identity.name;      } 


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -