Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: 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
Edited 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 at 15-Feb-13 14:36pm
   
Sir can u plz explain little bit.
Sergey Alexandrovich Kryukov at 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 at 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 at 15-Feb-13 15:56pm
   
Thank you, Sandeep, just in time. I just up-voted this article.
—SA
Sandeep Mewara at 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 at 15-Feb-13 15:55pm
   
My 5! Yup, using server side delimiters would do the job.
Sergey Alexandrovich Kryukov at 15-Feb-13 15:56pm
   
Thank you again.
—SA
footballpardeep at 16-Feb-13 2:07am
   
Sorry, but i don't get how the links are related to my question.
Sergey Alexandrovich Kryukov at 16-Feb-13 2:10am
   
Please start over. Start reading on how ASP.NET works in principle. It looks like you have no clue.
—SA
footballpardeep at 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
0 Sergey Alexandrovich Kryukov 424
1 Nirav Prabtani 298
2 OriginalGriff 199
3 _Amy 165
4 Maciej Los 145
0 OriginalGriff 7,755
1 Sergey Alexandrovich Kryukov 6,951
2 Maciej Los 3,994
3 Peter Leow 3,698
4 CHill60 2,742


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 16 Feb 2013
Copyright © CodeProject, 1999-2014
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