how to make all block of code on one row bootstrap or CSS ?

Ahmed Salah Abed Elaziz 390 Reputation points
2024-02-04T21:47:24.7633333+00:00

I work on asp.net mvc I face issue on design I can't display all this block of code on one row bootstrab so  How to display all block of code on view as asp.net mvc  Issue on code below it displaybon two rows bootsrtab and i need to display it as one row  desired is to display all block start from if until end to one row col-md-9 and col-md-3 or as you see 

@if ((Session[BLL.Common.SessionKeys.WhichApprove].ToString() == "3" && Session[BLL.Common.SessionKeys.RoleCode].ToString() == "LDM") ||
(Session[BLL.Common.SessionKeys.WhichApprove].ToString() == "3" && Session[BLL.Common.SessionKeys.RoleCode].ToString() == "LM") ||
(Session[BLL.Common.SessionKeys.WhichApprove].ToString() == "3" && Session[BLL.Common.SessionKeys.RoleCode].ToString() == "DM") ||
(Session[BLL.Common.SessionKeys.RoleCode].ToString() == "REQ"))
   {


       if (Model.DirectManagerStatus != "Cancelled")
       {
           if (Model.RevokeRequest == "")
           {
               <a id="RevokeRequestId" onclick="RevokeRequest();" class="btn btn-danger" style="min-width: 100px; margin-top: 5px; margin-left: 5px;">
                   <i class="glyphicon glyphicon-remove"></i>
                   Cancel
               </a>
           }

           if (Model.RevokeRequest == "1" && Model.WhoRevokeRequest != "1")
           {
               <a id="RefuseRevokeRequestId" onclick="RefuseRevokeRequest();" class="btn btn-primary" style="min-width: 100px; margin-top: 5px; margin-left: 5px;">
                   <i class="glyphicon glyphicon-ok"></i>
                   Refuse
               </a>
               <a id="AcceptRevokeRequestId" onclick="AcceptRevokeRequest();" class="btn btn-primary" style="min-width: 100px; margin-top: 5px; margin-left: 5px;">
                   <i class="glyphicon glyphicon-ok"></i>
                   Accept Cancel
               </a>
           }
       }


       if (ViewBag.AllowEnabledRequest == false && Model.LineManagerStatus == "Approve" && Model.ReturnProcess == "1")
       {


           <div class="row" style="margin-top:5px;">
               <div class="col-md-9">
                   @if (ViewBag.AllowEnabledRequest == false)
                   {
                       <label style="font-size:16px;font-weight:bold;color:red">Last working date is revised by manager. Please provide your acceptance</label>
                   }
               </div>
               <div class="col-md-3">
                   <a id="btnApprove" onclick="ConfirmationAcceptLastWorkingDate();" class="btn btn-primary" style="min-width: 150px; margin-left: 10px; height: 30px;"><i class="glyphicon glyphicon-ok"></i> Accept </a>
                   <a id="btnrejectChanges" onclick="ConfirmationRejectChanges();" class="btn btn-danger" style="min-width: 150px; margin-left: 10px; height: 30px;margin-left:5px;"><i class="glyphicon glyphicon-remove"></i> Reject </a>
               </div>

           </div>

       }
       if (ViewBag.AllowEnabledRequest == false && Model.DirectManagerStatus == "Approve" && Model.ReturnProcess == "2")
       {

           <div class="row" style="margin-top:5px;">
               <div class="col-md-9">
                   <label style="font-size:16px;font-weight:bold;color:red">Last working date is revised by manager. Please provide your acceptance</label>
               </div>
               <div class="col-md-3">
                   <a id="btnApprove" onclick="ConfirmationAcceptLastWorkingDate();" class="btn btn-primary" style="min-width: 150px; margin-left: 10px; height: 30px;"><i class="glyphicon glyphicon-ok"></i> Accept </a>
                   <a id="btnrejectChanges" onclick="ConfirmationRejectChanges();" class="btn btn-danger" style="min-width: 150px; margin-left: 10px; height: 30px;margin-left:5px;"><i class="glyphicon glyphicon-remove"></i> Reject </a>
               </div>

           </div>

       }

   }
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,417 questions
{count} votes