Label1.Text = "Some normal text some red text";
my output is
now i need to save the text with style in database and display same as last example
please reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Posted Jul 27, 2013, 5:32 AM
Don't store the css style inside the database it is not recommended ? If you want play around user based styles,try to use themes kind of stuff.
Because, if you want to get the style from database, you need to talk whenever the page loads (you may use cache), but still it is not recommended.
Don't use inline CSS / styles, you can not reuse across the pages.
Use external CSS files, you can use it for across the pages and the browser also caches the external CSS automatically.
Iftikar HussainPosted Jul 27, 2013, 5:18 AM
Regards,
Iftikar
deva nathanPosted Jul 27, 2013, 5:14 AM
Iftikar HussainPosted Jul 27, 2013, 4:21 AM
Regards,
Iftikar
deva nathanPosted Jul 27, 2013, 4:18 AM
Iftikar HussainPosted Jul 27, 2013, 4:10 AM
Note: It will be not possible directly to save the style
Regards,
Iftikar
deva nathanPosted Jul 27, 2013, 4:04 AM
Iftikar HussainPosted Jul 27, 2013, 3:51 AM
You are looking for solution in ASP.NET or Windows Application?
Regards,
Iftikar