All Questions
Tagged with razor twitter-bootstrap
396
questions
0
votes
1
answer
36
views
Why are my Bootstrap columns stacked instead of side by side?
It is simple div container, div row, div col-md-9, div col-md-3.
This code has worked for the last 8 years or more and all of a sudden it doesn't.
It is the top part of a Final Approval letter in ...
0
votes
1
answer
181
views
How to Properly Pass Input Field Data from Bootstrap to .NET CORE MVC Controller
I'm using Bootstrap 5 and .NET Core 6/MVC for the first time. I would like to pass user input data from the input group below to my Employees controller.
Right now, I can pass parameters doing this:
&...
0
votes
2
answers
35
views
Eliminate whitespace between divs generated from loop
I have a Razor page that I'm attempting to show <div> elements in rows using Bootstrap. Each <div> is generated programmatically like this:
@foreach (var item in Model)
{
<div class=...
0
votes
0
answers
34
views
How can I vertically center a div? [duplicate]
I'm trying to center my main div for a login page both vertically and horizontally,
I've tried centering the div using d-flex align-items-center & justify-content-center , it centers the content ...
0
votes
1
answer
86
views
Bootstrap dropdown-toggle doesn't toggle
I'm at my wits end. I started up a new ASP.Net core web app and am trying to add a simple menu with a dropdown. However, the dropdown won't toggle open.
(And when is stackoverflow going to remove the ...
2
votes
1
answer
927
views
How do you include Bootstrap in Razor class library
I'd like to create a razor class library with several components and use that in various Blazor or MAUI Blazor projects. However, these projects have inconsistent Bootstrap versions, and I would like ...
0
votes
1
answer
31
views
How to eliminate the default left and right white space use by APS.NET layout file?
I suspect that is the Bootstrap 5 default setting. I used the inspection to find that there indeed is BS wrapper class, I used the CSS to set all margin and padding of the div.container to 0px, ...
1
vote
0
answers
509
views
Access and show HTML Div Element from ASP.NET CORE MVC C#
I want to show my bootstrap alert from my C# Controller code.
Currently I am using HTML form and submitting it to my Home Controller. Controller saves data to SQL server and redirect me to the ...
2
votes
1
answer
3k
views
How to use bootstrap js in a razor page
I want to make a bootstrap carousel in my Index.razor because in the documentation it says: Don't place a tag in a Razor component file (.razor) because the tag can't be updated dynamically by ...
0
votes
1
answer
85
views
Data annotations description in EditorFor net-core
The issue is getting the data annotations 'Display(Description)' attribute from my model via the EditorFor extension. All methods I've found have involved passing the actual model to the method.
...
0
votes
1
answer
29
views
Why is my button not expanding, even though I'm referencing jQuery before bootstrap?
Afternoon, guys and gals!
I'm trying to teach myself some front-end stuff and I've hit a wall in this tutorial.
I'm trying to get this collapsible hamburger menu to work in my navbar. It shows up, but ...
-2
votes
2
answers
752
views
Is there a way for Blazor to stop auto closing html tags?
I'm trying to create some dynamic html with Blazor. Essentially I want a bootstrap(5.1) nav tab with a number of generated nav tabs created via a for loop
Code Below:
@:<ul class="nav nav-tabs&...
0
votes
1
answer
940
views
Why onclick event triggered when page is reloaded
So, I have a button in my .cshtml file:
<div>
<button id='btn-next' name='next' type='button' onclick='function f() {
@{
Console.WriteLine("BeforeCalling");...
0
votes
0
answers
230
views
How can I view Accordion in Razor view MVC?
I am so confuse about how to view Accordion in razor view from database?
I want to have a list of accordion base on one field in the database example and dynamically.
Which model? Should I send to the ...
0
votes
0
answers
24
views
Why I have style in netcore razor view?
I am wondering why i have this class when I have carefully look at all the style I have import into my site and I can't found it (in fact I have modify it from name
fp-accordion-...