I'm trying to modify an email template for a form, but it doesn't seem to agree with the switch portion. If I take it out, the email goes through when I test the form. But when I put it back in, the email doesn't come through. Maybe it's something else??
One thought is that a date is not set (null) and so breaks when in the case for datepicker - have no idea if this is or is not possible, just a thought.
Check your error log found in the ~/App_Data/Logs folder and post any errors you get related to this here. It should tell us/you exactly what's going wrong.
Switch inside of a foreach loop
Why does this break?
Hi Brad
It's hard to say why exactly it's braking, can you show all razor code?
What line is braking?
Thanks,
Alex
I'm trying to modify an email template for a form, but it doesn't seem to agree with the switch portion. If I take it out, the email goes through when I test the form. But when I put it back in, the email doesn't come through. Maybe it's something else??
Hi Brad
Are you not able to debug in Visual Studio ?
One thought is that a date is not set (null) and so breaks when in the case for datepicker - have no idea if this is or is not possible, just a thought.
Cheers Nigel
Hi Brad,
Check your error log found in the
~/App_Data/Logs
folder and post any errors you get related to this here. It should tell us/you exactly what's going wrong.Probably not a full fix but the foreach is missing an @ in this section
Thanks for the responses guys! I was away for a while so I wasn't able to repsond.
It appears the datepicker issue that Nigel mentioned was the issue.
is working on a reply...