Search the Community
Showing results for tags 'cshtml'.
Hey, everyone. I'm new to the forums, but not to W3 Schools or programming in general. I've spent the past 3-4 days combing the tutorials for asp, asp.net, ajax, php, html5, cshtml, etc. and learned way more about each than I'm probably ever going to need. At this point, I'm only inches closer to completing my project than when I started looking through these (though I suppose I'm a better web dev for it), and there is only one question in my mind - which language should I actually be looking at to make this work? It seems to me after looking through each one individually that any language
1. ASP.NET/WEBPAGES tutorial. I completed the tutorial and was trying to add a logout function on my Login.cshtml page/file. The WebSecurity.Logout() command would always execute before I want it to. I tried putting it in a button as an onclick option, and tried hidding it in a Jscript function. It seems it would still execute when i didn't want it to. The Login.cshtml file does not have any standard HTML sections,(html, head, body..) The page seems to be controlled by an IF (isPost) option before any processing is performed. I did not devise a way to make my Logout routine work within that I