开发者

HTML Control asp.net

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