Click here to Skip to main content
15,913,291 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Senior MVC Full Stack Developer Job Postings with Angular Experience Pin
F-ES Sitecore27-Jun-18 23:44
professionalF-ES Sitecore27-Jun-18 23:44 
GeneralRe: Senior MVC Full Stack Developer Job Postings with Angular Experience Pin
jkirkerx28-Jun-18 6:50
professionaljkirkerx28-Jun-18 6:50 
AnswerRe: Senior MVC Full Stack Developer Job Postings with Angular Experience Pin
Richard Deeming28-Jun-18 1:03
mveRichard Deeming28-Jun-18 1:03 
GeneralRe: Senior MVC Full Stack Developer Job Postings with Angular Experience Pin
jkirkerx28-Jun-18 6:55
professionaljkirkerx28-Jun-18 6:55 
Question.net Core 2.1, Startup.cs, IConfiguration vs IHostingEnviroment Pin
jkirkerx27-Jun-18 7:14
professionaljkirkerx27-Jun-18 7:14 
AnswerRe: .net Core 2.1, Startup.cs, IConfiguration vs IHostingEnviroment Pin
Richard Deeming27-Jun-18 7:45
mveRichard Deeming27-Jun-18 7:45 
GeneralRe: .net Core 2.1, Startup.cs, IConfiguration vs IHostingEnviroment [solved] Pin
jkirkerx27-Jun-18 8:08
professionaljkirkerx27-Jun-18 8:08 
QuestionBody Tag, Razor and AngularJS workaround or better idea for body tag cannot have c# in it. Pin
jkirkerx27-Jun-18 6:26
professionaljkirkerx27-Jun-18 6:26 
AnswerRe: Body Tag, Razor and AngularJS workaround or better idea for body tag cannot have c# in it. Pin
Richard Deeming27-Jun-18 7:13
mveRichard Deeming27-Jun-18 7:13 
GeneralRe: Body Tag, Razor and AngularJS workaround or better idea for body tag cannot have c# in it. Pin
jkirkerx27-Jun-18 8:13
professionaljkirkerx27-Jun-18 8:13 
GeneralRe: Body Tag, Razor and AngularJS workaround or better idea for body tag cannot have c# in it. Pin
Richard Deeming27-Jun-18 8:18
mveRichard Deeming27-Jun-18 8:18 
Question.Net Core 2.1, DI and System.Web in a separate 2.1 Project Pin
jkirkerx25-Jun-18 12:14
professionaljkirkerx25-Jun-18 12:14 
AnswerRe: .Net Core 2.1, DI and System.Web in a separate 2.1 Project Pin
F-ES Sitecore26-Jun-18 0:03
professionalF-ES Sitecore26-Jun-18 0:03 
GeneralRe: .Net Core 2.1, DI and System.Web in a separate 2.1 Project Pin
jkirkerx26-Jun-18 6:33
professionaljkirkerx26-Jun-18 6:33 
AnswerRe: .Net Core 2.1, DI and System.Web in a separate 2.1 Project Pin
Richard Deeming26-Jun-18 1:37
mveRichard Deeming26-Jun-18 1:37 
GeneralRe: .Net Core 2.1, DI and System.Web in a separate 2.1 Project Pin
jkirkerx26-Jun-18 6:35
professionaljkirkerx26-Jun-18 6:35 
QuestionImages are not exporting to pdf using jspdf.debug.js Pin
Member 1370125121-Jun-18 23:05
Member 1370125121-Jun-18 23:05 
QuestionReactJS.Net - Server side rendering works in development, but not on my production server Pin
jkirkerx14-Jun-18 11:36
professionaljkirkerx14-Jun-18 11:36 
I'm scratching my head on this one.
Decided to learn ReactJS and did the tutorial on Tutorial (ASP.NET Core) | ReactJS.NET on ReactJS.Net. I did the client side, and then implemented the server side, but I can't get the server side to render the HTML from the ReactJS file.

In ReactConfig, I loaded all the scripts here, but I really only need the server version of the script.
ReactSiteConfiguration.Configuration = new ReactSiteConfiguration()
   .AddScript("~/js/remarkable/dist/remarkable.min.js")
   .AddScript("~/ReactJS/HelloWorld.jsx")
   .AddScript("~/ReactJS/ReactJS_Client.jsx")
   .AddScript("~/ReactJS/ReactJS_Server.jsx");

I loaded my scripts in my Section, that loads at the bottom of the page.
This may sound confusing, but I loaded the client version of the script here. I did this because the server side script is different.
<script src="~/js/bundle_ReactJS_Production.min.js"></script>
<script src="@Url.Content("~/ReactJS/ReactJS_Client.jsx")"></script>    
@Html.ReactInitJavaScript()

So down later in the View, I have my little ReactJS section, in which the documentation says I need to use this object for server side rendering.
But it crashes with a blank page on the IIS server, and I can't figure out why. I take it out, and the page loads fine but executes the client version instead. I checked the page source and the ReactJS HTML wasn't there.

All I can think of is that I'm missing something in the deployment, but what?
Or I need to add something to the web server.
<div class="container">
        <div class="media-container-row">
            <div class="col-12 col-md-10" id="content">
                <!-- This will render the component server-side -->
                @Html.React("CommentBox", new
                 {
                     initialData = Model,
                     url = Url.Action("/Home/Comments"),
                     submitUrl = Url.Action("/Home/AddComment"),
                     pollInterval = 15000
                 })
            </div>
        </div>
    </div>
If it ain't broke don't fix it
Discover my world at jkirkerx.com


modified 21-Jun-18 13:57pm.

Answer[solved] Pin
jkirkerx18-Jun-18 9:52
professionaljkirkerx18-Jun-18 9:52 
QuestionBlurry Pdf Output while uisng Html2pdf.bundle.js Pin
Member 1370125113-Jun-18 19:35
Member 1370125113-Jun-18 19:35 
AnswerRe: Blurry Pdf Output while uisng Html2pdf.bundle.js Pin
Nathan Minier14-Jun-18 16:46
professionalNathan Minier14-Jun-18 16:46 
QuestionConversion of HTML to PDF Using JsPdf Pin
Member 1370125111-Jun-18 20:08
Member 1370125111-Jun-18 20:08 
QuestionRe: Conversion of HTML to PDF Using JsPdf Pin
Richard MacCutchan11-Jun-18 21:38
mveRichard MacCutchan11-Jun-18 21:38 
AnswerRe: Conversion of HTML to PDF Using JsPdf Pin
Member 1370125111-Jun-18 23:53
Member 1370125111-Jun-18 23:53 
QuestionImg Collection Pin
sunsher9-Jun-18 1:44
sunsher9-Jun-18 1:44 

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.