P
Patrick.O.Ige
The SignOut() button below doesn't fire if in a UserControl but if i move it
to an ASPX page it fires..
It seems i can't get access to the SUB in the USERCONTROL.
Am i missing something?
Any ideas?
I have a userControl below:-
----------------------------
<%@ Control CodeBehind="_Header.ascx.vb" Language="vb"
AutoEventWireup="false" Inherits="Test.C_Header" %>
<td align="center" width="65">
<input id="cmdSignOut" type="submit" Value="Sign Out"
runat="server" onserverclick="SignOut"
NAME="cmdSignOut">
In usercontrol codebehind i have:-
---------------------------------
Protected WithEvents cmdSignOut As
System.Web.UI.HtmlControls.HtmlInputButton
Sub SignOut(ByVal objSender As Object, ByVal objArgs As EventArgs) Handles
cmdSignOut.ServerClick
'System.Web.Security.FormsAuthentication.SignOut()
'Response.Redirect(Request.UrlReferrer.ToString())
'Response.Write("asdsadas")
Response.Redirect("logout.aspx")
End Sub
to an ASPX page it fires..
It seems i can't get access to the SUB in the USERCONTROL.
Am i missing something?
Any ideas?
I have a userControl below:-
----------------------------
<%@ Control CodeBehind="_Header.ascx.vb" Language="vb"
AutoEventWireup="false" Inherits="Test.C_Header" %>
<td align="center" width="65">
<input id="cmdSignOut" type="submit" Value="Sign Out"
runat="server" onserverclick="SignOut"
NAME="cmdSignOut">
In usercontrol codebehind i have:-
---------------------------------
Protected WithEvents cmdSignOut As
System.Web.UI.HtmlControls.HtmlInputButton
Sub SignOut(ByVal objSender As Object, ByVal objArgs As EventArgs) Handles
cmdSignOut.ServerClick
'System.Web.Security.FormsAuthentication.SignOut()
'Response.Redirect(Request.UrlReferrer.ToString())
'Response.Write("asdsadas")
Response.Redirect("logout.aspx")
End Sub