Click here to Skip to main content
15,881,600 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: MVC5 - Logoff does not work in Chrome Pin
Richard Deeming7-Nov-17 2:45
mveRichard Deeming7-Nov-17 2:45 
GeneralRe: MVC5 - Logoff does not work in Chrome Pin
#realJSOP7-Nov-17 2:47
mve#realJSOP7-Nov-17 2:47 
GeneralRe: MVC5 - Logoff does not work in Chrome Pin
Richard Deeming7-Nov-17 2:53
mveRichard Deeming7-Nov-17 2:53 
GeneralRe: MVC5 - Logoff does not work in Chrome Pin
#realJSOP7-Nov-17 2:59
mve#realJSOP7-Nov-17 2:59 
GeneralRe: MVC5 - Logoff does not work in Chrome Pin
Richard Deeming7-Nov-17 3:03
mveRichard Deeming7-Nov-17 3:03 
GeneralRe: MVC5 - Logoff does not work in Chrome Pin
#realJSOP7-Nov-17 3:01
mve#realJSOP7-Nov-17 3:01 
AnswerRe: MVC5 - Logoff does not work in Chrome Pin
aijaj hussain18-Nov-17 20:09
aijaj hussain18-Nov-17 20:09 
QuestionMVC5 checkbox size (RESOLVED - kinda) Pin
#realJSOP1-Nov-17 2:37
mve#realJSOP1-Nov-17 2:37 
I found out how to align the checkbox with the fields, and then how to vertically center the checkbox with the label, but nothing I've tried lets me make the checkbox 2x larger. I've tried various combinations of height, line-height, padding, and margin, but nothing seems to affect the size.

I don't want to modify the bootstrap files to do this. Can anyone help?

EDIT/UPDATE/RESOLUTION ==================================

I finally came to a somewhat reasonable resolution that appears to work in all browsers.

I have adapted all checkboxes to the following:

HTML
<div class="form-group">
    @Html.LabelFor(m => m.RememberMe, new {@class = "col-md-2 control-label", @style="color:transparent;"})
    <div class="col-md-10">
        <label class="btn btn-default">
            @Html.CheckBoxFor(m => m.RememberMe)&nbsp;&nbsp;Remember me&nbsp;&nbsp;
        </label>
    </div>
</div>


And in all actuality, I have an extension method that I use that reduces the above to the following

@Html.CheckBoxForEx(m => m.RememberMe)


The extension method has a labelText parameter that defaults to null, and if that parameter is null, it tries to get the display name for the specified expression. The method also does all the element wrapping and styling, so if I change that stuff in the method, the change is realized throughout the site with no further changes. I've created similar extension methods for most of the MVC Html.Helper methods. My entire Login form looks like this:

HTML
@Html.TextBoxForEx(m => m.Email);
@Html.PasswordForEx(m => m.Password)
@Html.CheckBoxForEx(m => m.RememberMe)
@Html.ActionInputButton("LogIn", "Log in")

".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


modified 16-Nov-17 10:53am.

AnswerRe: MVC5 checkbox size Pin
Richard Deeming2-Nov-17 5:53
mveRichard Deeming2-Nov-17 5:53 
GeneralRe: MVC5 checkbox size Pin
#realJSOP2-Nov-17 8:06
mve#realJSOP2-Nov-17 8:06 
AnswerRe: MVC5 checkbox size Pin
#realJSOP3-Nov-17 3:50
mve#realJSOP3-Nov-17 3:50 
SuggestionRe: MVC5 checkbox size Pin
Richard Deeming3-Nov-17 5:07
mveRichard Deeming3-Nov-17 5:07 
GeneralRe: MVC5 checkbox size Pin
#realJSOP3-Nov-17 6:09
mve#realJSOP3-Nov-17 6:09 
GeneralRe: MVC5 checkbox size Pin
Richard Deeming3-Nov-17 10:02
mveRichard Deeming3-Nov-17 10:02 
GeneralRe: MVC5 checkbox size Pin
#realJSOP3-Nov-17 6:12
mve#realJSOP3-Nov-17 6:12 
JokeRe: MVC5 checkbox size Pin
Richard Deeming3-Nov-17 10:03
mveRichard Deeming3-Nov-17 10:03 
GeneralRe: MVC5 checkbox size Pin
#realJSOP7-Nov-17 4:15
mve#realJSOP7-Nov-17 4:15 
Questionusing javascript in a Firefox browser Pin
classy_dog30-Oct-17 10:49
classy_dog30-Oct-17 10:49 
AnswerRe: using javascript in a Firefox browser Pin
Afzaal Ahmad Zeeshan30-Oct-17 11:14
professionalAfzaal Ahmad Zeeshan30-Oct-17 11:14 
AnswerRe: using javascript in a Firefox browser Pin
Nathan Minier31-Oct-17 1:23
professionalNathan Minier31-Oct-17 1:23 
QuestionCreate a web page to connect to unix server Pin
LuckySas30-Oct-17 4:19
LuckySas30-Oct-17 4:19 
AnswerRe: Create a web page to connect to unix server Pin
Richard MacCutchan30-Oct-17 5:36
mveRichard MacCutchan30-Oct-17 5:36 
QuestionMVC5 posting data to controller Pin
#realJSOP28-Oct-17 6:12
mve#realJSOP28-Oct-17 6:12 
AnswerRe: MVC5 posting data to controller Pin
Nathan Minier30-Oct-17 1:23
professionalNathan Minier30-Oct-17 1:23 
Questionpassing id using@url.Action Pin
svknair26-Oct-17 23:59
svknair26-Oct-17 23:59 

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.