ASP.NET Web Form parameters in URL

后端 未结 4 591
眼角桃花
眼角桃花 2021-01-19 16:22

I have an ASP.NET page that contain a form that search the page.

Is there any solution so that I can have the search text in the URL?

I want to give the posi

4条回答
  •  悲&欢浪女
    2021-01-19 17:00

    After more research abut this topic I think that the javascript solution is the best:

    You can access the ACTION attribute of the form using JavaScript.

    
    

    Personally I am not a big fan of JavaScript ... but this does not add an extra request to the server. If you think that this has any drawbacks please let me know.

提交回复
热议问题