Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I try to list license plate numbers of each customer from database.(datalist is not responsive.)
I can not display car license plate numbers over an image of car license plate.

What I have tried:

<pre lang="HTML">
  .centeredtxt{

      
        position: absolute;
   
        }
  .bgimage{
     
      position:relative;

      }


CSS
<pre>

<div class="container-fluid">
         <div class="row">
         
        <asp:Repeater ID="RepeatList1" runat="server" >

            <ItemTemplate>
                
           <a href="#"><asp:Image class="bgimage"  ID="imgEmp" runat="server"  Width="150px" Height="40px" ImageUrl='<%# Eval("IMAGEPATH", "~/image/plaka.png") %>' /></a>  
             <a href="#"><asp:TextBox class="centeredtxt" style="height:14px; text-align:center; margin-right:152px; 
              z-index:1; width:110px" ID="lblPlaka" runat="server"  Text='<%# Eval("PLAKA") %>'></asp:TextBox></a>      
                <br />      
            </ItemTemplate>

        </asp:Repeater>
           </div>
         </div>
Posted
Comments
F-ES Sitecore 2-Dec-19 10:18am    
Eval("IMAGEPATH", "~/image/plaka.png")

That means it will always render "~/image/plaka.png" no matter what is in "IMAGEPATH". The second param is if you want to format the text, where {0} is a placeholder used for the raw text.
IT HBeken 3-Dec-19 0:37am    
Yes, Image should be the same only license numbers changing

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900