Hello again everyone,
I have found another problem when using the imageviewer control:
Pressing the browser refresh button after page load causes a blank image to be inserted into the image viewer or one or more of the images does not render.
Case 2 images in the viewer.
Reresh page.
blank image in viewer, scroll left or right... wala the images show up and the control removes the blank space. What is going on here?
Code
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
Dim dbl_GoalOne As Double
Dim dbl_MileStone As Double
Dim dbl_CurrentSales As Double
Dim str_GoalTitle As String = ""
Dim str_MileStoneTitle As String = ""
ds = get_CurentSalesTotalandGoals()
If Request.Browser.Type.ToString.Contains("Firefox") Then
wiv_Main.StyleSetName = "RubberBlack"
wiv_Main.StyleSetPath = "~/ig_res"
End If
If Not ds.Tables.Count = 0 Then
str_GoalTitle = ds.Tables("TableName").Rows(0).Item("DataField")
If Not ds.Tables("TableName").Rows(0).Item("DataField") Is System.DBNull.Value Then
str_MileStoneTitle = ds.Tables("TableName").Rows(0).Item("DataField")
Else
Hide_MilestoneMarker()
set_CurrentSalesMonthly(dbl_CurrentSales, dbl_GoalOne)
set_CurrentSalesQuarterly(dbl_CurrentSales, dbl_MileStone)
lbl_User_Messages.Visible = True
lbl_User_Messages.Text += " :The data was not retrived from the DataBase."
wiv_Main.Items.Add(New Infragistics.Web.UI.ListControls.ImageItem("~/GaugeImages/GuageQuarterly.png", "SomeText", "SomeText"))
'Else 'This code is not fixing the problem
' wiv_Main.Items.Add(New Infragistics.Web.UI.ListControls.ImageItem("~/GaugeImages/GuageMonthly.png", "Some Text", "Some Text"))
' wiv_Main.Items.Add(New Infragistics.Web.UI.ListControls.ImageItem("~/GaugeImages/GuageQuarterly.png", "Some Text", "Some Text"))
End Sub
Any solutions?
Patrick
HI Patrick,
I was not able to reproduce the issue. I simply have 2 images in a WebImageViewer and hit the refresh button on the browser. What are the URLs of these new blank images?
I would recommend submitting this issue to support with your sample so that this issue can be quickly resolved.
Thanks
-SteveZ
http://devcenter.infragistics.com/Protected/SubmitSupportIssue.aspx
Also, when I use the Image Report feature of the tool, the images display correctly in the report.