The reason is that you are using the master page.
"It was written on an overseas website that ""ClientIDMode="""Static" would be fixed by writing ""ClientIDMode="" in the ContentPlaceHolder."
But writing this doesn't fix it.
I wrote the page directives on the master page, the attributes of the ContentPlaceHolder element, the asp:Content element attribute on the content page, and even the attributes of the input element of the target, but it didn't fix it.
Is there something wrong with the solution?
c# .net asp.net
Because the UniqueID
property corresponds to the name
attribute, the ClientIDMode
setting does not affect the name
.
The ClientID
property is printed in the id
attribute.
© 2024 OneMinuteCode. All rights reserved.