Guest User

Untitled

a guest
Nov 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Using (Ajax.BeginForm("Index", "Brand", FormMethod.Post, New AjaxOptions With {
  2. .InsertionMode = InsertionMode.Replace,
  3. .UpdateTargetId = "GridList"}))
  4. @Html.TextBox("strName", Nothing, New With {.class = "form-control", .PlaceHolder = "XXXXX"})
  5. <button type="submit" style="display: none">Search</button>
  6.  
  7. <button type="submit" style="display: none" id="btn-search">Search</button>
  8.  
  9. $(function () {
  10.  
  11. $("#btn-search").trigger("click");
  12.  
  13. })
Add Comment
Please, Sign In to add comment