473,320 Members | 1,955 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,320 software developers and data experts.

Events not firing after a Response.Redirect from another Web App

I have two web applications that I am working with and I am trying to do a
Response.Redirect from one to the other. They are setup as separate web
applications on the same IIS server. If I go directly to the second
application in a browser, all of my events fire correctly. However, if I
have the first application do a Response.Redirect to the second, for some
reason none of my events on the second application ever get fired. After I
perform some action on the second application and it posts back to itself,
the IsPostBack is always returning false.

Does anyone know what could be causing this to happen?

I would greatly appreciate your help on this.
Nov 19 '05 #1
3 3452
Could you post complete code, both from the .aspx and the code-behind?

Jeppe Jespersen
"michael_vanommeren" <mi****************@discussions.microsoft.com> skrev i
en meddelelse news:DB**********************************@microsof t.com...
I have two web applications that I am working with and I am trying to do a
Response.Redirect from one to the other. They are setup as separate web
applications on the same IIS server. If I go directly to the second
application in a browser, all of my events fire correctly. However, if I
have the first application do a Response.Redirect to the second, for some
reason none of my events on the second application ever get fired. After
I
perform some action on the second application and it posts back to itself,
the IsPostBack is always returning false.

Does anyone know what could be causing this to happen?

I would greatly appreciate your help on this.

Nov 19 '05 #2
Here is the ASPX code:

<%@ Page Language="vb" AutoEventWireup="false"
CodeBehind="AccessFormGetADID.aspx.vb" Inherits="Access.AccessFormGetADID" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<HTML>
<HEAD>
<title>
<asp:literal runat="server" id="litPageTitle" />
</title>
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="author" content="Concentra">
<link href="/includes/css/my.css" type="text/css" rel="stylesheet">
<!-- TemplateBeginEditable name="EditableHead" --> <!--
TemplateEndEditable -->
</HEAD>
<body>
<div id="site">
<div id="frame">
<div id="border">
<div id="top">
<div id="topBG"><a href="solutionCenter.aspx">Contact the Solution
Center</a></div>
</div>
<div id="frameContent">
<div id="frameBG" style="BACKGROUND-IMAGE: none">
<div id="utility">
<div id="utilityForm" style="FLOAT:left">
</div>
<div id="utilityLinks" style="FLOAT:right">
</div>
</div>
<div id="mainContent">
<form runat="server">
<div id="actualContent"><div id="pageTitle">Problems Accessing
MyConcentra?</div>
<!-- TemplateBeginEditable name="PageContent" -->
<asp:label id="lblTitle" runat="server" font-bold="True"
cssclass="sectionTitles">Setup My Active Directory ID</asp:label>
<BR>
<BR>
<asp:label id="lblMessage" runat="server" font-bold="True">All
information should be entered as it exists on your pay check.</asp:label>
<BR>
<BR>
<asp:label id="lblSearchError" runat="server" font-bold="true"
forecolor="#ff0000"></asp:label>
<asp:table id="tblADID" runat="server" cellspacing="0"
cellpadding="4">
<asp:tablerow>
<asp:tablecell horizontalalign="Right">Active Directory
ID</asp:tablecell>
<asp:tablecell>
<asp:label id="lblADID" runat="server" forecolor="#ff0000"
font-bold="true" />
</asp:tablecell>
</asp:tablerow>
</asp:table>
<asp:table id="tblFormGetADID" runat="server" cellspacing="0"
cellpadding="4">
<asp:tablerow>
<asp:tablecell horizontalalign="Right">First Name</asp:tablecell>
<asp:tablecell>
<asp:textbox runat="server" id="txtSearchFirstName" />
<asp:requiredfieldvalidator runat="server"
controltovalidate="txtSearchFirstName" display="Dynamic" errormessage="*"
id="requSFirstName" />
</asp:tablecell>
</asp:tablerow>
<asp:tablerow>
<asp:tablecell horizontalalign="Right">Last Name</asp:tablecell>
<asp:tablecell>
<asp:textbox runat="server" id="txtSearchLastName" />
<asp:requiredfieldvalidator runat="server"
controltovalidate="txtSearchLastName" display="Dynamic" errormessage="*"
id="requSLastName" />
</asp:tablecell>
</asp:tablerow>
<asp:tablerow>
<asp:tablecell horizontalalign="Right"
verticalalign="Top">EmployeeID</asp:tablecell>
<asp:tablecell verticalalign="Top" >
<asp:textbox runat="server" id="txtSearchEmployeeID"
maxlength="8" />
<asp:requiredfieldvalidator runat="server"
controltovalidate="txtSearchEmployeeID" display="Dynamic" errormessage="*"
id="requSEmployeeID" />
<br>
7 digits including leading zeros
</asp:tablecell>
</asp:tablerow>
<asp:tablerow>
<asp:tablecell horizontalalign="Right" verticalalign="Top">Birth
Date</asp:tablecell>
<asp:tablecell verticalalign="Top">
<asp:textbox runat="server" id="txtSearchBirthDate"
maxlength="10" />
<asp:regularexpressionvalidator runat="server"
controltovalidate="txtSearchBirthDate" display="Dynamic" errormessage="*
(MM/DD/YYYY)"
validationexpression="^([0]?[1-9]|[1][0-2])[./-]([0]?[1-9]|[1|2][0-9]|[3][0|1])[./-]([0-9]{4}|[0-9]{2})$" id="Regularexpressionvalidator1" />
<asp:requiredfieldvalidator runat="server"
controltovalidate="txtSearchBirthDate" display="Dynamic" errormessage="*
(MM/DD/YYYY)" id="requSBirthDate" />
<br>
Ex: 08/25/2005
</asp:tablecell>
</asp:tablerow>
<asp:tablerow>
<asp:tablecell columnspan="2" horizontalalign="Center">
<asp:button runat="server" id="btnSearch" text="Search" />
</asp:tablecell>
</asp:tablerow>
</asp:table>
<!-- TemplateEndEditable -->
</div>
</form>
</div>
<div class="cleaner"></div>
</div>
</div>
</div>
</div>
<div id="copyright">
<div id="right">
<div id="left">
<div id="bottom">
<asp:label runat="server" id="lblCopyright" text="© 2005 Concentra
Operating Corp. All Rights Reserved." />
</div>
</div>
</div>
</div>
</div>
</body>
</HTML>

codebehind page:
Imports System.Data.SqlClient

Public Class AccessFormGetADID
Inherits System.Web.UI.Page

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()

End Sub
Protected WithEvents txtSearchFirstName As
System.Web.UI.WebControls.TextBox
Protected WithEvents txtSearchLastName As
System.Web.UI.WebControls.TextBox
Protected WithEvents txtSearchEmployeeID As
System.Web.UI.WebControls.TextBox
Protected WithEvents txtSearchBirthDate As
System.Web.UI.WebControls.TextBox
Protected WithEvents lblADID As System.Web.UI.WebControls.Label
Protected WithEvents btnSearch As System.Web.UI.WebControls.Button
Protected WithEvents lblSearchError As System.Web.UI.WebControls.Label
Protected WithEvents tblADID As System.Web.UI.WebControls.Table
Protected WithEvents tblFormGetADID As System.Web.UI.WebControls.Table
Protected WithEvents lblMessage As System.Web.UI.WebControls.Label
Protected WithEvents lblTitle As System.Web.UI.WebControls.Label
Protected WithEvents lblCopyright As System.Web.UI.WebControls.Label

'NOTE: The following placeholder declaration is required by the Web Form
Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub

#End Region

Private strADID As String

Private strConnectionString As String = "Data Source=ADD1WAAH; Initial
Catalog=Security; User ID=XXXX;Password=XXXX"

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Page.Trace.Warn("IsPostBack = " + IsPostBack.ToString())

strADID = Request.QueryString("ADID")
lblADID.Text = strADID
End Sub
Protected Sub btnSearch_Click(ByVal sender As Object, ByVal e As
EventArgs) Handles btnSearch.Click
' if the ADID was detected, then just tie it to the people record
Trace.Warn("Search Event.")

