Ask a Question related to ASP.NET General, Design and Development.
-
Nathon Dalton #1
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))))
Next
Else
If IsNumeric(Request("CallSheetID")) Then
strResponse =
BuildSummary(Convert.ToInt32(Request("CallSheetID" )), _
Convert.ToInt32(Request("CallSheetID")))
End If
End If
If strResponse.Length > 0 Then
Response.ContentType = "application/msword"
Response.Write(strResponse)
Response.Flush()
Try
Response.End()
Catch ex As System.Threading.ThreadAbortException
Return
End Try
End If
End If
End Sub
Nathon Dalton Guest
-
Show layer when page loads
Below code is for tabbed navigation. I want Tab 1 to show when the page is loaded. Currently just the tabs appear and user has to click to see... -
Page loads slow
Take a look at this site I'm working on. http://www.viswiz.biz/simacor/simacor.html Does anyone else watch the background images loading in... -
Editing any page for review loads home page
:confused; One workstation somehow always jumps to the home page of our intranet whenever ANY page sent for review is attempted 2 b opened for... -
loading different layers on page loads
hello, I was wondering if there was a way to load a layer on a page specific to a link on another page. for example -> I have 4 news topics on my... -
Flash Movie loads before page
How can I get the entire page and all images to load before my flash movie loads? The movie starts before all of my images have loaded. Thanks,...



Reply With Quote

