Eval script for server side control's ID property?

后端 未结 6 1307
暗喜
暗喜 2020-12-07 05:36

Using the following Eval script for setting ID property causes error. Error message: the server tag is not well formed.

 

        
6条回答
  •  心在旅途
    2020-12-07 06:02

    You can't do it.

    Why do you need to? If it's so you can reference it at some point, you can access the client-side id via the property ClientID.

    Example, as requested:

    
        
            
                ');"
                    value   = "click to get id for <%# Container.ItemIndex %>" />
            
        
    
    

提交回复
热议问题