Eval script for server side control's ID property?

后端 未结 6 1308
暗喜
暗喜 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:04

    It almost always when asp.net fails , comes Jquery into the field to set the situation up ;) . you can do this trick for example :

    In HTML:

    '">

    Jquery:

        $('.uploader').on('change', function () {
            var id = $(this).next('span').attr('id');
         });    
    

提交回复
热议问题