473,387 Members | 1,481 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

asp.net button does not work

Weird thing:

Got an aspx page with a button and an associated code in VB.net.
On my testing server the page works fine.
On the old hosters server the page worked fine too.
But now, at the new hoster it does not.

When I click on the submit button: nothing happens.
The only thing that works is form validation.

I pasted the code below.
It's a login page, but I added this in the code to be sure that the problem
is on this page:
response.write("ok1")
So even this ok1 does not appear.
In fact, when I click on the button, the page is not posted.

Could it be a setting at the hosters server. The hoster says asp.net
scripting is active for the whole site.
PS: other aspx pages on the same website with buttons etc do work at that
hoster.
I really don't get it.

THX for help !

####################### CODE START #######################

<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1"
%>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls"
Assembly="DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,c
ulture=neutral" %>
<MM:DataSet
id="dsusers"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%#
System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING
_connusers") %>'
DatabaseType='<%#
System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABA
SETYPE_connusers") %>'
CommandText='<%# "SELECT * FROM tbl_users WHERE user_name = ? AND
user_password = ?" %>'
Debug="true"
<Parameters>

<Parameter Name="@user_name" Value='<%# IIf((Request.Form("user_name")
<> Nothing), Request.Form("user_name"), "") %>' Type="WChar" />
<Parameter Name="@user_password" Value='<%#
IIf((Request.Form("user_password") <> Nothing),
Request.Form("user_password"), "") %>' Type="WChar" />
</Parameters></MM:DataSet>
<MM:PageBind runat="server" PostBackBind="true" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>LOGIN</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="backoffice.css" rel="stylesheet" type="text/css">
</head>
<body>
<p>&nbsp;</p>
<p>&nbsp;</p>
<form method="POST" enctype="application/x-www-form-urlencoded" id="form1"
runat="server">
<table width="379" height="379" border="0" align="center"
background="images/selfmanager.jpg" class="tblresults">
<tbody>
<tr>
<td height="190" valign="bottom"><div align="center"><strong>
</strong></div></td>
</tr>
<tr>
<td><div align="center" class="style1">
</div></td>
</tr>
<tr>
<td><div align="center"></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center" class="style3"><span
class="style1"><span class="style2">
<asp:Label ID="txt_failed" runat="server" />
</span></span>Gebruikersnaam:</div></td>
</tr>
<tr>
<td>
<div align="center">
<asp:TextBox id="user_name" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
EnableClientScript="true" Display="Dynamic" ErrorMessage="Verplicht"
ControlToValidate="user_name" runat="server"></asp:RequiredFieldValidator>
</div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center"
class="style3">Wachtwoord:</div></td>
</tr>
<tr>
<td>
<div align="center">
<asp:TextBox ID="user_password" runat="server" TextMode="Password"
/>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
EnableClientScript="true" Display="Dynamic" ErrorMessage="Verplicht"
ControlToValidate="user_password"
runat="server"></asp:RequiredFieldValidator>
</div></td>
</tr>
<tr>
<td><div align="center"></div></td>
</tr>
<tr>
<td>
<div align="center">
<asp:Button ID="submit" OnClick="onlogin" runat="server"
Text="LOG-IN"></asp:Button>
</div></td>
</tr>
<tr>
<td>
<div align="center">
<script runat="server">
sub onlogin (sender As Object, e As System.EventArgs)
response.write("ok1")
if dsusers.recordcount > 0 then
Formsauthentication.redirectfromloginpage("backoff ice", true)
response.redirect("/backoffice/accesslevel1/index.aspx")
else if ((request.form("user_password")))<> nothing OR
((request.form("user_name"))) <> nothing
txt_failed.text="Login MISLUKT. Probeer opnieuw."
end if
end sub
</script>

</div></td>
</tr>
</tbody>
</table>

</form>
</body>
</html>
####################### CODE END #######################
Nov 19 '05 #1
4 2979
Copy the aspnet_client folder (I think thats the name) from the root
directory of your web server ( c:\Inetpub\wwwroot\aspnet_client) to the root
directory of your webfolder on the server. That should get this working.
This is a bug in the .net 1.1. See article below. Your hosting admins
would need to follow whats is the document to prevent this.
http://support.microsoft.com/?kbid=889877

"nicholas" <mu********@hotmail.com> wrote in message
news:ec**************@tk2msftngp13.phx.gbl...
Weird thing:

