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 == "")
{
Cancel
}
if (Model.RevokeRequest == "1" && Model.WhoRevokeRequest != "1")
{
Refuse
Accept Cancel
}
}
if (ViewBag.AllowEnabledRequest == false && Model.LineManagerStatus == "Approve" && Model.ReturnProcess == "1")
{
}
if (ViewBag.AllowEnabledRequest == false && Model.DirectManagerStatus == "Approve" && Model.ReturnProcess == "2")
{
}
}
Jayraj ChhayaPosted Feb 5, 2024, 6:49 AM
Try below code
To display all the code blocks on one row in ASP.NET MVC, you can use Bootstrap's grid system or CSS. Here's how you can achieve this:
rowto create a row.col-md-9andcol-md-3) to define the width of each block.displayproperty of the code blocks toinline-blockorinline.widthproperty.