简体   繁体   English

Asp.net登录控件-密码文本

[英]Asp.net Login control - password text

I am using asp.net Login control, and I want to load the control with default values. 我正在使用asp.net登录控件,并且希望使用默认值加载该控件。 I can access the username text with the "UserName" property in the control, but I dont see an option accessing the password text. 我可以使用控件中的“ UserName”属性访问用户名文本,但是看不到访问密码文本的选项。 How can I change it to have a default value ? 如何将其更改为默认值?

10x, Udi 10倍,Udi

There's probably an easier way of doing this, but according to the MSDN documentation you can create a template for the control and from within that template you could set the value. 这样做可能是更简单的方法,但是根据MSDN文档,您可以为控件创建一个模板,并可以从该模板中设置值。

Alternatively if you can find the ID of the control you could set it's value using Javascript. 另外,如果您可以找到控件的ID,则可以使用Javascript设置其值。

Why do you need to set a value in this box? 为什么需要在此框中设置一个值?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM