开发者

HTML Control asp.net

开发者 https://www.devze.com 2023-02-04 21:22 出处:网络
i am developing application and i have set some html control which are runat=\"server\" on code behind i need to change there text,i made htmlcontrol[] array which contain those control now the proble

i am developing application and i have set some html control which are runat="server" on code behind i need to change there text,i made htmlcontrol[] array which contain those control now the problem which i am facing that it didn't showing my text property so that i can change there text dynamically my code is

HtmlControl[] htmlctrl = { 开发者_运维知识库ctl1,ctl2,ctl3,ctl4 };

        foreach (HtmlControl ctl in htmlctrl)
        {


        }

Can anyone help me out.


you must type-cast html-control (which is textbox) to TextBox, in order to get Text property shown.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号