Velocity Reviews

Velocity Reviews (
-   ASP .Net (
-   -   Help, page loads twice (

Nathon Dalton 06-26-2003 04:49 PM

Help, page loads twice
I need help! A page I'm working on builds an HTML string based on a bunch of
data in different tables and databases. Then it does a response.write with a
contenttype of application/msword. The result being an HTML page that's
editable in word, inside of Internet Explorer. The problem I'm getting is
that the page is loading twice. It's blowing out session information, so I
can't keep track of how many times it has ran. Here's the code.

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim strRequest() As String
Dim x As Integer
Dim strResponse As String
If Not Page.IsPostBack Then
If Not Request("CallSheetID") Is Nothing AndAlso _
Convert.ToString(Request("CallSheetID")).IndexOf(" ,") > 0 Then
strRequest = Convert.ToString(Request("CallSheetID")).Split("," )
For x = 0 To strRequest.GetUpperBound(0)
strResponse += BuildSummary(Convert.ToInt32(strRequest(x)),
Convert.ToInt32(strRequest(strRequest.GetUpperBoun d(0))))
If IsNumeric(Request("CallSheetID")) Then
strResponse =
BuildSummary(Convert.ToInt32(Request("CallSheetID" )), _
End If
End If
If strResponse.Length > 0 Then
Response.ContentType = "application/msword"
Catch ex As System.Threading.ThreadAbortException
End Try
End If
End If
End Sub

All times are GMT. The time now is 04:05 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.