Click here to Skip to main content
12,999,633 members (42,551 online)
Rate this:
Please Sign up or sign in to vote.
<article id="ti" class="site">
     <asp:Label ID="lblParty1" runat="server" Text="Label1"></asp:Label>
    <div class="shots">
     <a href="">
<asp:Image  class="smartphone" ID="imgParty1" runat="server"></asp:Image>
      <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>

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

1 solution

Rate this: bad
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":[^].

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.
Sandeep Mewara 15-Feb-13 15:54pm
This should help you on what SA is suggesting:
Sergey Alexandrovich Kryukov 15-Feb-13 15:56pm
Thank you, Sandeep, just in time. I just up-voted this article.
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.
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.
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
Web01 | 2.8.170624.1 | Last Updated 16 Feb 2013
Copyright © CodeProject, 1999-2017
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