c# - Change a master pages footer source programatically -



c# - Change a master pages footer source programatically -

i have asp webform consists of masterpage header , footer command , content placeholder.

i have link within header triggers alter of language civilization altering query string of uri.

this works well, footer contains few fields separate this.

what on page_load masterpage if current threads civilization welsh, point @ welsh version of footer, not know how handle on footer's source.

if (thread.currentthread.currentculture.tostring() == "cy-gb") { string debug = footer1.tostring(); }

when alter language , inspect debug string can see value is: asp.components_footer2_ascx thought alter asp.components_footer2_cy_gb_ascx how can redirect source of footer within if statement?

can add together both ascx objects masterpage on page_load check welsh civilization , create visible or invisible relevant ascx object?

c# asp.net

Comments

Popular posts from this blog

php - Edges appear in image after resizing -

ios8 - iOS custom keyboard - preserve state between appearances -

Delphi change the assembly code of a running process -