Click here to Skip to main content
15,885,910 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
ASP.NET
<article id="ti" class="site">
    
    <h5>
     <asp:Label ID="lblParty1" runat="server" Text="Label1"></asp:Label>
      </h5>
    

    
   
    

    <div class="shots">
      
        
    
     <a href="http://vogue.co.uk/">
      
<asp:Image  class="smartphone" ID="imgParty1" runat="server"></asp:Image>
      </a>
     
      <asp:Image class="netbook"  ID="Image1" runat="server"></asp:Image>
     
         <asp:Image class="netbook"  ID="Image2" runat="server"></asp:Image>
            <asp:Image class="netbook"  ID="Image3" runat="server"></asp:Image>
             
    </div>

    
  </article>



i want to wrap image1,image2,image3 in some container like Panel, and then all Label after Image by using Panel.controls.add(Label1);
Posted
Updated 15-Feb-13 20:18pm
v3

1 solution

This is the very basic thing in ASP.NET. You probably need to read on ASP.NET usage from scratch.

Basically, you can enclose some C# code in "server-side scripting delimiters" or "ASP.NET inline expressions": http://support.microsoft.com/kb/976112[^].

—SA
 
Share this answer
 
Comments
footballpardeep 15-Feb-13 14:36pm    
Sir can u plz explain little bit.
Sergey Alexandrovich Kryukov 15-Feb-13 14:52pm    
Explain what? Do you understand those simple code samples in this article? If not, you need to read about them. Or you can just try to apply it to your case.
—SA
Sandeep Mewara 15-Feb-13 15:54pm    
This should help you on what SA is suggesting: http://www.codeproject.com/Articles/384425/Server-side-Delimiters-in-ASP-NET
Sergey Alexandrovich Kryukov 15-Feb-13 15:56pm    
Thank you, Sandeep, just in time. I just up-voted this article.
—SA
Sandeep Mewara 15-Feb-13 15:59pm    
Thanks SA. I wrote this one last year. Was fun as it was little difficult to find all the details about them because of characters involved in it.

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