Bu sözdiziminin neden "Hata bildirme hatası nedeniyle girilemedi." Ve "@html (" ifadesini " hatası.Razor VB.net MVC'de kullanılması beklendiği gibi çalışmaz
Bu blok şikayet hata
@Using (Html.BeginForm("GetUser", "UserProfile", FormMethod.Post))
Enter User id :- @Html.TextBox("UserId",Model) -- This line must write in this way @Html("Enter User id :-")
<input type="submit" value="Submit data" /> --This line complain ">" expected"
End Using
bu şekilde kodunu yeniden Eğer gitmiş ama çıkış ekran "System.Web.MVC.Html"
aşağıdaki resim gibi başında şikayet @Html.BeginForm("GetUser", "UserProfile", FormMethod.Post)
Enter User id :- @Html.TextBox("UserId",Model)
<input type="submit" value="Submit data" />
hi nemesv Kullanım @<Text>
, bu şikayet ise - "Kullanma End ile bitmelidir kullanma">
Sen yakın unuttum ' @' Ben benim örnekte bakın: ' @ ' sonundaki kapanış ' ' not çizgi. –
nemesv
Oppps! MVC'de çok yeni. her şey bana yeni geliyor, teşekkürler! – tsohtan
olası bir kopyası niçin [Bir Html.BeginForm'un @Using içinde normal biçimlenmesi neden bir @ 'ye ihtiyaç duyar?] (Http://stackoverflow.com/questions/10225394/why-does-normal-markup-inside-an-using-html- beginform-need-an) – KyleMit