If Not (strADID Is Nothing) Then
Trace.Warn("Tie AD ID to person record.")
If (TieADIDtoPersonRecord(strADID) = False) Then
Me.lblSearchError.Visible = True
Me.lblSearchError.Text = "The information entered could not
be resolved in the database.<br>Please check the information entered and try
again."
Me.tblADID.Visible = True
Me.tblFormGetADID.Visible = True
Else
Me.lblSearchError.Visible = False
Me.lblSearchError.Text = ""
Me.tblADID.Visible = False
Me.tblFormGetADID.Visible = False
End If
Me.lblADID.Text = strADID
Else
If (SearchPersonRecord() = False) Then
Me.lblSearchError.Visible = True
Me.lblSearchError.Text = "Person could not be found in the
database."
Me.tblFormGetADID.Visible = True
Else
Me.lblSearchError.Visible = False
Me.lblSearchError.Text = ""
Me.tblFormGetADID.Visible = False
Me.tblADID.Visible = True
End If
End If
End Sub
Private Function TieADIDtoPersonRecord(ByVal str As String) As Boolean
Dim conn As New SqlConnection(strConnectionString)
Dim cmd As SqlCommand
Dim strCommand = "usp_TieADIDToPerson"
Dim blnReturn As Boolean = True
Try
Trace.Warn("str = " + str)
conn.Open()
cmd = New SqlCommand(strCommand, conn)
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.Add(New SqlParameter("@v_employeeID",
Me.txtSearchEmployeeID.Text))
cmd.Parameters.Add(New SqlParameter("@v_firstName",
Me.txtSearchFirstName.Text))
cmd.Parameters.Add(New SqlParameter("@v_lastName",
Me.txtSearchLastName.Text))
cmd.Parameters.Add(New SqlParameter("@v_birthDate",
Me.txtSearchBirthDate.Text))
cmd.Parameters.Add(New SqlParameter("@v_ADID", str))
cmd.ExecuteNonQuery()
lblADID.Text = cmd.Parameters("@v_ADID").Value

Me.lblMessage.Visible = True
Me.lblMessage.Text = "Your account has been setup. You may now
access <a href=""http://myconcentra/"">MyConcentra</a>."
Catch exc As Exception
blnReturn = False
Finally
conn.Close()
End Try

Return blnReturn
End Function
Private Function SearchPersonRecord() As Boolean
Dim conn As New SqlConnection(strConnectionString)
Dim cmd As SqlCommand
Dim strCommand = "usp_SearchPersonReturnADID"
Dim blnReturn As Boolean = True
Try
conn.Open()
cmd = New SqlCommand(strCommand, conn)
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.Add(New SqlParameter("@v_employeeID",
Me.txtSearchEmployeeID.Text))
cmd.Parameters.Add(New SqlParameter("@v_firstName",
Me.txtSearchFirstName.Text))
cmd.Parameters.Add(New SqlParameter("@v_lastName",
Me.txtSearchLastName.Text))
cmd.Parameters.Add(New SqlParameter("@v_birthDate",
Me.txtSearchBirthDate.Text))
cmd.Parameters.Add(New SqlParameter("@v_ADID",
SqlDbType.VarChar, 200))
cmd.Parameters("@v_ADID").Direction = ParameterDirection.Output
cmd.ExecuteNonQuery()
lblADID.Text = cmd.Parameters("@v_ADID").Value

Me.lblMessage.Visible = True
Me.lblMessage.Text = "Your Active Directory ID has been found.
You may now login to MyConcentra."
Catch exc As Exception
blnReturn = False
Finally
conn.Close()
End Try

Return blnReturn
End Function
End Class

"Jeppe Dige Jespersen" wrote:
Could you post complete code, both from the .aspx and the code-behind?

Jeppe Jespersen
"michael_vanommeren" <mi****************@discussions.microsoft.com> skrev i
en meddelelse news:DB**********************************@microsof t.com...
I have two web applications that I am working with and I am trying to do a
Response.Redirect from one to the other. They are setup as separate web
applications on the same IIS server. If I go directly to the second
application in a browser, all of my events fire correctly. However, if I
have the first application do a Response.Redirect to the second, for some
reason none of my events on the second application ever get fired. After
I
perform some action on the second application and it posts back to itself,
the IsPostBack is always returning false.

Does anyone know what could be causing this to happen?

I would greatly appreciate your help on this.


Nov 19 '05 #3
Hello Michael,

Thansk for posting the code. I tried a setup similar to what i believe
you're trying, and unfortunately, I'm not getting the same results as you.

I put the posted code in app2, and created an app1 that simply
response.redirects to app2. Page_Load fires when i redirect to app2, and
when I postback on app2, the isPostback returns what it should. True.

So for this one, I'll have to throw in my towel. :-(

Jeppe

"michael_vanommeren" <mi****************@discussions.microsoft.com> skrev i
en meddelelse news:2C**********************************@microsof t.com...
Here is the ASPX code:

