Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

ASP.net hide menu

Hi. I am trying to use VB.net to hide the following part of my page. I can't see an ID so not sure what to do. A css designer modified this part of the page

<div class="card filter-card mb-4">
    <div class="card-body">
        <div class="dropdown-button-wrapper">
            <a class="btn-dropdown dropdown-toggle d-block" data-toggle="collapse" href="#widthCollapse" role="button" aria-expanded="false" aria-controls="widthCollapse">
                                            Width
            </a>
        </div>
        <div class="collapse filter-body w-100" id="widthCollapse">
            <input class="form-control mb-3" id="Width1" runat="server" type="text" placeholder="From" />
            <input class="form-control" id="Width2" runat="server" type="text" placeholder="To" />
        </div>
    </div>
    <div class="card-body">
        <div class="dropdown-button-wrapper">
            <a class="btn-dropdown dropdown-toggle d-block" data-toggle="collapse" href="#lengthCollapse" role="button" aria-expanded="false" aria-controls="lengthCollapse">
                                            Length
            </a>
        </div>
        <div class="collapse filter-body w-100" id="lengthCollapse">
            <input class="form-control mb-3" id="Length1" runat="server" type="text" placeholder="From" />
            <input class="form-control" id="Length2" runat="server" type="text" placeholder="To"/>
        </div>
    </div>
    <div class="card-body">
        <div class="dropdown-button-wrapper">
            <a class="btn-dropdown dropdown-toggle d-block" data-toggle="collapse" href="#thicknessCollapse" role="button" aria-expanded="false" aria-controls="thicknessCollapse">
                                            Thickness
            </a>
        </div>
        <div class="collapse filter-body w-100" id="thicknessCollapse">
            <input class="form-control mb-3" id="Thickness1" runat="server" type="text" placeholder="From" />
            <input class="form-control" id="Thickness2" runat="server" type="text" placeholder="To"/>
        </div>
    </div>
    <div class="card-body">
        <div class="dropdown-button-wrapper">
            <a class="btn-dropdown dropdown-toggle d-block" data-toggle="collapse" href="#randsPerTonCollapse" role="button" aria-expanded="false" aria-controls="randsPerTonCollapse">
                                            Rands per Ton
            </a>
        </div>
        <div class="collapse filter-body w-100" id="randsPerTonCollapse">
            <input class="form-control mb-3" id="RandsPerTon1" runat="server" type="text" placeholder="From" />
            <input class="form-control" id="RandsPerTon2" runat="server" type="text" placeholder="To"/>
        </div>
    </div>
</div>

Open in new window

Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

Hi Murray,

On Which condition you are trying to hide this menu? Also, are you using WebForms or MVC?
Also, please use the code highlighter to highligt the code. It helps a lot while reading the code.

Regards,
Chinmay.
Avatar of Murray Brown

ASKER

HI. I am using webforms.I think that I need an ID in order to use the ASP.net element in my code
ASKER CERTIFIED SOLUTION
Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks very much. Sorry about late acceptance
No problem Murray :) Glad I could help.