N
Nico Vonckx
Hello,
As I am taking my first steps in C#.NET i wrote this but I always receive an error message.
<%@ Page Language="C#" %>
<script runat="server">
void Submit_Click(object obj, Eventargs e) {
if (tbPass.Value == "mypass") {
Session["Username"] = tbUser.value;
Response.Redirect("oefening4.aspx");
} else {
Label1.Text = "<font color=red> That is the wrong password !</font>";
}
}
</script>
<html><body>
<form runat="server">
Please enter your username and password:<p>
<input type="text" id="tbUser"
runat="server"/><br>
<p>
<asp:Button id="btSubmit"
text="Submit"
runat="server"
OnClick="Submit_click"/><p>
<asp:label id="Label1" runat="server"/>
</form>
</body></html>
Error Message =
Compiler Error Message: CS0246: The type or namespace name 'Eventargs' could not be found (are you missing a using directive or an assembly reference?)
Anybody any idea please ,
Best regards
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
As I am taking my first steps in C#.NET i wrote this but I always receive an error message.
<%@ Page Language="C#" %>
<script runat="server">
void Submit_Click(object obj, Eventargs e) {
if (tbPass.Value == "mypass") {
Session["Username"] = tbUser.value;
Response.Redirect("oefening4.aspx");
} else {
Label1.Text = "<font color=red> That is the wrong password !</font>";
}
}
</script>
<html><body>
<form runat="server">
Please enter your username and password:<p>
<input type="text" id="tbUser"
runat="server"/><br>
<p>
<asp:Button id="btSubmit"
text="Submit"
runat="server"
OnClick="Submit_click"/><p>
<asp:label id="Label1" runat="server"/>
</form>
</body></html>
Error Message =
Compiler Error Message: CS0246: The type or namespace name 'Eventargs' could not be found (are you missing a using directive or an assembly reference?)
Anybody any idea please ,
Best regards
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com