<%@ Page Language="vb" AutoEventWireup="false"
CodeBehind="AccessFormGetADID.aspx.vb" Inherits="Access.AccessFormGetADID"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<HTML>
<HEAD>
<title>
<asp:literal runat="server" id="litPageTitle" />
</title>
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="author" content="Concentra">
<link href="/includes/css/my.css" type="text/css" rel="stylesheet">
<!-- TemplateBeginEditable name="EditableHead" --> <!--
TemplateEndEditable -->
</HEAD>
<body>
<div id="site">
<div id="frame">
<div id="border">
<div id="top">
<div id="topBG"><a href="solutionCenter.aspx">Contact the Solution
Center</a></div>
</div>
<div id="frameContent">
<div id="frameBG" style="BACKGROUND-IMAGE: none">
<div id="utility">
<div id="utilityForm" style="FLOAT:left">
</div>
<div id="utilityLinks" style="FLOAT:right">
</div>
</div>
<div id="mainContent">
<form runat="server">
<div id="actualContent"><div id="pageTitle">Problems Accessing
MyConcentra?</div>
<!-- TemplateBeginEditable name="PageContent" -->
<asp:label id="lblTitle" runat="server" font-bold="True"
cssclass="sectionTitles">Setup My Active Directory ID</asp:label>
<BR>
<BR>
<asp:label id="lblMessage" runat="server" font-bold="True">All
information should be entered as it exists on your pay check.</asp:label>
<BR>
<BR>
<asp:label id="lblSearchError" runat="server" font-bold="true"
forecolor="#ff0000"></asp:label>
<asp:table id="tblADID" runat="server" cellspacing="0"
cellpadding="4">
<asp:tablerow>
<asp:tablecell horizontalalign="Right">Active Directory
ID</asp:tablecell>
<asp:tablecell>
<asp:label id="lblADID" runat="server" forecolor="#ff0000"
font-bold="true" />
</asp:tablecell>
</asp:tablerow>
</asp:table>
<asp:table id="tblFormGetADID" runat="server" cellspacing="0"
cellpadding="4">
<asp:tablerow>
<asp:tablecell horizontalalign="Right">First Name</asp:tablecell>
<asp:tablecell>
<asp:textbox runat="server" id="txtSearchFirstName" />
<asp:requiredfieldvalidator runat="server"
controltovalidate="txtSearchFirstName" display="Dynamic" errormessage="*"
id="requSFirstName" />
</asp:tablecell>
</asp:tablerow>
<asp:tablerow>
<asp:tablecell horizontalalign="Right">Last Name</asp:tablecell>
<asp:tablecell>
<asp:textbox runat="server" id="txtSearchLastName" />
<asp:requiredfieldvalidator runat="server"
controltovalidate="txtSearchLastName" display="Dynamic" errormessage="*"
id="requSLastName" />
</asp:tablecell>
</asp:tablerow>
<asp:tablerow>
<asp:tablecell horizontalalign="Right"
verticalalign="Top">EmployeeID</asp:tablecell>
<asp:tablecell verticalalign="Top" >
<asp:textbox runat="server" id="txtSearchEmployeeID"
maxlength="8" />
<asp:requiredfieldvalidator runat="server"
controltovalidate="txtSearchEmployeeID" display="Dynamic" errormessage="*"
id="requSEmployeeID" />
<br>
7 digits including leading zeros
</asp:tablecell>
</asp:tablerow>
<asp:tablerow>
<asp:tablecell horizontalalign="Right" verticalalign="Top">Birth
Date</asp:tablecell>
<asp:tablecell verticalalign="Top">
<asp:textbox runat="server" id="txtSearchBirthDate"
maxlength="10" />
<asp:regularexpressionvalidator runat="server"
controltovalidate="txtSearchBirthDate" display="Dynamic" errormessage="*
(MM/DD/YYYY)"
validationexpression="^([0]?[1-9]|[1][0-2])[./-]([0]?[1-9]|[1|2][0-9]|[3][0|1])[./-]([0-9]{4}|[0-9]{2})$"
id="Regularexpressionvalidator1" />
<asp:requiredfieldvalidator runat="server"
controltovalidate="txtSearchBirthDate" display="Dynamic" errormessage="*
(MM/DD/YYYY)" id="requSBirthDate" />
<br>
Ex: 08/25/2005
</asp:tablecell>
</asp:tablerow>
<asp:tablerow>
<asp:tablecell columnspan="2" horizontalalign="Center">
<asp:button runat="server" id="btnSearch" text="Search" />
</asp:tablecell>
</asp:tablerow>
</asp:table>
<!-- TemplateEndEditable -->
</div>
</form>
</div>
<div class="cleaner"></div>
</div>
</div>
</div>
</div>
<div id="copyright">
<div id="right">
<div id="left">
<div id="bottom">
<asp:label runat="server" id="lblCopyright" text="© 2005 Concentra
Operating Corp. All Rights Reserved." />
</div>
</div>
</div>
</div>
</div>
</body>
</HTML>

