Asp.Net weird name?

I know that with ASP.Net 4.0 you can have ClientIDMode for static to have a clean identifier.

Is there something to have a "name" in the same way?

Example:

<input type="text" name="_wizard$ctl00$CaptionName" id="captionName">
+3
source share
1 answer

You can output a javascript collection with a key / pair with a list of controls that you want to use on the client side. Control.ClientID and ClientScript.RegisterStartupScript are your friends.

+1
source

Source: https://habr.com/ru/post/1769384/


All Articles