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.
精彩评论