Click here to Skip to main content
14,305,109 members
   

ASP.NET

 
GeneralRe: why's the error not found namespace or class ? Pin
Mycroft Holmes23-Apr-19 19:18
memberMycroft Holmes23-Apr-19 19:18 
GeneralRe: why's the error not found namespace or class ? Pin
OriginalGriff23-Apr-19 20:03
protectorOriginalGriff23-Apr-19 20:03 
Question.Net Core 2.2.3 with Angular, preparing for Docker Container Deployment with MongoDB running in a container, all Linux going crazy Pin
jkirkerx5-Apr-19 12:27
professionaljkirkerx5-Apr-19 12:27 
AnswerRe: .Net Core 2.2.3 with Angular, preparing for Docker Container Deployment with MongoDB running in a container, all Linux going crazy Pin
jkirkerx7-Apr-19 11:50
professionaljkirkerx7-Apr-19 11:50 
AnswerFinally figured it out! Pin
jkirkerx11-Apr-19 12:47
professionaljkirkerx11-Apr-19 12:47 
QuestionMy div repeated 3 times if format its css if use form runas server Pin
Ashraf Khalifah4-Apr-19 23:25
memberAshraf Khalifah4-Apr-19 23:25 
AnswerRe: My div repeated 3 times if format its css if use form runas server Pin
Vinod Jangle11-Apr-19 8:48
memberVinod Jangle11-Apr-19 8:48 
Question(SOLVED) WHy is my image not displaying on a certain page? Pin
samflex3-Apr-19 6:28
membersamflex3-Apr-19 6:28 
Can someone please help me understand why images is not displaying on this page?

I have a calendar that displays various events with appropriate pictures.

On the calendar itself, a small image is displayed (this works fine).

Here is the code for that:

  <body>
        <form id="Form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
            <dc:DataCalendar id="cal1" runat="server"
                             DayField="EventDate" OnVisibleMonthChanged="MonthChange" 
                Height="295px" Width="275px" BorderColor="#EFEFDE" 
                DayNameFormat="Shortest" SelectedDate="2012-11-17">

                <DayStyle HorizontalAlign="Left" VerticalAlign="Top"
                          Font-Size="7" Font-Names="Arial" BackColor="white" />
                          
                <OtherMonthDayStyle BackColor="white" ForeColor="white" />
 
                <ItemTemplate>
                    <a href='#' OnClick="javascript:window.open('admin/eventDetails.aspx?id=<%# Container.DataItem("EventID") %>','EventsDetail','width=800,height=600;toolbar=no;');" & ">                    
                        <img  alt="" src='images/<%# Container.DataItem("CategoryImage") %>' height="12" width="12" align="absmiddle" border="0" /><br />
                        <font color='<%# Container.DataItem("CategoryColor") %>'>
                            <%# Container.DataItem("EventTitle") %>
                        </font>
                    </a>            
                </ItemTemplate>

                <TitleStyle BackColor="#CEDFCE" Font-Bold="True" />
              
            </dc:DataCalendar>
    </ContentTemplate>
</asp:UpdatePanel>
        </form>
    </body>


en you on any given date, you are taken to the details page of that part event.

This is where a larger image is supposed to be displayed.

However, the image is not displaying. It is not even showing the little icon when picture is not present.

What am I doing wrong?

Here is that code for the eventDetails page.

Thanks in advance for your assistance.

//VB

Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
        If Not IsPostBack Then
            If (Not (Request.QueryString("id")) Is Nothing) Then
                Session("apomember") = Request.QueryString("id")
            End If
            BindGrid()
        End If
    End Sub
    Private Sub BindGrid()
        Dim myConnectionstring As String = ConfigurationManager.ConnectionStrings("test").ConnectionString
        Dim myConn As New SqlConnection(myConnectionstring)
        myConn.Open()
        Dim cmd As New SqlCommand("SELECT e.EventID, e.EventTitle, e.EventDescription, e.EventDate, c.CategoryTitle, c.CategoryImage, c.CategoryColor " &
                                  "FROM Events e INNER JOIN Categories c ON e.EventCategory = c.CategoryID where c.CategoryID = @apoid ORDER BY e.EventDate", myConn)
        cmd.Parameters.AddWithValue("@apoid", Session("apomember"))
        Dim dr As SqlDataReader = cmd.ExecuteReader()
        If dr.Read() Then
            txtTitle.Text = dr("EventTitle").ToString()
            txtTitle.Text = dr("EventDate").ToString()
            txtDate.Text = dr("EventDescription").ToString()
            txtDescription.Text = dr("EventTitle").ToString()
            txtCategory.Text = dr("CategoryImage").ToString()
        End If
        myConn.Close()
    End Sub


