Relative Content

Tag Archive for c#asp.netasp.net-mvcasp.net-coremodel-view-controller

i want text of label when it in datalist

in .net , i have a problem . i want the text of label in datalist and i cant use id because its in datalist in its id is not available in c# or js .i don’t can use for to my label because i don’t now user click to Which linkbutton.
. this is my code :

I Can’t sign in with HtmlContext.Session in .Net 8.0

I can not sign in with using htmlcontext.session, it redirects me again in log in page. I have searched many articles in online but nothing solved my problem and I do not want to use JWT Token for this. Project videos which I work on it, recorded 2 years ago and trainer used FormsAuthentication class for session but now I cant use it. Probably because of it was updated but unfortunately, I could not solve it.