.net - How to set asp.net default theme in asp.net -


i want set project default theme.

i have existing project multiples themes in , running properly. in order set default theme did following things in existing project-

content page (cs file)

protected override void onpreinit(eventargs e) {     httpcookie cookie = new httpcookie("theme", "default");     cookie.expires = datetime.now.adddays(30);     response.cookies.add(cookie);     base.oninit(e);     if (request.cookies["theme"] == null)     {         page.theme = "default";     }     else     {         page.theme = request.cookies["theme"].value;     } } 

even wrote following thing in web.config file

<pages theme ="default" /> 

but after trying theme takes value green set in existing project , not understanding should change more.

i checked

  • master page
  • content page
  • web.config

is there other file or other way themes set??


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -