我创建了一个用于登录员工的母版页 [英] i have created a master page for login of a employee

查看:101
本文介绍了我创建了一个用于登录员工的母版页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为他的公司网站创建了一个员工登录的母版页。

我在脚本的同一源页面中编写了登录按钮的代码。但对于这一行



i have created a master page for login of a employee for his company site.
and i wrote the code for login button in the same source page in script. but for this line

ClientScript.RegisterStartupScript(Page.GetType(), "validation", "<script language='javascript'>alert('Invalid Username and Password')</script>");
        }









我收到错误如何继续。还有一个人怀疑如何维护所有嵌套页面的母版页。





i m getting error how to proceed. and one more doubt how maintain the master page for all the nested pages.

推荐答案

我不确定是否应该从那里开始。如果您的母版页上有登录表单,则表示所有相关内容页面也会进行登录。原则上,这是可能的 - 它可能看起来像CodeProject。但你确定需要吗?



无论如何,请看本教程:http://www.asp.net/web-forms/tutorials/master-pages [ ^ ]。



你的代码示例看起来不像一个整体条款,所以我不能说什么。可能你只是没能正确格式化代码。



-SA
I am not really sure if should proceed from there. If your master page has login form on it, it means that all related content pages will also do the login. In principle, this is possible — it might look like in CodeProject. But are you sure you need it?

Anyway, please see this tutorial: http://www.asp.net/web-forms/tutorials/master-pages[^].

Your code sample does not look like an integral clause, so I cannot say anything. Probably, you simply failed to format the code properly.

—SA


这篇关于我创建了一个用于登录员工的母版页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