Click here to Skip to main content
15,902,635 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Background resize Pin
Member 136033252-Jan-18 20:06
Member 136033252-Jan-18 20:06 
GeneralRe: Background resize Pin
#realJSOP2-Jan-18 23:28
professional#realJSOP2-Jan-18 23:28 
AnswerRe: Background resize Pin
W Balboos, GHB11-Jan-18 2:32
W Balboos, GHB11-Jan-18 2:32 
SuggestionRe: Background resize Pin
Richard Deeming11-Jan-18 4:11
mveRichard Deeming11-Jan-18 4:11 
GeneralRe: Background resize Pin
W Balboos, GHB11-Jan-18 4:14
W Balboos, GHB11-Jan-18 4:14 
QuestionLetter-spacing in chrome Pin
#realJSOP1-Jan-18 5:59
professional#realJSOP1-Jan-18 5:59 
QuestionError when trying to add array element to hash - RUBY Pin
Member 136018381-Jan-18 2:03
Member 136018381-Jan-18 2:03 
QuestionHtmlHelper doesn't work in partial view Pin
#realJSOP29-Dec-17 1:55
professional#realJSOP29-Dec-17 1:55 
I have a partial view in which I am passing a model (the model object is not null). This is the method in the controller:
C#
[ChildActionOnly]
public ActionResult LargeHeader()
{
    PWQuote quote = db.GetRandomQuote(-1);
    return PartialView("_LargeHeader", quote);
}


When I try to use the Html helper property, intellisense doesn't show it, and when the page is rendered, the partial view is not rendered (and doesn't show up in the page source or browser debugger).

This (simplified code in the partial view .cshtml file) allows the partial view to render:
HTML
<span style="font-style:italic;">
    Test Quote
</span>

But this does not:
HTML
<span style="font-style:italic;">
    @Html.DisplayFor(model=>model.Quote)
</span>

In both cases, the model is defined in the partial view with this:
HTML
@model Models.PWQuote

Help, please.
".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 29-Dec-17 8:18am.

AnswerRe: HtmlHelper doesn't work in partial view Pin
Richard Deeming8-Jan-18 7:12
mveRichard Deeming8-Jan-18 7:12 
QuestionLoading partial view via jquery Pin
#realJSOP28-Dec-17 4:53
professional#realJSOP28-Dec-17 4:53 
AnswerRe: Loading partial view via jquery Pin
#realJSOP29-Dec-17 1:53
professional#realJSOP29-Dec-17 1:53 
QuestionBlockchain, how to start? Pin
Member 1359593527-Dec-17 1:06
Member 1359593527-Dec-17 1:06 
AnswerRe: Blockchain, how to start? Pin
Afzaal Ahmad Zeeshan27-Dec-17 8:24
professionalAfzaal Ahmad Zeeshan27-Dec-17 8:24 
QuestionCaptcha and MVC Pin
#realJSOP26-Dec-17 6:22
professional#realJSOP26-Dec-17 6:22 
AnswerRe: Captcha and MVC Pin
Nathan Minier27-Dec-17 6:49
professionalNathan Minier27-Dec-17 6:49 
QuestionOverriding model in Magento 2 Pin
suthan alley21-Dec-17 17:24
suthan alley21-Dec-17 17:24 
QuestionMessage Removed Pin
20-Dec-17 23:16
Member 1352233120-Dec-17 23:16 
AnswerMessage Removed Pin
31-Dec-17 19:57
professionalWordPress Experts31-Dec-17 19:57 
QuestionDisplay Derived Objects In Swagger Example Values Pin
Liagapi15-Dec-17 19:21
Liagapi15-Dec-17 19:21 
SuggestionRe: Display Derived Objects In Swagger Example Values Pin
Richard MacCutchan15-Dec-17 22:43
mveRichard MacCutchan15-Dec-17 22:43 
AnswerRe: Display Derived Objects In Swagger Example Values Pin
VenkatReddy.RC3-Jan-18 23:01
professionalVenkatReddy.RC3-Jan-18 23:01 
Questionan unusual problem of building multiple sites towards a longer term goal Pin
symfonycoda12-Dec-17 8:48
symfonycoda12-Dec-17 8:48 
AnswerRe: an unusual problem of building multiple sites towards a longer term goal Pin
W Balboos, GHB29-Dec-17 6:02
W Balboos, GHB29-Dec-17 6:02 
QuestionHow can i disable add to cart button in Magneto 2? Pin
suthan alley10-Dec-17 19:41
suthan alley10-Dec-17 19:41 
AnswerRe: How can i disable add to cart button in Magneto 2? Pin
Afzaal Ahmad Zeeshan14-Dec-17 4:07
professionalAfzaal Ahmad Zeeshan14-Dec-17 4:07 

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.