Last post Nov 04, 2020 07:52 AM by XuDong Peng
Nov 03, 2020 02:50 AM|kengkit|LINK
This is my solution to populate google analytics code from textfile in MasterPage (Page_Init)
Is it a good way?
If File.Exists(Server.MapPath("App_Data/google-analytics-code.txt")) Then
Nov 04, 2020 07:52 AM|XuDong Peng|LINK
Raised after all controls have been initialized and any skin settings have been applied. The Init event of individual controls occurs before the Init event of the page.
You could also use this event to read or initialize control properties.
According to your code, it just loads some text content in the master page. But if only for this purpose, I think you could also try to implement it in
If I misunderstood something, please let me know.