Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 18, 2010 08:37 AM by andrewjboyd
Aug 17, 2010 06:25 AM|LINK
As ignatandrei asked, is it coming through into the HTML output?
Aug 18, 2010 12:24 AM|LINK
Yes, when I use for testing:
<input type="submit" name="testReportTitle" value= <%: Model.Report.Title %> />
The button only showed the words before space.
Aug 18, 2010 02:54 AM|LINK
That should be
<input type="submit" name="testReportTitle" value="<%: Model.Report.Title %>" />
I think it's as simple as you haven't put quotes around your value property
Aug 18, 2010 05:53 AM|LINK
WOW, yes, that's the problem.
I don't quite understand why I need the double quotes?
<%: Model.Report.Title %> is already a string.
Aug 18, 2010 05:59 AM|LINK
Why it works?
<% foreach(var nameObject in Model.NameList)
<option value = <%: nameObject.NameCode %> > <%: nameObject.Fullname %> </option>
Aug 18, 2010 08:37 AM|LINK
Because it's a property of your tag, there needs to be a defined beginning and end, without quotes it just views the first word as your property value
In terms of
The same logic applies to the value property, but the nameObject.Fullname doesn't require quotes because it's between two tags :)