M
Marco Scheel
Hello NG,
i think i found a bug. I've programmed an application that uses a HTML Input
textbox. The HTML type is "Password". The content is marked with "*". Thats
fine. I change the runat tag to server. Now i try to fill the control value
an nothing happens. try example at bottom.
i tried some workaround but even with the asp:textbox it doesen't work. i
need this peace of code for a loginscreen where i want to fill the password
from a local cookie, so the user is still able to change the login for a
different user.
Any comment?
Bye Marco
<%@ Page Language="C#" AutoEventWireup="True" %>
<html>
<head>
<script language="C#" runat="server">
void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack)
{
Span1.InnerHtml="Hidden value: <b>" + HiddenValue.Value +
"</b>";
}
}
void SubmitBtn_Click(object sender, EventArgs e)
{
HiddenValue.Value=StringContents.Value;
}
</script>
</head>
<body>
<form runat=server>
<h3>HtmlInputHidden Sample</h3>
<input id="HiddenValue"
type=password
value="Initial Value"
runat=server>
Enter a string:
<input id="StringContents"
type=text
size=40
runat=server>
<p>
<input type=submit
value="Enter"
OnServerClick="SubmitBtn_Click"
runat=server>
<p>
<span id=Span1 runat=server>
This label will display the previously entered string.
</span>
</form>
</body>
</html>
i think i found a bug. I've programmed an application that uses a HTML Input
textbox. The HTML type is "Password". The content is marked with "*". Thats
fine. I change the runat tag to server. Now i try to fill the control value
an nothing happens. try example at bottom.
i tried some workaround but even with the asp:textbox it doesen't work. i
need this peace of code for a loginscreen where i want to fill the password
from a local cookie, so the user is still able to change the login for a
different user.
Any comment?
Bye Marco
<%@ Page Language="C#" AutoEventWireup="True" %>
<html>
<head>
<script language="C#" runat="server">
void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack)
{
Span1.InnerHtml="Hidden value: <b>" + HiddenValue.Value +
"</b>";
}
}
void SubmitBtn_Click(object sender, EventArgs e)
{
HiddenValue.Value=StringContents.Value;
}
</script>
</head>
<body>
<form runat=server>
<h3>HtmlInputHidden Sample</h3>
<input id="HiddenValue"
type=password
value="Initial Value"
runat=server>
Enter a string:
<input id="StringContents"
type=text
size=40
runat=server>
<p>
<input type=submit
value="Enter"
OnServerClick="SubmitBtn_Click"
runat=server>
<p>
<span id=Span1 runat=server>
This label will display the previously entered string.
</span>
</form>
</body>
</html>