Click here to Skip to main content
16,005,389 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Problem with button click event handler Pin
Christian Graus4-Jan-07 18:30
protectorChristian Graus4-Jan-07 18:30 
GeneralRe: Problem with button click event handler Pin
Tina P5-Jan-07 5:38
Tina P5-Jan-07 5:38 
GeneralRe: Problem with button click event handler Pin
Christian Graus5-Jan-07 19:18
protectorChristian Graus5-Jan-07 19:18 
GeneralRe: Problem with button click event handler Pin
Tina P6-Jan-07 13:46
Tina P6-Jan-07 13:46 
GeneralRe: Problem with button click event handler Pin
Christian Graus6-Jan-07 14:24
protectorChristian Graus6-Jan-07 14:24 
GeneralRe: Problem with button click event handler Pin
Tina P6-Jan-07 15:27
Tina P6-Jan-07 15:27 
GeneralRe: Problem with button click event handler Pin
Christian Graus6-Jan-07 15:38
protectorChristian Graus6-Jan-07 15:38 
GeneralRe: Problem with button click event handler Pin
Tina P6-Jan-07 16:59
Tina P6-Jan-07 16:59 
Yes they are the IDs for the drop downs.

"Oh - wait - what are BackColor, etc ? Looks to me like they are drop lists. I see no code to set any actual properties on your page here then, just code to move values between the drop lists and a cookie."

You are right, the code to set the colors and otthers is actually done in the aspx page:
<br />
body{<br />
font: <%=GetStyle("FontSize")%> <%=GetStyle("FontName")%>;<br />
background-color: <%=GetStyle("BackColor")%>;<br />


GetStyle is the function that returns the style based on user selection:

public string GetStyle(String key)
{

HttpCookie cookie = Request.Cookies["preferences1"];

if (cookie != null)
{
switch (key)
{

case "ForeColor" :
return cookie.Values["ForeColor"];
break;

case "BackColor" :
return cookie.Values["BackColor"];
break;

case "LinkColor" :
return cookie.Values["LinkColor"];
break;

case "FontSize" :
return cookie.Values["FontSize"];
break;

case "FontName" :
return cookie.Values["FontName"];
break;
}
}
return "";
}

Is there are a way to eliminate this issue? I'm soooo frustrated D'Oh! | :doh:

Thanks
~TINA
GeneralRe: Problem with button click event handler Pin
Christian Graus6-Jan-07 23:23
protectorChristian Graus6-Jan-07 23:23 
GeneralRe: Problem with button click event handler Pin
Tina P7-Jan-07 8:16
Tina P7-Jan-07 8:16 
GeneralRe: Problem with button click event handler Pin
Christian Graus7-Jan-07 9:13
protectorChristian Graus7-Jan-07 9:13 
GeneralRe: Problem with button click event handler Pin
Tina P7-Jan-07 10:32
Tina P7-Jan-07 10:32 
QuestionRe: Problem with button click event handler Pin
Tina P7-Jan-07 11:03
Tina P7-Jan-07 11:03 
Questionproblem dropdownlist Pin
mohd imran abdul aziz4-Jan-07 18:04
mohd imran abdul aziz4-Jan-07 18:04 
AnswerRe: problem dropdownlist Pin
Jay_se4-Jan-07 19:06
Jay_se4-Jan-07 19:06 
AnswerRe: problem dropdownlist Pin
Venkatesh Mookkan4-Jan-07 19:30
Venkatesh Mookkan4-Jan-07 19:30 
QuestionSearch keyword in set of documents stored using Sharepoint Pin
Member 36858894-Jan-07 17:07
Member 36858894-Jan-07 17:07 
QuestionProblem in setting up auto signout when closing the application browser window Pin
Renukapadhamanaban4-Jan-07 14:40
Renukapadhamanaban4-Jan-07 14:40 
AnswerRe: Problem in setting up auto signout when closing the application browser window Pin
Not Active4-Jan-07 15:50
mentorNot Active4-Jan-07 15:50 
GeneralRe: Problem in setting up auto signout when closing the application browser window Pin
Venkatesh Mookkan4-Jan-07 16:43
Venkatesh Mookkan4-Jan-07 16:43 
GeneralRe: Problem in setting up auto signout when closing the application browser window Pin
Not Active4-Jan-07 16:53
mentorNot Active4-Jan-07 16:53 
GeneralRe: Problem in setting up auto signout when closing the application browser window Pin
Venkatesh Mookkan4-Jan-07 16:56
Venkatesh Mookkan4-Jan-07 16:56 
GeneralRe: Problem in setting up auto signout when closing the application browser window Pin
Not Active4-Jan-07 17:15
mentorNot Active4-Jan-07 17:15 
GeneralSolved like this Pin
Renukapadhamanaban7-Jan-07 13:52
Renukapadhamanaban7-Jan-07 13:52 
GeneralRe: Problem in setting up auto signout when closing the application browser window Pin
Renukapadhamanaban4-Jan-07 16:59
Renukapadhamanaban4-Jan-07 16:59 

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.