Murray Brown
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>
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thanks very much. Sorry about late acceptance
No problem Murray :) Glad I could help.
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.