Take Value for HTML elements on WebForm

xiaoxiao2021-03-06  105

If there is HTML Control on WebForm, such as Input, in addition to request.form.get, you can set HTML Control to Runat = Server, so that you can access its input in the event code of WebControl. For example: the following expression can be entered:

THIS.TXTTEST.VALUE

Note To use .value instead of .Text properties.

转载请注明原文地址:https://www.9cbs.com/read-124569.html

New Post(0)