a little problem for ya.
in master page i have a search input and link:
<input type="text" value="Searche..." name="txtSearche" id="txtSearche" style="vertical-align: middle; height:14px;" />
<%= Html.ActionLink("search", "Search", "Search", new{ searche = "txtSearche???what is here"}, null) %>
how can i write value in url "value" from input text and then get it in my search controller?
[HttpGet]
public ActionResult Search(string txtSearche)
{
try
{
SearchModel model = new SearchModel(txtSearche);
if (txtSearche != null)
{
return View(model);
}
else
{
return View();
}
}
my biggest problem is here-> new{ searche = "txtSearche???what is here"} i dont know how to make this part working