bungpeng Posted February 21, 2005 Posted February 21, 2005 How do I make this HTML Meta dynamic in all the page in my web application? <meta http-equiv=Content-Type content="text/html; charset=UTF-8"> For example, the "UTF-8" may change to something else... TQ! Quote
Diesel Posted February 21, 2005 Posted February 21, 2005 One solution would be using response.write to create the html page. Quote
Administrators PlausiblyDamp Posted February 21, 2005 Administrators Posted February 21, 2005 You could add a literal control to the HTML of the page and set it's value to the string you desire at runtime. However isn't the charset attribute autogenerated based on the characterset of the page? If so I would recomend changing it via the Page object rather than just faking the HTML source. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
bungpeng Posted February 21, 2005 Author Posted February 21, 2005 You could add a literal control to the HTML of the page and set it's value to the string you desire at runtime. However isn't the charset attribute autogenerated based on the characterset of the page? If so I would recomend changing it via the Page object rather than just faking the HTML source. How to use Page Object to do that? I have no ideas, please help! Quote
Administrators PlausiblyDamp Posted February 21, 2005 Administrators Posted February 21, 2005 How to use Page Object to do that? I have no ideas, please help! Page.Response.Charset = "utf-8" Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
bungpeng Posted February 22, 2005 Author Posted February 22, 2005 thank you very much! I think this is what I want Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.