locked
How to create vertical panel RRS feed

  • Question

  • Hi,

    I want to create something like this

    But I need to order the door in Vertical way, not horizontal.  I created that using panel server control but I didnt find any properties to make it vertical.

    Can anyone help to solve my problem? Many thanks :)

    • Moved by Jason Dot Wang Thursday, September 27, 2012 8:13 AM This thread is about ASP.NET (From:Visual C# General)
    Wednesday, September 19, 2012 11:40 AM

Answers

  • Hi

    What you are looking for is the Flow Layout Panel - that will set to horizontal and vertical, so will fulfil your needs.

    You should really have placed this in the ASP.NET forums. You would have got a quicker answer.


    Digital Forensic Software Developer
    CCS LABS Digital Forensic Software
    Mark as Answer or Vote up if useful thank you!

    • Proposed as answer by Dave A Gordon Friday, September 21, 2012 8:17 AM
    • Marked as answer by Just Karl Tuesday, September 24, 2013 8:16 PM
    Friday, September 21, 2012 8:17 AM
  • Hi wapt49,

      Welcome to MSDN Forum Support.

      You are more likely to get more efficient responses to ASP.NET issues at http://forums.asp.net where you can contact ASP.NET experts.

      Sincerely,

      Jason Wang


    Jason Wang [MSFT]
    MSDN Community Support | Feedback to us

    • Marked as answer by Just Karl Tuesday, September 24, 2013 8:16 PM
    Thursday, September 27, 2012 8:13 AM

All replies

  • Can you provide more code describing how you are adding the controls to the Panel?

    Wednesday, September 19, 2012 3:41 PM
  • Please explain briefly.Give some more details.
    Thursday, September 20, 2012 11:59 AM
  • If it is a Web application, then put “<br/>” tag between doors.

    Thursday, September 20, 2012 1:26 PM
  • Hi BhushanShah,

      Could you provide more information about its implementation technologies indeed using Winform or using Webform? If using Webform, Viorel has posted a reference suggestion for solving it. If using Winform, you'd better removing the Anchor properties of internal controls inside of this panel so that these controls could be auto-vertical arranged.


    orichisonic http://blog.csdn.net/orichisonic If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".

    Friday, September 21, 2012 4:12 AM
  • Hi all,

    Sorry I just replied it yet. I am using ASP.Net (Webform) and this is my Code

    <asp:Panel ID="panel_kunde" runat="server" Visible="False">
        <asp:ImageButton ID="img_kunde_Anlagenbau" runat="server"
            ImageUrl="~/_layouts/images/MyVisualWebPart/viewdoorskachel_türkis.png"
            onclick="img_kunde_Anlagenbau_Click" />
        &nbsp;&nbsp;&nbsp;
        <asp:ImageButton ID="img_kunde_Elektroteknik" runat="server"
            ImageUrl="~/_layouts/images/MyVisualWebPart/viewdoorskachel_türkis.png"
            onclick="img_kunde_Elektroteknik_Click" />
        &nbsp;&nbsp;&nbsp;
        <asp:ImageButton ID="img_kunde_Maschinenbau" runat="server"
            ImageUrl="~/_layouts/images/MyVisualWebPart/viewdoorskachel_türkis.png"
            onclick="img_kunde_Maschinenbau_Click" />
    </asp:Panel>

    However I don't think a good Idea to use <br/> because I need to put the Image inside a container that I can set visibility to on or off. At the end I need to create something like this

    Thanks

    Friday, September 21, 2012 4:22 AM
  • If you do not like <br/> then consider CSS way. For example assign to images a CSS class that has the following property: “display: block”.

    Friday, September 21, 2012 6:14 AM
  • Hi Viorel,

    Thanks for your suggestion. As Alternative ,Is there any control in ASP.Net like panel but I can set it vertically?

    Friday, September 21, 2012 8:09 AM
  • Hi

    What you are looking for is the Flow Layout Panel - that will set to horizontal and vertical, so will fulfil your needs.

    You should really have placed this in the ASP.NET forums. You would have got a quicker answer.


    Digital Forensic Software Developer
    CCS LABS Digital Forensic Software
    Mark as Answer or Vote up if useful thank you!

    • Proposed as answer by Dave A Gordon Friday, September 21, 2012 8:17 AM
    • Marked as answer by Just Karl Tuesday, September 24, 2013 8:16 PM
    Friday, September 21, 2012 8:17 AM
  • Please explain briefly.Give some more details.

    Dear Bhushan,

    brief is opposite of details.


    Pl. Mark/Proposed as Answer if found your solution Vote as Helpful if related to your topic. Always Motivate others by performing this Action.

    • Edited by ArifMustafa Friday, September 21, 2012 8:25 AM
    Friday, September 21, 2012 8:25 AM
  • Hi Dave,

    I think Flow Layout Panel only for winforms. I cant find it on webform. Am I Right?

    Friday, September 21, 2012 8:27 AM
  • Yeah - sorry my bad.

    Use the DataGridView - it is the normal way of organising data (object) layouts vertically.


    Digital Forensic Software Developer
    CCS LABS Digital Forensic Software
    Mark as Answer or Vote up if useful thank you!

    Friday, September 21, 2012 11:16 AM
  • Please explain briefly.Give some more details.

    Dear Bhushan,

    brief is opposite of details.


    Pl. Mark/Proposed as Answer if found your solution Vote as Helpful if related to your topic. Always Motivate others by performing this Action.

    I was trying to say the Same... You beat me to it.

    .NET Maniac -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

    Friday, September 21, 2012 12:46 PM
  • Hi BhushanShah,

      Could you provide more information about its implementation technologies indeed using Winform or using Webform? If using Webform, Viorel has posted a reference suggestion for solving it. If using Winform, you'd better removing the Anchor properties of internal controls inside of this panel so that these controls could be auto-vertical arranged.


    orichisonic http://blog.csdn.net/orichisonic If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".

    Bhushan Shah is not the one asking the Question.

    .NET Maniac -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

    Friday, September 21, 2012 12:47 PM
  • Hi wapt49,

      Welcome to MSDN Forum Support.

      You are more likely to get more efficient responses to ASP.NET issues at http://forums.asp.net where you can contact ASP.NET experts.

      Sincerely,

      Jason Wang


    Jason Wang [MSFT]
    MSDN Community Support | Feedback to us

    • Marked as answer by Just Karl Tuesday, September 24, 2013 8:16 PM
    Thursday, September 27, 2012 8:13 AM