codebehind page:
Imports System.Data.SqlClient

Public Class AccessFormGetADID
Inherits System.Web.UI.Page

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()

End Sub
Protected WithEvents txtSearchFirstName As
System.Web.UI.WebControls.TextBox
Protected WithEvents txtSearchLastName As
System.Web.UI.WebControls.TextBox
Protected WithEvents txtSearchEmployeeID As
System.Web.UI.WebControls.TextBox
Protected WithEvents txtSearchBirthDate As
System.Web.UI.WebControls.TextBox
Protected WithEvents lblADID As System.Web.UI.WebControls.Label
Protected WithEvents btnSearch As System.Web.UI.WebControls.Button
Protected WithEvents lblSearchError As System.Web.UI.WebControls.Label
Protected WithEvents tblADID As System.Web.UI.WebControls.Table
Protected WithEvents tblFormGetADID As System.Web.UI.WebControls.Table
Protected WithEvents lblMessage As System.Web.UI.WebControls.Label
Protected WithEvents lblTitle As System.Web.UI.WebControls.Label
Protected WithEvents lblCopyright As System.Web.UI.WebControls.Label

'NOTE: The following placeholder declaration is required by the Web
Form
Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub

#End Region

Private strADID As String

Private strConnectionString As String = "Data Source=ADD1WAAH; Initial
Catalog=Security; User ID=XXXX;Password=XXXX"

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Page.Trace.Warn("IsPostBack = " + IsPostBack.ToString())

strADID = Request.QueryString("ADID")
lblADID.Text = strADID
End Sub
Protected Sub btnSearch_Click(ByVal sender As Object, ByVal e As
EventArgs) Handles btnSearch.Click
' if the ADID was detected, then just tie it to the people record
Trace.Warn("Search Event.")

If Not (strADID Is Nothing) Then
Trace.Warn("Tie AD ID to person record.")
If (TieADIDtoPersonRecord(strADID) = False) Then
Me.lblSearchError.Visible = True
Me.lblSearchError.Text = "The information entered could not
be resolved in the database.<br>Please check the information entered and
try
again."
Me.tblADID.Visible = True
Me.tblFormGetADID.Visible = True
Else
Me.lblSearchError.Visible = False
Me.lblSearchError.Text = ""
Me.tblADID.Visible = False
Me.tblFormGetADID.Visible = False
End If
Me.lblADID.Text = strADID
Else
If (SearchPersonRecord() = False) Then
Me.lblSearchError.Visible = True
Me.lblSearchError.Text = "Person could not be found in the
database."
Me.tblFormGetADID.Visible = True
Else
Me.lblSearchError.Visible = False
Me.lblSearchError.Text = ""
Me.tblFormGetADID.Visible = False
Me.tblADID.Visible = True
End If
End If
End Sub
Private Function TieADIDtoPersonRecord(ByVal str As String) As Boolean
Dim conn As New SqlConnection(strConnectionString)
Dim cmd As SqlCommand
Dim strCommand = "usp_TieADIDToPerson"
Dim blnReturn As Boolean = True
Try
Trace.Warn("str = " + str)
conn.Open()
cmd = New SqlCommand(strCommand, conn)
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.Add(New SqlParameter("@v_employeeID",
Me.txtSearchEmployeeID.Text))
cmd.Parameters.Add(New SqlParameter("@v_firstName",
Me.txtSearchFirstName.Text))
cmd.Parameters.Add(New SqlParameter("@v_lastName",
Me.txtSearchLastName.Text))
cmd.Parameters.Add(New SqlParameter("@v_birthDate",
Me.txtSearchBirthDate.Text))
cmd.Parameters.Add(New SqlParameter("@v_ADID", str))
cmd.ExecuteNonQuery()
lblADID.Text = cmd.Parameters("@v_ADID").Value

Me.lblMessage.Visible = True
Me.lblMessage.Text = "Your account has been setup. You may now
access <a href=""http://myconcentra/"">MyConcentra</a>."
Catch exc As Exception
blnReturn = False
Finally
conn.Close()
End Try

Return blnReturn
End Function
Private Function SearchPersonRecord() As Boolean
Dim conn As New SqlConnection(strConnectionString)
Dim cmd As SqlCommand
Dim strCommand = "usp_SearchPersonReturnADID"
Dim blnReturn As Boolean = True
Try
conn.Open()
cmd = New SqlCommand(strCommand, conn)
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.Add(New SqlParameter("@v_employeeID",
Me.txtSearchEmployeeID.Text))
cmd.Parameters.Add(New SqlParameter("@v_firstName",
Me.txtSearchFirstName.Text))
cmd.Parameters.Add(New SqlParameter("@v_lastName",
Me.txtSearchLastName.Text))
cmd.Parameters.Add(New SqlParameter("@v_birthDate",
Me.txtSearchBirthDate.Text))
cmd.Parameters.Add(New SqlParameter("@v_ADID",
SqlDbType.VarChar, 200))
cmd.Parameters("@v_ADID").Direction = ParameterDirection.Output
cmd.ExecuteNonQuery()
lblADID.Text = cmd.Parameters("@v_ADID").Value

Me.lblMessage.Visible = True
Me.lblMessage.Text = "Your Active Directory ID has been found.
You may now login to MyConcentra."
Catch exc As Exception
blnReturn = False
Finally
conn.Close()
End Try

Return blnReturn
End Function
End Class

"Jeppe Dige Jespersen" wrote:
Could you post complete code, both from the .aspx and the code-behind?

Jeppe Jespersen
"michael_vanommeren" <mi****************@discussions.microsoft.com> skrev
i
en meddelelse news:DB**********************************@microsof t.com...
>I have two web applications that I am working with and I am trying to do
>a
> Response.Redirect from one to the other. They are setup as separate
> web
> applications on the same IIS server. If I go directly to the second
> application in a browser, all of my events fire correctly. However, if
> I
> have the first application do a Response.Redirect to the second, for
> some
> reason none of my events on the second application ever get fired.
> After
> I
> perform some action on the second application and it posts back to
> itself,
> the IsPostBack is always returning false.
>
> Does anyone know what could be causing this to happen?
>
> I would greatly appreciate your help on this.


Nov 19 '05 #4

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

Similar topics

2
by: nerd | last post by:
Hi, I've easily implemented an HttpModule and use AcquireRequestState to initialize an object and ReleaseRequestState store to session. Unfortunately if a Response.Redirect takes place. The...
5
by: Rob | last post by:
ok, so im ready to absolutely throw my self right into the monitor, can anyone explain why certain events fire before others in asp.net? in my case, after some processing a final download aspx page...
13
by: Chris | last post by:
I can create Javascript confirm message boxes during page creation, etc adding them to the button attributes (many good posts on this!). But how can I add this event after the button is pressed? I...
1
by: Ahmet Gunes | last post by:
Hi all, I check whether session is alive in Page_Load. If session is not alive then I want to navigate to another page, most probably the login page. But when a control, a button for...
19
by: furiousmojo | last post by:
This is a strange problem. I have a project where the contents of global.asax application_error are not firing. It is an asp.net 2.0 application using web application projects. I have another...
6
by: Steve Hershoff | last post by:
Hi everyone, I've got a strange one here. There are two datagrids on my page, one nested within the other. I'll refer to them as the topmost and secondary datagrids. In the topmost...
1
by: mpaine | last post by:
I have read http://msdn2.microsoft.com/en-us/library/ms178472(VS.80).aspx and my interpretation is that custom events should be fired between Page_Load and Page_LoadComplete. When I run the...
6
by: Mel | last post by:
I have a website that allows the user to generate a new quote. When they are finished creating the quote, it brings them to the final page (called the Goodbye.aspx page) which just states the...
4
by: jehugaleahsa | last post by:
Hello: Is there a way to prevent one event from firing while another event is already being fired? I have a tool that extracts media from web pages and it has multiple events firing when the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.