开发者

ASP.NET Codebehind limiting use of included login panel

开发者 https://www.devze.com 2023-01-06 08:48 出处:网络
I have not touched ASP in almost ten years and I am not much of a programmer either so please excuse my vocabulary.

I have not touched ASP in almost ten years and I am not much of a programmer either so please excuse my vocabulary. I work mainly UI so I am hoping someone here could help me solve what I think is a minor problem.

I have a site under construction which has a control panel for login/logout and it is in an include file on every page.

We currently have a "login page" which functions just fine but I want to take that and incorporate it into the control panel so the user could log in from any page.

Problem is that the .NET programmer wrote all of the login logic using code behind only on one single page.

Is there some way for me to work around this or to incorporate this vb code into every page so that the cpanel can function as it s开发者_如何学编程hould?

Any help is appreciated!


You can move the login controls and codebehind to a user control. (.ascx) file, and then include it in your pages or your masterpages.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号