ASP.NET single quotes are converted to '

后端 未结 6 1333
我在风中等你
我在风中等你 2021-01-02 02:24

Note: Most probably this will be a double question, but since I haven\'t found a clear answer, I\'m asking it anyway.

In ASP.NET I\'d like to add some JavaScript to

6条回答
  •  囚心锁ツ
    2021-01-02 02:58

    First of all the asp check box control doesn't take onclick as a valid attribute.

    So you can do two things:

    1- If you don't need the value server-side, you can just put a normal check box instead of the asp check box.

    2- If you need the value server side, add the runat="server" attribute and place and ID on your check box so you can reference it in your code.

    
    

提交回复
热议问题