//Markup

<form id="form1" runat="server">
        <div>
<a href="#" id="logo"><img src="/images/skin1/owerri_logo.jpg" Height="245"  Width="322"alt="Owerri Family Union" border="0" title="Owerri Family Union" /></a>           Owerri Family Union, Atlanta, GA - USA
        </div>
            <hr />
            <table>
                <tr style="margin-top:10px;">
                    <td>Event Title:</td>
                    <td><asp:Label id="txtTitle" runat="server"></asp:Label></td>
                </tr>

                <tr style="margin-top:10px;">
                    <td>Event Date:</td>
                    <td><asp:Label id="txtDate" runat="server"></asp:Label></td>
                </tr>

                <tr style="margin-top:10px;">
                    <td>Event Description:</td>
                    <td><asp:Label id="txtDescription" runat="server"></asp:Label></td>
                </tr>

                <tr style="margin-top:10px;">
                    <td>Category:</td>
                    <td>
                        <asp:Image ID="Image1" ImageUrl='/admin/memberPhotos/ & <%# Eval("CategoryImage") %>' runat="server" Height="100"  Width="100" />                      
                        <asp:Label id="txtCategory" runat="server"></asp:Label></td>
                </tr>

            </table>
    </form>


modified 3-Apr-19 15:56pm.

AnswerRe: WHy is my image not displaying on a certain page? Pin
Richard Deeming3-Apr-19 7:48
mveRichard Deeming3-Apr-19 7:48 
GeneralRe: WHy is my image not displaying on a certain page? Pin
samflex3-Apr-19 9:56
membersamflex3-Apr-19 9:56 
GeneralRe: WHy is my image not displaying on a certain page? Pin
Richard Deeming3-Apr-19 22:00
mveRichard Deeming3-Apr-19 22:00 
GeneralRe: WHy is my image not displaying on a certain page? Pin
samflex4-Apr-19 5:59
membersamflex4-Apr-19 5:59 
QuestionLoad event fires twice and QueryString becomes empty!! Pin
pldelosrios2-Apr-19 3:41
memberpldelosrios2-Apr-19 3:41 
SuggestionRe: Load event fires twice and QueryString becomes empty!! Pin
Richard Deeming2-Apr-19 8:16
mveRichard Deeming2-Apr-19 8:16 
QuestionError 550 Permission denied: Windows Server 7 FTP Server ? Pin
Member 245846722-Mar-19 18:13
memberMember 245846722-Mar-19 18:13 
GeneralRe: Error 550 Permission denied: Windows Server 7 FTP Server ? Pin
Richard MacCutchan22-Mar-19 23:10
protectorRichard MacCutchan22-Mar-19 23:10 
GeneralRe: Error 550 Permission denied: Windows Server 7 FTP Server ? Pin
Member 245846724-Mar-19 18:35
memberMember 245846724-Mar-19 18:35 
QuestionWant to find out differences between two branches (local or remote) in Git Pin
simpledeveloper22-Mar-19 20:47
membersimpledeveloper22-Mar-19 20:47 
AnswerRe: Want to find out differences between two branches (local or remote) in Git Pin
Richard MacCutchan23-Mar-19 2:29
protectorRichard MacCutchan23-Mar-19 2:29 
QuestionMessage Closed Pin
20-Mar-19 0:08
memberMember 1281182220-Mar-19 0:08 
Questionvisual studio for mac, Unexpected character '�' (CS1056) Pin
Member 1182460318-Mar-19 16:25
memberMember 1182460318-Mar-19 16:25 
AnswerRe: visual studio for mac, Unexpected character '�' (CS1056) Pin
Richard MacCutchan18-Mar-19 22:57
protectorRichard MacCutchan18-Mar-19 22:57 
QuestionNot declared or inaccessible due to protection levels - VS 2017 errors Pin
Member 876166718-Mar-19 8:42
memberMember 876166718-Mar-19 8:42 
AnswerRe: Not declared or inaccessible due to protection levels - VS 2017 errors Pin
Richard Deeming18-Mar-19 9:27
mveRichard Deeming18-Mar-19 9:27 
GeneralRe: Not declared or inaccessible due to protection levels - VS 2017 errors Pin
Member 876166718-Mar-19 10:52
memberMember 876166718-Mar-19 10:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.