Got an aspx page with a button and an associated code in VB.net.
On my testing server the page works fine.
On the old hosters server the page worked fine too.
But now, at the new hoster it does not.

When I click on the submit button: nothing happens.
The only thing that works is form validation.

I pasted the code below.
It's a login page, but I added this in the code to be sure that the
problem
is on this page:
response.write("ok1")
So even this ok1 does not appear.
In fact, when I click on the button, the page is not posted.

Could it be a setting at the hosters server. The hoster says asp.net
scripting is active for the whole site.
PS: other aspx pages on the same website with buttons etc do work at that
hoster.
I really don't get it.

THX for help !

####################### CODE START #######################

<%@ Page Language="VB" ContentType="text/html"
ResponseEncoding="iso-8859-1"
%>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls"
Assembly="DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,c
ulture=neutral" %>
<MM:DataSet
id="dsusers"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%#
System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING
_connusers") %>'
DatabaseType='<%#
System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABA
SETYPE_connusers") %>'
CommandText='<%# "SELECT * FROM tbl_users WHERE user_name = ? AND
user_password = ?" %>'
Debug="true"
<Parameters>

<Parameter Name="@user_name" Value='<%# IIf((Request.Form("user_name")
<> Nothing), Request.Form("user_name"), "") %>' Type="WChar" />
<Parameter Name="@user_password" Value='<%#
IIf((Request.Form("user_password") <> Nothing),
Request.Form("user_password"), "") %>' Type="WChar" />
</Parameters></MM:DataSet>
<MM:PageBind runat="server" PostBackBind="true" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>LOGIN</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="backoffice.css" rel="stylesheet" type="text/css">
</head>
<body>
<p>&nbsp;</p>
<p>&nbsp;</p>
<form method="POST" enctype="application/x-www-form-urlencoded" id="form1"
runat="server">
<table width="379" height="379" border="0" align="center"
background="images/selfmanager.jpg" class="tblresults">
<tbody>
<tr>
<td height="190" valign="bottom"><div align="center"><strong>
</strong></div></td>
</tr>
<tr>
<td><div align="center" class="style1">
</div></td>
</tr>
<tr>
<td><div align="center"></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center" class="style3"><span
class="style1"><span class="style2">
<asp:Label ID="txt_failed" runat="server" />
</span></span>Gebruikersnaam:</div></td>
</tr>
<tr>
<td>
<div align="center">
<asp:TextBox id="user_name" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
EnableClientScript="true" Display="Dynamic" ErrorMessage="Verplicht"
ControlToValidate="user_name" runat="server"></asp:RequiredFieldValidator>
</div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center"
class="style3">Wachtwoord:</div></td>
</tr>
<tr>
<td>
<div align="center">
<asp:TextBox ID="user_password" runat="server"
TextMode="Password"
/>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
EnableClientScript="true" Display="Dynamic" ErrorMessage="Verplicht"
ControlToValidate="user_password"
runat="server"></asp:RequiredFieldValidator>
</div></td>
</tr>
<tr>
<td><div align="center"></div></td>
</tr>
<tr>
<td>
<div align="center">
<asp:Button ID="submit" OnClick="onlogin" runat="server"
Text="LOG-IN"></asp:Button>
</div></td>
</tr>
<tr>
<td>
<div align="center">
<script runat="server">
sub onlogin (sender As Object, e As System.EventArgs)
response.write("ok1")
if dsusers.recordcount > 0 then
Formsauthentication.redirectfromloginpage("backoff ice", true)
response.redirect("/backoffice/accesslevel1/index.aspx")
else if ((request.form("user_password")))<> nothing OR
((request.form("user_name"))) <> nothing
txt_failed.text="Login MISLUKT. Probeer opnieuw."
end if
end sub
</script>

</div></td>
</tr>
</tbody>
</table>

</form>
</body>
</html>
####################### CODE END #######################

Nov 19 '05 #2
Great !

THX a lot.
Sent it to my hoster. Hope it helps.
Ciao
"Tampa.NET Koder" <an*******@microsoft.com> wrote in message
news:uZ**************@TK2MSFTNGP10.phx.gbl...
Copy the aspnet_client folder (I think thats the name) from the root
directory of your web server ( c:\Inetpub\wwwroot\aspnet_client) to the root directory of your webfolder on the server. That should get this working.
This is a bug in the .net 1.1. See article below. Your hosting admins
would need to follow whats is the document to prevent this.
http://support.microsoft.com/?kbid=889877

