ASP .net get hidden value from code behind in page_load function

前端 未结 4 2185
说谎
说谎 2021-01-25 19:27

I have a hidden field that I set in my javascript code:

   

        
4条回答
  •  情话喂你
    2021-01-25 19:49

    You are not submitting the page back to the server, you won't be able to "get" page variables unless you are doing a POST.

    change this:

    to this: (EDIT: changed the type="hidden" too)

    Then click the submit button

提交回复
热议问题