Click here to Skip to main content
15,399,749 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: .Net Framework Web API & Client - Empty JSON Pin
Kevin Marois13-Jul-22 8:14
professionalKevin Marois13-Jul-22 8:14 
QuestionVisual Studio 2022 vs Visual Studio Code for Angular development Pin
Danpeking9-Jun-22 23:20
MemberDanpeking9-Jun-22 23:20 
AnswerRe: Visual Studio 2022 vs Visual Studio Code for Angular development Pin
thatraja2-Aug-22 1:48
professionalthatraja2-Aug-22 1:48 
QuestionSearch Function Pin
Yhanzoe Adigue6-Jun-22 16:28
MemberYhanzoe Adigue6-Jun-22 16:28 
AnswerRe: Search Function Pin
Pete O'Hanlon6-Jun-22 20:41
mvaPete O'Hanlon6-Jun-22 20:41 
QuestionI'm trying to interact with a select element with selenium Pin
lucas lima 202229-May-22 13:25
Memberlucas lima 202229-May-22 13:25 
AnswerRe: I'm trying to interact with a select element with selenium Pin
behruz1230-Jul-22 19:40
Memberbehruz1230-Jul-22 19:40 
QuestionNew MVC5 project, Bootstrap update, Fail Pin
#realJSOP26-May-22 4:41
mva#realJSOP26-May-22 4:41 
Using VS2017 - I created a new MVC5 app (.Net framework), (with single user authentication), and immediately ran update-package on the whole solution.

One of the updates was from Bootstrap 3.3.1 to v5.n.

When I ran the app (with no changes to the template-generated code), the first thing I found was that somehow, updating to bootstrap 5.n actually breaks the code in bundleconfig.cs. I had to change this line:
C#
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include("~/Scripts/bootstrap.js"));
to this:
C#
bundles.Add(new Bundle("~/bundles/bootstrap").Include("~/Scripts/bootstrap.js"));


After fixing that, I ran the app again, and noticed that the nav bar at the top of the page was completely missing. This meant there were no links to the home, about, contact, or login actions. The code was indeed in _loginpartial.cshtml and loginpartial was referenced in _latoutpartial.cshtml, but the nav bar was not displayed.

So, I downgraded bootstrap to 4.6.1, and saw no visual change n the running app.

So I downgraded to 3.4.1, and now the navbar is displayed as expected.

The primary difference I've noticed is that bootstrap 4 and newer uses flexbox for styling, and the original MVC5 template that comes with Visual Studio is NOT compatible with that version of bootstrap.

Has anybody else seen this behavior?
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

AnswerRe: New MVC5 project, Bootstrap update, Fail Pin
Richard Deeming26-May-22 21:41
mveRichard Deeming26-May-22 21:41 
AnswerRe: New MVC5 project, Bootstrap update, Fail Pin
Matthew Dennis27-May-22 4:18
sysadminMatthew Dennis27-May-22 4:18 
GeneralRe: New MVC5 project, Bootstrap update, Fail Pin
#realJSOP27-May-22 10:12
mva#realJSOP27-May-22 10:12 
QuestionIMAP and SMTP Server Pin
Aashna Khanna24-May-22 21:42
professionalAashna Khanna24-May-22 21:42 
AnswerRe: IMAP and SMTP Server Pin
Richard MacCutchan24-May-22 22:01
mveRichard MacCutchan24-May-22 22:01 
QuestionMVC5 Project Template Pin
#realJSOP13-May-22 0:06
mva#realJSOP13-May-22 0:06 
QuestionHow to send Email From Multiple SMTP In One shot. Pin
Ramendra Kumar Sinha11-May-22 18:52
MemberRamendra Kumar Sinha11-May-22 18:52 
AnswerRe: How to send Email From Multiple SMTP In One shot. Pin
Richard Deeming11-May-22 21:41
mveRichard Deeming11-May-22 21:41 
QuestionFont colour and background colour combinations hard to read Pin
Ross_Petersen2-May-22 22:24
professionalRoss_Petersen2-May-22 22:24 
AnswerRe: Font colour and background colour combinations hard to read Pin
Member 150787164-Jul-22 16:00
MemberMember 150787164-Jul-22 16:00 
Questionhow do I get total quantity from this code Pin
wixily jnr28-Apr-22 13:26
Memberwixily jnr28-Apr-22 13:26 
AnswerRe: how do I get total quantity from this code Pin
Richard MacCutchan28-Apr-22 21:32
mveRichard MacCutchan28-Apr-22 21:32 
GeneralRe: how do I get total quantity from this code Pin
wixily jnr29-Apr-22 8:17
Memberwixily jnr29-Apr-22 8:17 
Questionsending mail using asp classic Pin
Member 1557807313-Apr-22 12:41
MemberMember 1557807313-Apr-22 12:41 
Rant[REPOST] sending mail using asp classic Pin
Richard Deeming18-Apr-22 22:03
mveRichard Deeming18-Apr-22 22:03 
QuestionChrome Browser Extension API - access to the profile being used Pin
Andreas Mertens12-Apr-22 12:18
professionalAndreas Mertens12-Apr-22 12:18 
QuestionSend Email using Classic ASP Pin
Ram Teckchandani11-Apr-22 16:01
MemberRam Teckchandani11-Apr-22 16:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.