Click here to Skip to main content
16,004,806 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionTriggering the Background color, font and other properties in ASP.Net Pin
Tina P21-Dec-06 10:21
Tina P21-Dec-06 10:21 
AnswerRe: Triggering the Background color, font and other properties in ASP.Net Pin
eggsovereasy21-Dec-06 10:53
eggsovereasy21-Dec-06 10:53 
GeneralRe: Triggering the Background color, font and other properties in ASP.Net Pin
Tina P21-Dec-06 20:11
Tina P21-Dec-06 20:11 
GeneralRe: Triggering the Background color, font and other properties in ASP.Net Pin
Nimit Patel22-Dec-06 2:14
Nimit Patel22-Dec-06 2:14 
GeneralRe: Triggering the Background color, font and other properties in ASP.Net Pin
eggsovereasy22-Dec-06 8:51
eggsovereasy22-Dec-06 8:51 
GeneralRe: Triggering the Background color, font and other properties in ASP.Net Pin
Tina P22-Dec-06 10:39
Tina P22-Dec-06 10:39 
GeneralRe: Triggering the Background color, font and other properties in ASP.Net Pin
Tina P22-Dec-06 12:06
Tina P22-Dec-06 12:06 
NewsRe: Triggering the Background color, font and other properties in ASP.Net Pin
Tina P23-Dec-06 15:24
Tina P23-Dec-06 15:24 
Hey Display name eggsovereasy:

Thanks for all your help with the color stuff. Apparently the only things missing (which 1.1 doesn't do automatically was the declaration of the body's id as a protected variable of type HtmlGenericControl). So thanks sooo much for your help.

Anyways, I have another question for you.

I want the user to be able to select font (such as Bold, Italic, underline) and stuff like that from a dropdown list) and then I wanna apply these properties to all my page (all text). Now I'm doing something like this:

string font = string.Empty;
switch(ddl2.SelectedItem.Text)
{
case "Bold":


font = Convert.ToString(System.Drawing.FontStyle.Bold);

break;

case "Italic":
font = Convert.ToString(System.Drawing.FontStyle.Italic);
break;

}
myBody.Attributes.Add("Font", font);
Session["theColor"] = font;

This worked for changing the color of the entire page as I hard coded the colors hexa decimal values in the cases, but here these are enums, and can only be compared.

Anyways does anyone has any input on this???? I want this to happen when the user select from the DDL and on the button click event it should change the font.

Thanks
Tina

QuestionGridview cross page data transfer Pin
srishree21-Dec-06 10:05
srishree21-Dec-06 10:05 
AnswerIf you want to use popup window for child gridview,this may help you Pin
kvPriya21-Dec-06 18:30
kvPriya21-Dec-06 18:30 
GeneralRe: If you want to use popup window for child gridview,this may help you Pin
srishree21-Dec-06 18:41
srishree21-Dec-06 18:41 
GeneralRe: If you want to use popup window for child gridview,this may help you Pin
kvPriya21-Dec-06 19:29
kvPriya21-Dec-06 19:29 
Questionflash +aspx Pin
keroed_edmond21-Dec-06 9:45
keroed_edmond21-Dec-06 9:45 
QuestionImageButton.Click event never gets fired! Pin
MY120121-Dec-06 9:08
MY120121-Dec-06 9:08 
AnswerRe: ImageButton.Click event never gets fired! Pin
eggsovereasy21-Dec-06 9:57
eggsovereasy21-Dec-06 9:57 
GeneralRe: ImageButton.Click event never gets fired! Pin
MY120121-Dec-06 10:06
MY120121-Dec-06 10:06 
GeneralRe: ImageButton.Click event never gets fired! Pin
eggsovereasy21-Dec-06 10:40
eggsovereasy21-Dec-06 10:40 
GeneralRe: ImageButton.Click event never gets fired! Pin
MY120121-Dec-06 20:23
MY120121-Dec-06 20:23 
QuestionDraw Table Pin
Blue_Boy21-Dec-06 4:47
Blue_Boy21-Dec-06 4:47 
QuestionFrom DataTable to GridView ? Pin
aspnu21-Dec-06 4:36
aspnu21-Dec-06 4:36 
AnswerRe: From DataTable to GridView ? Pin
Christian Graus21-Dec-06 9:02
protectorChristian Graus21-Dec-06 9:02 
GeneralRe: From DataTable to GridView ? Pin
aspnu21-Dec-06 23:22
aspnu21-Dec-06 23:22 
QuestionPasswordRecovery control Pin
kss11321-Dec-06 2:50
kss11321-Dec-06 2:50 
AnswerRe: PasswordRecovery control Pin
MoustafaS21-Dec-06 4:43
MoustafaS21-Dec-06 4:43 
GeneralRe: PasswordRecovery control Pin
kss11321-Dec-06 4:50
kss11321-Dec-06 4:50 

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.