Click here to Skip to main content
15,895,462 members
Home / Discussions / Web Development
   

Web Development

 
QuestionHow Do make a website reports Pin
Vimalsoft(Pty) Ltd11-May-07 1:21
professionalVimalsoft(Pty) Ltd11-May-07 1:21 
AnswerRe: How Do make a website reports Pin
Fred_Smith11-May-07 1:54
Fred_Smith11-May-07 1:54 
GeneralRe: How Do make a website reports Pin
Vimalsoft(Pty) Ltd11-May-07 2:11
professionalVimalsoft(Pty) Ltd11-May-07 2:11 
GeneralRe: How Do make a website reports Pin
Fred_Smith11-May-07 2:34
Fred_Smith11-May-07 2:34 
GeneralRe: How Do make a website reports Pin
Vimalsoft(Pty) Ltd11-May-07 2:39
professionalVimalsoft(Pty) Ltd11-May-07 2:39 
QuestionHELP: Strict JavaScript Syntax Checker Verifier Pin
dhruba.bandopadhyay10-May-07 23:43
dhruba.bandopadhyay10-May-07 23:43 
AnswerRe: HELP: Strict JavaScript Syntax Checker Verifier Pin
subrata.jana11-May-07 0:25
subrata.jana11-May-07 0:25 
QuestionChange style based on device type Pin
Mundo Cani10-May-07 21:48
Mundo Cani10-May-07 21:48 
Hello,

I'm new to the web development world and I'm hoping someone can point me in the right direction.

I have an asp.net website (I'm using a starterkit from www.asp.net). I want to apply a different stylesheet if the client is a mobile device. I'm using a plugin that gives me the client device's display settings. If the display is below a certain resolution I want to use mobile.css. Otherwise, I want to use default.css.

My understanding is that the style gets applied on the server when a request is made, and the resulting html is returned to the client. But I want the decission as to what style gets applied to be made by the client. How can I go about using javascript to change the stylesheet on the fly? Or, if I'm barking up the wrong tree, is there a way for me to program this functionality in the codebehind (I don't think there is, as the decission would have to be made on the client...)?

Thanks for your help! (I'm a total noob in this area!)



Ian

AnswerRe: Change style based on device type Pin
subrata.jana11-May-07 0:28
subrata.jana11-May-07 0:28 
GeneralRe: Change style based on device type Pin
Mundo Cani11-May-07 6:31
Mundo Cani11-May-07 6:31 
AnswerRe: Change style based on device type Pin
Johnny ²11-May-07 9:49
Johnny ²11-May-07 9:49 
GeneralRe: Change style based on device type Pin
Mundo Cani11-May-07 22:47
Mundo Cani11-May-07 22:47 
AnswerRe: Change style based on device type Pin
JimmyRopes12-May-07 7:45
professionalJimmyRopes12-May-07 7:45 
QuestionHyperlinkColumn! Pin
nclauder10-May-07 19:17
nclauder10-May-07 19:17 
AnswerRe: HyperlinkColumn! [modified] Pin
Panchal Hardik11-May-07 1:47
Panchal Hardik11-May-07 1:47 
QuestionTooltips Pin
Laing,James10-May-07 13:25
Laing,James10-May-07 13:25 
AnswerRe: Tooltips Pin
MatrixCoder10-May-07 16:09
MatrixCoder10-May-07 16:09 
GeneralRe: Tooltips Pin
Laing,James13-May-07 7:50
Laing,James13-May-07 7:50 
Questionjavascript for textbox that accept only numbers Pin
DineshSharmain10-May-07 1:35
DineshSharmain10-May-07 1:35 
AnswerRe: javascript for textbox that accept only numbers Pin
RichardGrimmer10-May-07 5:19
RichardGrimmer10-May-07 5:19 
GeneralRe: javascript for textbox that accept only numbers Pin
DineshSharmain10-May-07 19:05
DineshSharmain10-May-07 19:05 
GeneralRe: javascript for textbox that accept only numbers Pin
Christian Graus10-May-07 19:38
protectorChristian Graus10-May-07 19:38 
AnswerRe: javascript for textbox that accept only numbers Pin
krsasi11-May-07 1:29
krsasi11-May-07 1:29 
QuestionMIVA in ASP.Net VB Code Pin
hifiger20049-May-07 3:54
hifiger20049-May-07 3:54 
AnswerRe: MIVA in ASP.Net VB Code Pin
Christian Graus10-May-07 10:43
protectorChristian Graus10-May-07 10:43 

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.