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
Python
@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)
{
Last working date is revised by manager. Please provide your acceptance
}
Accept
Reject
}
if (ViewBag.AllowEnabledRequest == false && Model.DirectManagerStatus == "Approve" && Model.ReturnProcess == "2")
{
Last working date is revised by manager. Please provide your acceptance
Accept
Reject
}
}
Jayraj ChhayaRank #304 · 8.2K reputationPosted Feb 5, 2024, 1:49 AM EST
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..code-block { display: inline-block; width: 70%; /* Adjust the width as needed */ }Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts