473,396 Members | 2,033 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,396 software developers and data experts.

Refresh Browser in ASP.Net

pbb
I've got an app I made in asp.net using vb.net and
Crystal 9. I use a little javascript to launch a new
window (a web form in .net with the Crystal Report Viewer
control on it) when the user clicks a button. Everything
works great the first time a report is run, but to run
another report the user has to close the viewer window.
Here is the code I'm using to open the viewer window:

Private Sub btnRunReport_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
If Session("boolRunReport") = True Then
Response.Write("<script language='javascript'>" & vbCrLf
& _
"var newWin =window.open(" & """"
& "frmReportViewer.aspx" & _
"""" & "," & """" & "ReportViewer" & """" & _
"," & """"
& "width=780,height=screen.availHeight,left=230,top= 0," &
_
"scrollbars=1,resizable=1" & """" & ")" & vbCrLf
& "</script>")
Else
'Launch new report viewer window
Response.Write("<script language='javascript'>" & vbCrLf
& _
"var newWin =window.open(" & """"
& "frmReportViewer.aspx" & _
"""" & "," & """" & "ReportViewer" & """" & "," & """"
& "width=780," & _
"height=screen.availHeight,left=230,top=0,scrollba rs=1,"
& _
"resizable=1" & """" & ")" & vbCrLf & "</script>")
Session("boolRunReport") = True
End If
End Sub
A strange thing I noticed yesterday - if I run a report,
then attempt to run another report - the browser "clicks"
like its changing but nothing changes in the window. If I
then click the "Refresh" button on the Crystal viewer,
the new report is displayed! Any help is greatly
appreciated.

Jul 21 '05 #1
1 5546

i ran into that type of problem with my calendar click
event. to fix it, i set the calendar control's
enableviewstate=false. try setting u r page
enableviewstate=false.
Jul 21 '05 #2

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

Similar topics

4
by: vickie_raven | last post by:
is there any way to force a refresh of a page that a user visits?? sorry i am still learning. vickie
11
by: Tom Post | last post by:
I am doing a simple php header refresh -- header('refresh: 10; url=msgs.php'); that just does a call back to my script every 10 seconds. Things work great when the page is first loaded up, but if...
19
by: Jay | last post by:
I'm trying to refresh browser when some new information is available in DB. is there any way to force to refresh browser? Thanks. -Kev
4
by: Alejandro Narancio | last post by:
Hi, i have this situation. One page open another page in a separated instance of the browser, i neek to refresh every five minutes the first page but without take the focus, anybody know how can i...
1
by: Matt | last post by:
When we refresh the page (F5, or icon in browser), it will first trigger ONUNLOAD event and then trigger ONLOAD event. When we close the browser (X on right top icon), it will trigger ONUNLOAD...
7
by: milkyway | last post by:
Hello to all ;-) I am using the Visual Studio 2005 .NET framework. Basically, I have file that is served up as an HTML file on the client side (generated from a .aspx file). But - the HTML...
2
by: Raj | last post by:
Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence of events are 1) I click a button in the parent...
4
by: Mike | last post by:
On my web app I allow the user to enable or disable the refreshing of the page. I notcied that if the browser window is minimized the page does not refresh, or if it sits a long time without any...
8
by: Jason S | last post by:
Hi, is there any way of getting my VB (6.0) program to automatically 'Refresh' an IE window that might be active (window status not applicable). It needs to be able to determine which active IE...
10
by: Bill Nguyen | last post by:
I would like to be able to get an active browser window to refresh the URL (reload) every 5 minutes. Is it possible in VB.NET? Thanks Bill
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.