Click here to Skip to main content
15,896,557 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How can I refresh partial view in ASP.NET MVC 5? Pin
bVagadishnu17-Mar-17 8:24
bVagadishnu17-Mar-17 8:24 
GeneralRe: How can I refresh partial view in ASP.NET MVC 5? Pin
Member 1299209417-Mar-17 9:17
Member 1299209417-Mar-17 9:17 
QuestionWhat manual do i need. Pin
xiecsuk15-Mar-17 1:22
xiecsuk15-Mar-17 1:22 
AnswerRe: What manual do i need. Pin
Richard MacCutchan15-Mar-17 3:10
mveRichard MacCutchan15-Mar-17 3:10 
AnswerRe: What manual do i need. Pin
ZurdoDev15-Mar-17 8:30
professionalZurdoDev15-Mar-17 8:30 
AnswerRe: What manual do i need. Pin
Richard Deeming15-Mar-17 9:00
mveRichard Deeming15-Mar-17 9:00 
GeneralRe: What manual do i need. Pin
xiecsuk16-Mar-17 6:07
xiecsuk16-Mar-17 6:07 
GeneralRe: What manual do i need. Pin
Richard Deeming16-Mar-17 6:49
mveRichard Deeming16-Mar-17 6:49 
xiecsuk wrote:
viewDataDictionary

That doesn't match the code you posted, which was using the ViewDataDictionary class. (Note the upper-case "V" at the start, which is lower-case in your error message.)

xiecsuk wrote:
Html.RenderPartial should be prefixed with @ sign. That was the first thing that caused me problems. Under VS 2010, it started with <%.

It sounds like you've switched between view engines - you were using the older ASPX view engine, and you're now using Razor.
ScottGu's Blog - Introducing “Razor” – a new view engine for ASP.NET[^]
Introduction to ASP.NET Web Programming Using the Razor Syntax (C#) | Microsoft Docs[^]

xiecsuk wrote:
Is HTML.RenderPartial / viewDataDictionary still the correct way to achieve my goals?

It sounds to me like your partial view was doing too much. The code to update the counter should not be in a view, so you've done the right thing moving it.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: What manual do i need. Pin
xiecsuk17-Mar-17 0:07
xiecsuk17-Mar-17 0:07 
Questionacquire data from a website Pin
Member 1306012114-Mar-17 23:17
Member 1306012114-Mar-17 23:17 
QuestionRe: acquire data from a website Pin
ZurdoDev15-Mar-17 1:16
professionalZurdoDev15-Mar-17 1:16 
QuestionOpen template word doc and replace values Pin
byka14-Mar-17 5:34
byka14-Mar-17 5:34 
SuggestionRe: Open template word doc and replace values Pin
CHill6014-Mar-17 5:43
mveCHill6014-Mar-17 5:43 
AnswerRe: Open template word doc and replace values Pin
Richard Deeming14-Mar-17 6:54
mveRichard Deeming14-Mar-17 6:54 
GeneralRe: Open template word doc and replace values Pin
byka14-Mar-17 8:09
byka14-Mar-17 8:09 
GeneralRe: Open template word doc and replace values Pin
Richard Deeming14-Mar-17 11:06
mveRichard Deeming14-Mar-17 11:06 
QuestionDotnet Core Reference Issue Pin
S_A_S9-Mar-17 0:11
S_A_S9-Mar-17 0:11 
AnswerRe: Dotnet Core Reference Issue Pin
Afzaal Ahmad Zeeshan14-Mar-17 11:53
professionalAfzaal Ahmad Zeeshan14-Mar-17 11:53 
QuestionApi post call works on postman but in mobile app or ajax call it doesn't Pin
mrkeivan8-Mar-17 18:36
mrkeivan8-Mar-17 18:36 
AnswerRe: Api post call works on postman but in mobile app or ajax call it doesn't Pin
F-ES Sitecore8-Mar-17 23:08
professionalF-ES Sitecore8-Mar-17 23:08 
GeneralRe: Api post call works on postman but in mobile app or ajax call it doesn't Pin
mrkeivan9-Mar-17 0:05
mrkeivan9-Mar-17 0:05 
GeneralRe: Api post call works on postman but in mobile app or ajax call it doesn't Pin
F-ES Sitecore9-Mar-17 0:18
professionalF-ES Sitecore9-Mar-17 0:18 
GeneralRe: Api post call works on postman but in mobile app or ajax call it doesn't Pin
mrkeivan9-Mar-17 17:56
mrkeivan9-Mar-17 17:56 
GeneralRe: Api post call works on postman but in mobile app or ajax call it doesn't Pin
F-ES Sitecore9-Mar-17 22:51
professionalF-ES Sitecore9-Mar-17 22:51 
GeneralRe: Api post call works on postman but in mobile app or ajax call it doesn't Pin
mrkeivan9-Mar-17 23:35
mrkeivan9-Mar-17 23:35 

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.