Click here to Skip to main content
15,894,343 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: sending mail through smtp Pin
R22k11-Feb-10 23:29
R22k11-Feb-10 23:29 
GeneralRe: sending mail through smtp Pin
amitamit09912-Feb-10 1:17
amitamit09912-Feb-10 1:17 
AnswerRe: sending mail through smtp Pin
T M Gray12-Feb-10 5:05
T M Gray12-Feb-10 5:05 
GeneralRe: sending mail through smtp Pin
PunkIsNotDead12-Feb-10 6:03
PunkIsNotDead12-Feb-10 6:03 
GeneralRe: sending mail through smtp Pin
T M Gray12-Feb-10 6:14
T M Gray12-Feb-10 6:14 
QuestionHow Template style change Pin
Ajeet kumar verma11-Feb-10 22:45
Ajeet kumar verma11-Feb-10 22:45 
AnswerRe: How Template style change Pin
Anurag Gandhi12-Feb-10 0:29
professionalAnurag Gandhi12-Feb-10 0:29 
AnswerRe: How Template style change Pin
T M Gray12-Feb-10 5:58
T M Gray12-Feb-10 5:58 
What kind of change and how dynamic? Are you talking about just switching between an established set of existing stylesheets? Are you talking about changing individual styles?

Themes can work if you just want a set of choices, but if you want something more dynamic than that you can create an aspx that outputs CSS and sets the Content-Type
protected override void OnInit(EventArgs e)
{
  //figure out some style values from database or whatever
  string backColor = SomeMethodToGetBackgroundColor();
  string textColor = SomeMethodToGetTextColor();
  string backImg = Foo();
  Response.ContentType = "text/css";
  string style = string.Format(@".myClass {{color:{1}; background-color{0}}}
                .myOtherClass {{color:{1}; background-image:url({2}) }}
                ", backColor, textColor, backImg);
  Response.Write(style);
  Response.End();
}

QuestionTextbox Scroll Bar Pin
koncuk11-Feb-10 22:32
koncuk11-Feb-10 22:32 
AnswerRe: Textbox Scroll Bar Pin
s.mn11-Feb-10 23:35
s.mn11-Feb-10 23:35 
GeneralRe: Textbox Scroll Bar Pin
koncuk12-Feb-10 0:37
koncuk12-Feb-10 0:37 
GeneralRe: Textbox Scroll Bar Pin
s.mn12-Feb-10 0:41
s.mn12-Feb-10 0:41 
GeneralRe: Textbox Scroll Bar Pin
koncuk12-Feb-10 0:57
koncuk12-Feb-10 0:57 
AnswerRe: Textbox Scroll Bar Pin
T M Gray12-Feb-10 7:57
T M Gray12-Feb-10 7:57 
GeneralRe: Textbox Scroll Bar Pin
koncuk14-Feb-10 20:58
koncuk14-Feb-10 20:58 
QuestionNot able To show loading image Pin
Any_India11-Feb-10 21:47
Any_India11-Feb-10 21:47 
AnswerRe: Not able To show loading image Pin
T M Gray12-Feb-10 6:12
T M Gray12-Feb-10 6:12 
AnswerRe: Not able To show loading image Pin
PunkIsNotDead12-Feb-10 6:15
PunkIsNotDead12-Feb-10 6:15 
Questionwhat is extension method in net? Pin
Tridip Bhattacharjee11-Feb-10 21:37
professionalTridip Bhattacharjee11-Feb-10 21:37 
AnswerRe: what is extension method in net? Pin
Anurag Gandhi12-Feb-10 0:02
professionalAnurag Gandhi12-Feb-10 0:02 
Questionquestion regarding asp.net net project type? Pin
Tridip Bhattacharjee11-Feb-10 21:37
professionalTridip Bhattacharjee11-Feb-10 21:37 
AnswerRe: question regarding asp.net net project type? Pin
i gr811-Feb-10 22:18
i gr811-Feb-10 22:18 
AnswerRe: question regarding asp.net net project type? Pin
T M Gray12-Feb-10 4:42
T M Gray12-Feb-10 4:42 
Questionmy datepicker is not working in opera but it is workin in IE,FireFox Pin
Tridip Bhattacharjee11-Feb-10 21:36
professionalTridip Bhattacharjee11-Feb-10 21:36 
AnswerRe: my datepicker is not working in opera but it is workin in IE,FireFox Pin
i gr811-Feb-10 22:23
i gr811-Feb-10 22:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.