Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh required all the time? (ASP.NET)

Status
Not open for further replies.

Bullfrog1870

Technical User
Dec 26, 2005
15
US
I have a simple report being displayed via ASP.NET in VB. Every time I hit a navigate button on the CRViewer toolbar the report disappears (no errors). I had to add the following code to my Page_Load routine to get the results I wanted.

If Page.IsPostBack Then
reportDocument1.Load(gstrReportDirectory & DropDownList1.SelectedValue & ".rpt")
CrystalReportViewer1.ReportSource = reportDocument1
reportDocument1.Refresh()
End If

Is this necessary or am I missing a setting somewhere? Seems like it would be smart enough to refresh on its own.

I'm confused!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top