Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET C#4.0 image
<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
Edited 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 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.
Sandeep Mewara at 15-Feb-13 15:54pm
This should help you on what SA is suggesting:
Sergey Alexandrovich Kryukov at 15-Feb-13 15:56pm
Thank you, Sandeep, just in time. I just up-voted this article.
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.
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.
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 OriginalGriff 490
1 Gihan Liyanage 338
2 ChauhanAjay 180
3 Vinay Mistry 160
4 Sergey Alexandrovich Kryukov 153
0 Sergey Alexandrovich Kryukov 9,011
1 OriginalGriff 7,941
2 CPallini 2,603
3 Richard MacCutchan 2,121
4 Abhinav S 1,928

Advertise | Privacy | Mobile
Web02 | 2.8.140827.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