D
dave.friesen
In a three or four year old site that use to work. I wrote it utilizing
inline code, I have lost the postback ability from controls that have
the runat="server" attribute. I am not sure if this happened when I
updated the machine with 2.0. Here is my Page directive. Am I missing a
setting? Thanks for your help in advance.
<%@ Page Language="VB" Debug=True %>
Sub Page_Load
PreviousPage=Request.QueryString("ReDirectPage")
TeamID=request.querystring("TeamID")
LeagueID=request.querystring("LeagueID")
If CheckLoginStatus(2, TeamID)=True Then
Response.Redirect(PreviousPage & "?LeagueID=" & cstr(LeagueID) &
"&TeamID=" & cstr(TeamID))
Else
If val(Session("LoginTries")) > 3 Then
Response.Redirect("OverLoginAttempts.aspx?LeagueID=" & LeagueID &
"&TeamID=" & cstr(TeamID))
Else
If len(trim(UserPass.Text)) > 0 Then
lbnLogin=Checklogin(UserPass.Text)
If lbnLogin=True Then
Response.Redirect("OverLoginAttempts.aspx?LeagueID=" & LeagueID &
"&TeamID=" & cstr(TeamID))
End IF
End If
End If
End IF
End Sub
<body topmargin="0" leftmargin="0">
<form id="Form1" runat="server">
<!-- #INCLUDE FILE="header.inc" -->
<table width=100%>
<tr>
<td width=80%>
<table valign=top align=center cellpadding=1 cellspacing=1
class="BBABREV" >
<tr>
<td class="TDHead" colspan=2>Coach Login Page
</td>
<tr>
<td class="TDRow">
Password:</td>
<td class="TDRow" align=left>
<asp:TextBox id="UserPass" runat="server" cssclass="TextLeft"
TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator id="Requiredfieldvalidator2"
runat="server" ControlToValidate="UserPass" Display="Static"
ErrorMessage="*"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="TDRow"><asp:Label id="Msg" runat="server"
ForeColor="red"></asp:Label>
</td>
<td ALIGN=RIGHT><asp:button id="LoginBtn"
onclick="LoginBtn_Click" runat="server" text="Login
Crap"></asp:button>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- #INCLUDE FILE="footer.inc" -->
</form>
</body>
inline code, I have lost the postback ability from controls that have
the runat="server" attribute. I am not sure if this happened when I
updated the machine with 2.0. Here is my Page directive. Am I missing a
setting? Thanks for your help in advance.
<%@ Page Language="VB" Debug=True %>
Sub Page_Load
PreviousPage=Request.QueryString("ReDirectPage")
TeamID=request.querystring("TeamID")
LeagueID=request.querystring("LeagueID")
If CheckLoginStatus(2, TeamID)=True Then
Response.Redirect(PreviousPage & "?LeagueID=" & cstr(LeagueID) &
"&TeamID=" & cstr(TeamID))
Else
If val(Session("LoginTries")) > 3 Then
Response.Redirect("OverLoginAttempts.aspx?LeagueID=" & LeagueID &
"&TeamID=" & cstr(TeamID))
Else
If len(trim(UserPass.Text)) > 0 Then
lbnLogin=Checklogin(UserPass.Text)
If lbnLogin=True Then
Response.Redirect("OverLoginAttempts.aspx?LeagueID=" & LeagueID &
"&TeamID=" & cstr(TeamID))
End IF
End If
End If
End IF
End Sub
<body topmargin="0" leftmargin="0">
<form id="Form1" runat="server">
<!-- #INCLUDE FILE="header.inc" -->
<table width=100%>
<tr>
<td width=80%>
<table valign=top align=center cellpadding=1 cellspacing=1
class="BBABREV" >
<tr>
<td class="TDHead" colspan=2>Coach Login Page
</td>
<tr>
<td class="TDRow">
Password:</td>
<td class="TDRow" align=left>
<asp:TextBox id="UserPass" runat="server" cssclass="TextLeft"
TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator id="Requiredfieldvalidator2"
runat="server" ControlToValidate="UserPass" Display="Static"
ErrorMessage="*"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="TDRow"><asp:Label id="Msg" runat="server"
ForeColor="red"></asp:Label>
</td>
<td ALIGN=RIGHT><asp:button id="LoginBtn"
onclick="LoginBtn_Click" runat="server" text="Login
Crap"></asp:button>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- #INCLUDE FILE="footer.inc" -->
</form>
</body>