Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can this be interpreted as a bug?
Message
De
28/05/2006 21:31:34
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Can this be interpreted as a bug?
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01125597
Message ID:
01125597
Vues:
56
I have an image map control on the form. The following condition is evaluated to true:
            Dim loControl As System.Web.UI.Control = New System.Web.UI.Control
            Dim loControlImage As System.Web.UI.WebControls.Image
            Dim loControlImageMap As System.Web.UI.WebControls.ImageMap

            For lnCounter = 1 To oApp.ParmCnt(tcID)
                lcControl = oApp.GetParm(tcID, lnCounter)
                loControl = oApp.oPage.FindControl(lcControl)

                ' If the control is an image
                If TypeOf loControl Is System.Web.UI.WebControls.Image Then
                    loControlImage = CType(loControl, System.Web.UI.WebControls.Image)
                    loControlImage.ImageUrl = oApp.cLanguage + "/" + loControlImage.ImageUrl
                    oApp.AddJavascriptMessage("we should not be here " + loControlImage.ID)
                End If
In the message I am showing, it shows in fact that the control is interpreted in this condition. However, the control is ImageMap not Image. But, the compiler takes it as an image and enters in the condition. This is not correct. Is there a way to workaround that bug?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform