0

For reasons currently unknown, in a strongly typed partial view that handles editing which was created using the auto-scaffold for an "Edit" template, refuses to display any data in the textbox.

But, the test titletext string displays the relevent content.

<% using (Html.BeginForm()) {

try
{
%>

<fieldset>
<legend>Fields</legend>

<p>

<% 
string titletext = Model.Title.ToString();
%>

<%= titletext %>

<label for="Title">Title:</label>
<%= Html.TextBox("Title", Model.Title) %>
<%= Html.ValidationMessage("Title", "*") %>

</p>
4

1 に答える 1