I'm having some issues finding a control nested 2 levels deep.
My primary container is a RadPageView and I need to find a control inside of a Formview nested inside of that. My target is the following control:
<asp:Image ID="NPPhoto" runat="Server" CssClass="detailPhoto" />
I placed my structure in the code snippet section. I have the following code, but it's not working.
My primary container is a RadPageView and I need to find a control inside of a Formview nested inside of that. My target is the following control:
<asp:Image ID="NPPhoto" runat="Server" CssClass="detailPhoto" />
I placed my structure in the code snippet section. I have the following code, but it's not working.
Thanks.
Dim imageURL As String
If (UserID = "" Or Not System.IO.File.Exists(Server.MapPath("~/images/profile_images/" & UserID & ".jpg"))) Then
imageURL = "~/images/notavailable.gif"
Else
imageURL = "~/images/profile_images/" + UserID + ".jpg"
End If
Dim Photo As Image = CType(NPProfile.FindControl("NPPhoto"), Image)
Dim imageURL As String
If (UserID = "" Or Not System.IO.File.Exists(Serv
imageURL = "~/images/notavailable.gif
Else
imageURL = "~/images/profile_images/"
End If
Dim Photo As Image = CType(NPProfile.FindContro
Photo.ImageUrl = imageURL
<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="3"> |
<telerik:RadPageView ID="RadPageView1" runat="server"> |
<asp:FormView ID="NPProfile" runat="server"> |
<ItemTemplate> |
<div id="Desc_Photo"> |
<asp:Image ID="NPPhoto" runat="Server" CssClass="detailPhoto" /> |
</div> |
<div class="Desc_Container"> |