在asp.net页面上应用存储的数据库CSS样式 [英] apply stored database css style on asp.net page

查看:112
本文介绍了在asp.net页面上应用存储的数据库CSS样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在数据库中保存了CSS样式信息(标题字体,标题颜色,标题样式,文本样式等)
现在我想在我的页面上应用这些css样式信息,如屏幕快照链接中所述;
图像链接
请告诉我该怎么做.
在此先感谢

i have css style information saved in my database(heading_fonts, heading_color,Heading_style,Text_style etc)
now i want to apply these css styles information on my page same as given in screen shot link;
image_link
please tell me how to do it.
thanks in advance

推荐答案

1.在运行时为控件定义CSS样式
2.使用ADO.NET从数据库中检索样式,然后根据需要通过代码将样式分配给控件.

因此,运行时样式将应用于请求的页面.

尝试,如果遇到任何特定问题,请发表.
1. Define CSS styles for the controls at runtime
2. Retrieve the styles from database using ADO.NET and then assign them to the controls as per your need via code.

Thus, a runtime styles would be applied to the page requested.

Try, post specific question if you face any.


现在您可以在HtmlEditor中检索数据库值并将其存储在页面中
Now you can retrieve the database value in HtmlEditor and store it pages


这篇关于在asp.net页面上应用存储的数据库CSS样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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