IE浏览器不提供保存ASP.NET表单的密码 [英] IE not offering to save password of ASP.NET form

查看:105
本文介绍了IE浏览器不提供保存ASP.NET表单的密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时候微软做了这样令人震惊的愚蠢的,它使我的头很疼。帮我看看这真的不是这样的......请!

Sometimes Microsoft does something so stunningly dumb that it makes my head hurt. Help me find out it's really not the case ... please!

我有跟我发展,从而IE(7或8 ...不能忍受开6)一个ASP.NET(3.5)网站的登录页面的问题不提供保存密码,当用户登录。我检查了其他浏览器和Firefox,Chrome和Safari都提供保存密码就好了。我也证实了我的测试盒IE密码保存的是在其他网站和工作例如确定谷歌等它工作正常。

I've got an issue with the login page of an ASP.NET (3.5) site I'm developing whereby IE (7 or 8 ... can't bear to open 6) doesn't offer to save the password when a user logs in. I've checked other browsers and Firefox, Chrome and Safari all offer to save the password just fine. I've also confirmed that IE password saving on my test boxes is is working OK on other sites and for e.g. Google etc it works fine.

我已经做了搜索已经变成了非常小的,但似乎有点什么它没有露面表明,IE浏览器将不提供保存密码,如果页面上的表单包含两个以上的文本控件。这是我的形式,其也具有控制以允许用户注册的情况。当我删除这些额外的控制,IE神奇提示保存密码,因此这似乎是真实的。

The searching I've done has turned up very little, but what little it did turn up seems to suggest that IE won't offer to save a password if the form on the page contains more than two text controls. That's the case with my form which also has controls to allow a user to register. And when I remove these additional controls, IE magically prompts to save password, so this does seem to be true.

现在...如果ASP.NET将让我有多种形式,一切都会很好,我将能够在两个功能分离出来,到独立的形式和IE浏览器会提示保存密码。但是,ASP.NET不允许我这样做,因为它只允许一个单一的形式。我可以在那里胡编乱造一个非RUNAT =服务器的形式和尝试这样做,但你猜怎么着?因为我的网页使用了母版,任何形式的标签我加自动剥离出来,即使它是一个非RUNAT =服务器的形式。

Now ... if ASP.NET would allow me to have multiple forms, all would be well and I would be able to separate out the two functions into standalone forms and IE would prompt to save passwords. But, ASP.NET doesn't allow me to do this as it only allows a single form. I could fudge a non runat=server form in there and try to do this, but guess what? Because my page uses a MasterPage, any form tag I add is automatically stripped out, even if it's a non runat=server form.

所以,我没有看到解决这个办法没有从根本上改变了我的努力来实现。它看起来像我有我的用户解释,他们将不会被提示有密码保存的,如果他们使用IE(微软的产品),因为我开发我的网站使用ASP.NET(嗯...微软的产品)。

So, I don't see any way around this without fundamentally changing what I was trying to achieve. It looks like I have to explain to my users that they won't be prompted to have their passwords saved if they use IE (a Microsoft product) because I developed my site with ASP.NET (err ... a Microsoft product).

如果是这样的话,我只是无法在如何迎头smackingly可笑的,这是得到的。如果任何人都可以提供有关如何解决它的任何想法,可以告诉我,我已经得到了这一切错误的,是一个大的,愚蠢的白痴自己,或者只是想确认它不只是我认为这是monumentously哑巴,然后请,请这样做。

If this is so, I just can't get over how head-smackingly ridiculous this is. If anyone can offer any ideas on how to get around it, can tell me I've got it all wrong and am a big, stupid idiot myself, or just wants to confirm that it's not just me that thinks this is monumentously dumb, then please, please do so.

只是为了记录在案,我真的不希望(和不明白为什么我应该有)妥协我的设计,并在两个分裂我的网页(这将导致用户较差的体验)。

Just for the record, I really don't want to (and don't see why I should have to) compromise my design and split my pages in two (which will result in a worse experience for the user).

推荐答案

@克里斯那就是我去进行到底。

@Chris That's what I went for in the end.

因此​​,对于任何人的利益,我还是有我的激活控件中用runat = server的形式,并在code该页面处理这些。然后,我有一个HTML输入第二,标准的HTML表单文本框的职位,以一个不同的.NET页面。这本书以用户登录。我通过的Request.Form拿起值在本页面并从这里登录处理。

So for the benefit of anyone else, I still have my activation controls in a runat=server form and process these in the code for that page. Then I have a second, standard HTML form with HTML input textfields that posts to a different .NET page. This deals with the users login. I pick up the values in this page via Request.Form and deal with the login from here.

上升空间:

这所有的作品,并得到用户的登录记得,因为他们会期望。

It all works and users get their logins remembered as they would expect to.

缺点:

我失去了使用母版(因为我需要在页面两种形式)的能力,所以我有效不得不重复模板 - 我不喜欢这么多。

I lost the ability to use a MasterPage (as I need two forms in the page) so I effectively have had to duplicate the template - I don't like this much.

如果用户的登录无效或导致某些类型的错误,我要重定向到初始页面,并将它传递一个标志,让它显示相应的错误信息 - 我不喜欢这样,所以尽管

If the users login is invalid or causes some kind of error, I have to redirect to the initial page and pass it a flag to get it to show a relevant error message - I don't like this much either.

就像我说的,不过,这只是工作,在这种情况下,这是什么最重要。感谢您的输入。

Like I say, though, it just works and in this case that's what was most important. Thanks for your input.

这篇关于IE浏览器不提供保存ASP.NET表单的密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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