Click here to Skip to main content
12,446,146 members (26,011 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET C#4.0 image
<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 15-Feb-13 8:24am
Updated 15-Feb-13 20:18pm
v3

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
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.
Sandeep Mewara 15-Feb-13 15:55pm
   
My 5! Yup, using server side delimiters would do the job.
Sergey Alexandrovich Kryukov 15-Feb-13 15:56pm
   
Thank you again.
—SA
footballpardeep 16-Feb-13 2:07am
   
Sorry, but i don't get how the links are related to my question.
   
Please start over. Start reading on how ASP.NET works in principle. It looks like you have no clue.
—SA
footballpardeep 16-Feb-13 2:13am
   
i think i am not able to explain my problem. let me update my question.Thanks

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160811.3 | Last Updated 16 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100