Vb6 “Tag” property equivalent in ASP.Net?

后端 未结 8 1374
迷失自我
迷失自我 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:10

    You asked about ASP.Net, but vb6 was a desktop language, and so were it's 'tagged' controls. The VBScript used for classic asp didn't really have a concept of a control.

    Now in .Net, for desktop controls you can use inheritance, which is much more powerful than the old Tag property anyway. Inheritance applies to web controls as well, though you do have to be careful about using it to hold state.

提交回复
热议问题