"nicholas" <mu********@hotmail.com> wrote in message
news:ec**************@tk2msftngp13.phx.gbl...
Weird thing:

Got an aspx page with a button and an associated code in VB.net.
On my testing server the page works fine.
On the old hosters server the page worked fine too.
But now, at the new hoster it does not.

When I click on the submit button: nothing happens.
The only thing that works is form validation.

I pasted the code below.
It's a login page, but I added this in the code to be sure that the
problem
is on this page:
response.write("ok1")
So even this ok1 does not appear.
In fact, when I click on the button, the page is not posted.

Could it be a setting at the hosters server. The hoster says asp.net
scripting is active for the whole site.
PS: other aspx pages on the same website with buttons etc do work at that hoster.
I really don't get it.

THX for help !

####################### CODE START #######################

<%@ Page Language="VB" ContentType="text/html"
ResponseEncoding="iso-8859-1"
%>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls"
Assembly="DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,c ulture=neutral" %>
<MM:DataSet
id="dsusers"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%#
System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING _connusers") %>'
DatabaseType='<%#
System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABA SETYPE_connusers") %>'
CommandText='<%# "SELECT * FROM tbl_users WHERE user_name = ? AND
user_password = ?" %>'
Debug="true"
<Parameters>

<Parameter Name="@user_name" Value='<%# IIf((Request.Form("user_name") <> Nothing), Request.Form("user_name"), "") %>' Type="WChar" />
<Parameter Name="@user_password" Value='<%#
IIf((Request.Form("user_password") <> Nothing),
Request.Form("user_password"), "") %>' Type="WChar" />
</Parameters></MM:DataSet>
<MM:PageBind runat="server" PostBackBind="true" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>LOGIN</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="backoffice.css" rel="stylesheet" type="text/css">
</head>
<body>
<p>&nbsp;</p>
<p>&nbsp;</p>
<form method="POST" enctype="application/x-www-form-urlencoded" id="form1" runat="server">
<table width="379" height="379" border="0" align="center"
background="images/selfmanager.jpg" class="tblresults">
<tbody>
<tr>
<td height="190" valign="bottom"><div align="center"><strong>
</strong></div></td>
</tr>
<tr>
<td><div align="center" class="style1">
</div></td>
</tr>
<tr>
<td><div align="center"></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center" class="style3"><span
class="style1"><span class="style2">
<asp:Label ID="txt_failed" runat="server" />
</span></span>Gebruikersnaam:</div></td>
</tr>
<tr>
<td>
<div align="center">
<asp:TextBox id="user_name" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
EnableClientScript="true" Display="Dynamic" ErrorMessage="Verplicht"
ControlToValidate="user_name" runat="server"></asp:RequiredFieldValidator> </div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center"
class="style3">Wachtwoord:</div></td>
</tr>
<tr>
<td>
<div align="center">
<asp:TextBox ID="user_password" runat="server"
TextMode="Password"
/>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
EnableClientScript="true" Display="Dynamic" ErrorMessage="Verplicht"
ControlToValidate="user_password"
runat="server"></asp:RequiredFieldValidator>
</div></td>
</tr>
<tr>
<td><div align="center"></div></td>
</tr>
<tr>
<td>
<div align="center">
<asp:Button ID="submit" OnClick="onlogin" runat="server"
Text="LOG-IN"></asp:Button>
</div></td>
</tr>
<tr>
<td>
<div align="center">
<script runat="server">
sub onlogin (sender As Object, e As System.EventArgs)
response.write("ok1")
if dsusers.recordcount > 0 then
Formsauthentication.redirectfromloginpage("backoff ice", true)
response.redirect("/backoffice/accesslevel1/index.aspx")
else if ((request.form("user_password")))<> nothing OR
((request.form("user_name"))) <> nothing
txt_failed.text="Login MISLUKT. Probeer opnieuw."
end if
end sub
</script>

</div></td>
</tr>
</tbody>
</table>

</form>
</body>
</html>
####################### CODE END #######################


Nov 19 '05 #3
Just to be clear. You should copy that folder from your machine (testing)
to your hosting enviornment. This is the work-a-round. Then leave it up to
your hosting provider make the correct fix as posted by MSFT.
"nicholas" <mu********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Great !

