如何使用c#代码将内联样式应用于asp.net中的消息框 [英] How to apply inline style to a message box in asp.net with c# code behind

查看:85
本文介绍了如何使用c#代码将内联样式应用于asp.net中的消息框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将内联样式应用于asp.net中的消息弹出框,后面有c#代码? Ajax

不能使用。

How to apply inline style to a message pop up box in asp.net with c# code behind?. Ajax
cannot be used.

推荐答案

你可以使用下面的代码





you can use below code


controlid.style.add("color","red");





同样可以使用c#中的任何样式属性。



same way you can use any style property from the c#.


这篇关于如何使用c#代码将内联样式应用于asp.net中的消息框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