I want to create a simple list of string in view, submitted from textbox, using submit button, without using model, using razor. I want that on every submit a new string in the list is created. I am trying the following code but it just creates one string in the list :
@{
ViewBag.Title = "Index";
}
Index
@{ var message = "";
if (IsPost)
{
message = Request["message"];
@message
}
}
Rijwan AnsariPosted Dec 23, 2021, 10:55 AM
Nitin SontakkePosted Dec 23, 2021, 5:38 AM
Nitin SontakkePosted Dec 23, 2021, 5:36 AM