THX a lot.
Sent it to my hoster. Hope it helps.
Ciao
"Tampa.NET Koder" <an*******@microsoft.com> wrote in message
news:uZ**************@TK2MSFTNGP10.phx.gbl...
Copy the aspnet_client folder (I think thats the name) from the root
directory of your web server ( c:\Inetpub\wwwroot\aspnet_client) to the

root
directory of your webfolder on the server. That should get this working.
This is a bug in the .net 1.1. See article below. Your hosting admins
would need to follow whats is the document to prevent this.
http://support.microsoft.com/?kbid=889877

"nicholas" <mu********@hotmail.com> wrote in message
news:ec**************@tk2msftngp13.phx.gbl...
> Weird thing:
>
> Got an aspx page with a button and an associated code in VB.net.
> On my testing server the page works fine.
> On the old hosters server the page worked fine too.
> But now, at the new hoster it does not.
>
> When I click on the submit button: nothing happens.
> The only thing that works is form validation.
>
> I pasted the code below.
> It's a login page, but I added this in the code to be sure that the
> problem
> is on this page:
> response.write("ok1")
> So even this ok1 does not appear.
> In fact, when I click on the button, the page is not posted.
>
> Could it be a setting at the hosters server. The hoster says asp.net
> scripting is active for the whole site.
> PS: other aspx pages on the same website with buttons etc do work at that > hoster.
> I really don't get it.
>
> THX for help !
>
> ####################### CODE START #######################
>
> <%@ Page Language="VB" ContentType="text/html"
> ResponseEncoding="iso-8859-1"
> %>
> <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls"
> Assembly="DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,c > ulture=neutral" %>
> <MM:DataSet
> id="dsusers"
> runat="Server"
> IsStoredProcedure="false"
> ConnectionString='<%#
> System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING > _connusers") %>'
> DatabaseType='<%#
> System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABA > SETYPE_connusers") %>'
> CommandText='<%# "SELECT * FROM tbl_users WHERE user_name = ? AND
> user_password = ?" %>'
> Debug="true"
>><Parameters>
> <Parameter Name="@user_name" Value='<%# IIf((Request.Form("user_name") > <> Nothing), Request.Form("user_name"), "") %>' Type="WChar" />
> <Parameter Name="@user_password" Value='<%#
> IIf((Request.Form("user_password") <> Nothing),
> Request.Form("user_password"), "") %>' Type="WChar" />
> </Parameters></MM:DataSet>
> <MM:PageBind runat="server" PostBackBind="true" />
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
> <title>LOGIN</title>
> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">
> <link href="backoffice.css" rel="stylesheet" type="text/css">
> </head>
> <body>
> <p>&nbsp;</p>
> <p>&nbsp;</p>
> <form method="POST" enctype="application/x-www-form-urlencoded" id="form1" > runat="server">
> <table width="379" height="379" border="0" align="center"
> background="images/selfmanager.jpg" class="tblresults">
> <tbody>
> <tr>
> <td height="190" valign="bottom"><div align="center"><strong>
> </strong></div></td>
> </tr>
> <tr>
> <td><div align="center" class="style1">
> </div></td>
> </tr>
> <tr>
> <td><div align="center"></div></td>
> </tr>
> <tr>
> <td bgcolor="#FFFFFF"><div align="center" class="style3"><span
> class="style1"><span class="style2">
> <asp:Label ID="txt_failed" runat="server" />
> </span></span>Gebruikersnaam:</div></td>
> </tr>
> <tr>
> <td>
> <div align="center">
> <asp:TextBox id="user_name" runat="server"></asp:TextBox>
> <asp:RequiredFieldValidator ID="RequiredFieldValidator1"
> EnableClientScript="true" Display="Dynamic" ErrorMessage="Verplicht"
> ControlToValidate="user_name" runat="server"></asp:RequiredFieldValidator> > </div></td>
> </tr>
> <tr>
> <td bgcolor="#FFFFFF"><div align="center"
> class="style3">Wachtwoord:</div></td>
> </tr>
> <tr>
> <td>
> <div align="center">
> <asp:TextBox ID="user_password" runat="server"
> TextMode="Password"
> />
> <asp:RequiredFieldValidator ID="RequiredFieldValidator2"
> EnableClientScript="true" Display="Dynamic" ErrorMessage="Verplicht"
> ControlToValidate="user_password"
> runat="server"></asp:RequiredFieldValidator>
> </div></td>
> </tr>
> <tr>
> <td><div align="center"></div></td>
> </tr>
> <tr>
> <td>
> <div align="center">
> <asp:Button ID="submit" OnClick="onlogin" runat="server"
> Text="LOG-IN"></asp:Button>
> </div></td>
> </tr>
> <tr>
> <td>
> <div align="center">
> <script runat="server">
> sub onlogin (sender As Object, e As System.EventArgs)
> response.write("ok1")
> if dsusers.recordcount > 0 then
> Formsauthentication.redirectfromloginpage("backoff ice", true)
> response.redirect("/backoffice/accesslevel1/index.aspx")
> else if ((request.form("user_password")))<> nothing OR
> ((request.form("user_name"))) <> nothing
> txt_failed.text="Login MISLUKT. Probeer opnieuw."
> end if
> end sub
> </script>
>
> </div></td>
> </tr>
> </tbody>
> </table>
>
> </form>
> </body>
> </html>
> ####################### CODE END #######################
>
>



