My problem comes when I try to insert some more html after the line
The code that I'm inputting is <div class="large-6 columns"> and I'm putting the closing div just prior to the code block end. The error that I receive is "The name 'child' does not exist in the current context" and I am stumped!!
Error in Razor when inserting HTML
Hi all,
Apologies for the rather long code block but I've included it all in case it helps someone find the error that I'm receiving!
I have the below code in Razor which is working fine:
My problem comes when I try to insert some more html after the line
The code that I'm inputting is <div class="large-6 columns"> and I'm putting the closing div just prior to the code block end. The error that I receive is "The name 'child' does not exist in the current context" and I am stumped!!
Could anyone help me please?
Thanks,
Craig
Hi Craig,
You are getting this error message since you are trying to call some properties which is in the second loop that.
Are you just trying to add some Html code there are is there any property you want to display ?
Hi Fuji,
That's right I just want to return some HTML just before and after the loop.
Thanks,
Craig
This should get you working
Hope this helps
is working on a reply...