<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[שגיאות בתצוגת MVC]]></title><description><![CDATA[<p dir="auto">לאחר ששמעתי את הצעתו ש <a class="plugin-mentions-user plugin-mentions-a" href="/user/dovid">@<bdi>dovid</bdi></a>  חיפשתי משהו להתחיל איתו.<br />
מצאתי את הספר <a href="http://enos.itcollege.ee/~ijogi/Nooks/Pro%20ASP.NET%20MVC%205/Pro%20ASP.NET%20MVC%205.9781430265290.pdf" target="_blank" rel="noopener noreferrer nofollow ugc">הזה</a> (באנגילית 812 עמודים) והתחלתי לכתוב את התוכנית הראשונה שלי ע"פ הספר.</p>
<p dir="auto">עד עמוד 28 הצלחתי להגיע והכל היה בסדר אך החל מעמוד 29 מהקטע של יצירת עמוד RsvpForm לא החלתי להבין איך אני עובר מבקר למודל ואני מקבל את השגיאה הבאה:</p>
<pre><code>
@model TestCar.Models.GuestResponse

@{
    Layout = null;
}
&lt;html&gt;
&lt;head&gt;
    &lt;meta name="viewport" content="width=device-width" /&gt;
    &lt;title&gt;RsvpForm&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    @using (Html.BeginForm())
    {
        &lt;p&gt;Your name: @Html.TextBox(**x =&gt; x.Name**) &lt;/p&gt;
        &lt;p&gt;Your email: @Html.TextBoxFor(x =&gt; **x.Email**)&lt;/p&gt;
        &lt;p&gt;Your phone: @Html.TextBoxFor(x =&gt; **x.Phone**)&lt;/p&gt;
        &lt;p&gt;
            Will you attend?
            @Html.DropDownListFor(x =&gt; **x.WillAttend**, new[] {
 new SelectListItem() {Text = "Yes, I'll be there",
 Value = bool.TrueString},
 new SelectListItem() {Text = "No, I can't come",
 Value = bool.FalseString}
 }, "Choose an option")
        &lt;/p&gt;
        &lt;input type="submit" value="Submit RSVP" /&gt;
    }
            &lt;div&gt;
            &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
<p dir="auto">כמה שניסיתי להבין את הבעיה לא הצלחתי להבין מדוע חסרים לי שדות והיכן הם חסרים.<br />
בקיצור נתקעתי בעמודים 29-30</p>
]]></description><link>https://tchumim.com/topic/3448/שגיאות-בתצוגת-mvc</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 08:27:12 GMT</lastBuildDate><atom:link href="https://tchumim.com/topic/3448.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 24 Aug 2018 06:21:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to שגיאות בתצוגת MVC on Sat, 25 Aug 2018 18:13:46 GMT]]></title><description><![CDATA[<p dir="auto">לגבי שפת C#<br />
<a href="http://www.underwar.co.il/1-Programming/d104/" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.underwar.co.il/1-Programming/d104/</a><br />
<a href="http://webmaster.org.il/articles/csharp" target="_blank" rel="noopener noreferrer nofollow ugc">http://webmaster.org.il/articles/csharp</a></p>
]]></description><link>https://tchumim.com/post/35106</link><guid isPermaLink="true">https://tchumim.com/post/35106</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Sat, 25 Aug 2018 18:13:46 GMT</pubDate></item><item><title><![CDATA[Reply to שגיאות בתצוגת MVC on Sat, 25 Aug 2018 18:09:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dovid">@<bdi>dovid</bdi></a> אמר ב<a href="/post/35062">שגיאות בתצוגת MVC</a>:</p>
<blockquote>
<p dir="auto">אבל בנוגע למה שהבאת:<br />
א. לא צירפת שגיאה<br />
ב. מהם זוג הכוכביות ** שמופיע רבות, זה במקור או רק בגלל העתק עם העיצוב?</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dovid">@<bdi>dovid</bdi></a>  ה-** היה אמור להדגיש את הכיתוב עם השגיאה.(קו אדום מתחת למשתנה)</p>
<p dir="auto">לאחר שליחת ההודעה עברתי שוב על הספר ולתדהמתי ראיתי שפספסתי לכתוב את הקוד <strong>במודל</strong></p>
<p dir="auto">לאחר שהוספתי את הקוד הכל עובד קשורה.</p>
<p dir="auto"><strong>מבקש סליחה על ההטרדה</strong></p>
<p dir="auto">למרות שעשיתי רק <strong>העתק-הדבק</strong> מבלי להבין עדיין שום דבר הצלחתי לתחיל להבין את העיקרון.<br />
עדיין חסרים לי כמה הבנות</p>
<ol>
<li>איך כתוב קוד C# (מבנה הכתיבה)</li>
<li>מה עניין:</li>
</ol>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc
</code></pre>
<ol start="3">
<li>{} מתי שמים ומתי לא?</li>
</ol>
<p dir="auto">לעת עתה הספר הזה נראה מעניין ומסביר באופן מפושט מה צריך לעשות.<br />
לעת עתה למדתי כמה תובנות מהספר הזה:</p>
<ol>
<li>כותב הספר מסביר יפה את הדוגמאות. (למרות שזה באנגלית)</li>
<li>למרות שאני בקושי יודע אנגלית הצלחתי להשטלט די יפה ולהתחיל ולהבין את העיקרון (ברור שתרגמתי דרך גוגל טרנל'ס את רוב הפסקאות)</li>
</ol>
]]></description><link>https://tchumim.com/post/35105</link><guid isPermaLink="true">https://tchumim.com/post/35105</guid><dc:creator><![CDATA[zvinissim]]></dc:creator><pubDate>Sat, 25 Aug 2018 18:09:27 GMT</pubDate></item><item><title><![CDATA[Reply to שגיאות בתצוגת MVC on Fri, 24 Aug 2018 07:07:46 GMT]]></title><description><![CDATA[<p dir="auto">הספר פתוח בנטפרי, אשמח לדעת מה השגיאה.</p>
]]></description><link>https://tchumim.com/post/35065</link><guid isPermaLink="true">https://tchumim.com/post/35065</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Fri, 24 Aug 2018 07:07:46 GMT</pubDate></item><item><title><![CDATA[Reply to שגיאות בתצוגת MVC on Fri, 24 Aug 2018 06:36:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zvinissim">@<bdi>zvinissim</bdi></a> אמר ב<a href="/post/35061">שגיאות בתצוגת MVC</a>:</p>
<blockquote>
<p dir="auto">RsvpForm<br />
הספר עוד חסום לי, שלחתי בקשה לפתוח אותו.</p>
</blockquote>
<p dir="auto">אבל בנוגע למה שהבאת:<br />
א. לא צירפת שגיאה<br />
ב. מהם זוג הכוכביות ** שמופיע רבות, זה במקור או רק בגלל העתק עם העיצוב?</p>
]]></description><link>https://tchumim.com/post/35062</link><guid isPermaLink="true">https://tchumim.com/post/35062</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Fri, 24 Aug 2018 06:36:53 GMT</pubDate></item></channel></rss>