I have a page that called Quote that works within a master page. On the Quote page, there are 10 instance of a QuoteItem UserControl, which within the Quote page, I need to loop through the UserControls public properties. See the code snippet
I can see the internal functions, but not the public properties which I don't understand in the intellisense, which makes m ething the public properties should also be visible. Maybe I am missing something here.
I've tried a number of things, but any property of obj is unknown.
What am I missing here?
Dim content As ContentPlaceHolder
content = Page.Master.FindControl("ContentPlaceHolder1")
Dim validItems As Boolean = True
Dim basicPremium As Double = 0
Dim overAgeLiability As Double = 0
Dim overAgePremium As Double = 0
Dim totalPrice As Double = 0
Dim totalLoadsLowAttach As Double = 0
Dim premium As Double = 0
For x As Integer = 1 To 10
Dim obj As UserControl = CType(content.FindControl("QID" & x.ToString), Quote_Sentry_QuoteItem)
If obj.valid Then
basicPremium = basicPremium + obj.BasicPremium
overAgeLiability = overAgeLiability + obj.OverAgeLiability
overAgePremium = overAgePremium + obj.OverAgePremium
totalPrice = totalPrice + obj.TotalPrice
totalLoadsLowAttach = totalLoadsLowAttach + TotalLoadsLowAttachment
premium = premium + obj.FinalPremium
validItems = False