Nov 19 '05 #4
Yep
They did the fix and it works now.
So didn't have to do the work-around.

THX a lot !

"Tampa.NET Koder" <an*******@microsoft.com> wrote in message
news:OI**************@TK2MSFTNGP14.phx.gbl...
Just to be clear. You should copy that folder from your machine (testing)
to your hosting enviornment. This is the work-a-round. Then leave it up to your hosting provider make the correct fix as posted by MSFT.
"nicholas" <mu********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Great !

THX a lot.
Sent it to my hoster. Hope it helps.
Ciao
"Tampa.NET Koder" <an*******@microsoft.com> wrote in message
news:uZ**************@TK2MSFTNGP10.phx.gbl...
Copy the aspnet_client folder (I think thats the name) from the root
directory of your web server ( c:\Inetpub\wwwroot\aspnet_client) to the

root
directory of your webfolder on the server. That should get this working. This is a bug in the .net 1.1. See article below. Your hosting admins
would need to follow whats is the document to prevent this.
http://support.microsoft.com/?kbid=889877

"nicholas" <mu********@hotmail.com> wrote in message
news:ec**************@tk2msftngp13.phx.gbl...
> Weird thing:
>
> Got an aspx page with a button and an associated code in VB.net.
> On my testing server the page works fine.
> On the old hosters server the page worked fine too.
> But now, at the new hoster it does not.
>
> When I click on the submit button: nothing happens.
> The only thing that works is form validation.
>
> I pasted the code below.
> It's a login page, but I added this in the code to be sure that the
> problem
> is on this page:
> response.write("ok1")
> So even this ok1 does not appear.
> In fact, when I click on the button, the page is not posted.
>
> Could it be a setting at the hosters server. The hoster says asp.net
> scripting is active for the whole site.
> PS: other aspx pages on the same website with buttons etc do work at

that
> hoster.
> I really don't get it.
>
> THX for help !
>
> ####################### CODE START #######################
>
> <%@ Page Language="VB" ContentType="text/html"
> ResponseEncoding="iso-8859-1"
> %>
> <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls"
>

Assembly="DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,c
> ulture=neutral" %>
> <MM:DataSet
> id="dsusers"
> runat="Server"
> IsStoredProcedure="false"
> ConnectionString='<%#
>

System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING
> _connusers") %>'
> DatabaseType='<%#
>

System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABA
> SETYPE_connusers") %>'
> CommandText='<%# "SELECT * FROM tbl_users WHERE user_name = ? AND
> user_password = ?" %>'
> Debug="true"
>><Parameters>
> <Parameter Name="@user_name" Value='<%#

IIf((Request.Form("user_name")
> <> Nothing), Request.Form("user_name"), "") %>' Type="WChar" />
> <Parameter Name="@user_password" Value='<%#
> IIf((Request.Form("user_password") <> Nothing),
> Request.Form("user_password"), "") %>' Type="WChar" />
> </Parameters></MM:DataSet>
> <MM:PageBind runat="server" PostBackBind="true" />
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
> <title>LOGIN</title>
> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">
> <link href="backoffice.css" rel="stylesheet" type="text/css">
> </head>
> <body>
> <p>&nbsp;</p>
> <p>&nbsp;</p>
> <form method="POST" enctype="application/x-www-form-urlencoded"

id="form1"
> runat="server">
> <table width="379" height="379" border="0" align="center"
> background="images/selfmanager.jpg" class="tblresults">
> <tbody>
> <tr>
> <td height="190" valign="bottom"><div align="center"><strong>
> </strong></div></td>
> </tr>
> <tr>
> <td><div align="center" class="style1">
> </div></td>
> </tr>
> <tr>
> <td><div align="center"></div></td>
> </tr>
> <tr>
> <td bgcolor="#FFFFFF"><div align="center" class="style3"><span
> class="style1"><span class="style2">
> <asp:Label ID="txt_failed" runat="server" />
> </span></span>Gebruikersnaam:</div></td>
> </tr>
> <tr>
> <td>
> <div align="center">
> <asp:TextBox id="user_name" runat="server"></asp:TextBox>
> <asp:RequiredFieldValidator ID="RequiredFieldValidator1"
> EnableClientScript="true" Display="Dynamic" ErrorMessage="Verplicht"
> ControlToValidate="user_name"

runat="server"></asp:RequiredFieldValidator>
> </div></td>
> </tr>
> <tr>
> <td bgcolor="#FFFFFF"><div align="center"
> class="style3">Wachtwoord:</div></td>
> </tr>
> <tr>
> <td>
> <div align="center">
> <asp:TextBox ID="user_password" runat="server"
> TextMode="Password"
> />
> <asp:RequiredFieldValidator ID="RequiredFieldValidator2"
> EnableClientScript="true" Display="Dynamic" ErrorMessage="Verplicht"
> ControlToValidate="user_password"
> runat="server"></asp:RequiredFieldValidator>
> </div></td>
> </tr>
> <tr>
> <td><div align="center"></div></td>
> </tr>
> <tr>
> <td>
> <div align="center">
> <asp:Button ID="submit" OnClick="onlogin" runat="server"
> Text="LOG-IN"></asp:Button>
> </div></td>
> </tr>
> <tr>
> <td>
> <div align="center">
> <script runat="server">
> sub onlogin (sender As Object, e As System.EventArgs)
> response.write("ok1")
> if dsusers.recordcount > 0 then
> Formsauthentication.redirectfromloginpage("backoff ice", true)
> response.redirect("/backoffice/accesslevel1/index.aspx")
> else if ((request.form("user_password")))<> nothing OR
> ((request.form("user_name"))) <> nothing
> txt_failed.text="Login MISLUKT. Probeer opnieuw."
> end if
> end sub
> </script>
>
> </div></td>
> </tr>
> </tbody>
> </table>
>
> </form>
> </body>
> </html>
> ####################### CODE END #######################
>
>



Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: tshad | last post by:
I posted this on the asp.net group, also. I wasn't sure whether this was an asp.net problem or a javascript problem. I have a page that was originally created from a program I found on the net...
11
by: CW | last post by:
I have message entry screen that's causing me a bit of an issue. At the moment, there are 2 buttons, one is used to send message to another user (btnSend) and another is used to send messages to...
8
by: tatemononai | last post by:
I had a beautiful script that was running, well, just beautifully. But then I decided to take a button that fired an event and place it inside a <asp:table. The event WILL NOT FIRE INSIDE THE...
1
by: Klaus Jensen | last post by:
Hi! This has been annoying me all day, and I can't get it to work It is really driving me nuts! Basicly this simple webapp created to illustrate my problem, renders five buttons, and adds a...
4
by: John Smith | last post by:
I have a continuous form. there is a command button with the following code for the OnClick event: DoCmd.OpenForm "frmPlants", , , "PlantsID =" & Me!PlantsID I click the button and frmPlants...
11
by: bill | last post by:
I dynamically create buttons and associate them with an event using AddHandler. I want all the button events to fire at one time, when the page is posted, instead of when each button is clicked....
8
by: Richard Maher | last post by:
Hi, I am in a mouseup event for button A and I'd like to disable=false button B before starting some work. Is there anyway that an event for button B can then fire before my event processing for...
5
by: swatidesai0407 | last post by:
hi im validating radio buttons i create dis radio button in php based on some how many records of my query. i wrote a javascript to validate this buttons. wat i do is dat wen no radio button...
1
by: Jeffrey Christiansen | last post by:
I wanted to add a toggle button to a VB2005 form to be used for a simple Windows Application (i.e. compiled to a "*.exe"), so I added the ActiveX Microsoft Forms Object toggle button, however I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.