Vb6 “Tag” property equivalent in ASP.Net?

后端 未结 8 1269
迷失自我
迷失自我 2021-01-12 11:19

I\'m looking for ideas and opinions here, not a \"real answer\", I guess...

Back in the old VB6 days, there was this property called \"Tag\" in all controls, that wa

8条回答
  •  北荒
    北荒 (楼主)
    2021-01-12 12:03

    I'm not sure what the tag property did in VB6, but maybe you're looking for the Attributes property of Web controls:

    MyImgCtrl.Attributes["myCustomTagAttribute"] = "myVal";
    

提交回复
热议问题