Click here to Skip to main content
15,925,723 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: BUTTON OVER IMAGE IN ASP.NET? Pin
Fred_Smith11-May-07 9:53
Fred_Smith11-May-07 9:53 
GeneralRe: BUTTON OVER IMAGE IN ASP.NET? Pin
hifiger200411-May-07 17:33
hifiger200411-May-07 17:33 
GeneralRe: BUTTON OVER IMAGE IN ASP.NET? Pin
hifiger200411-May-07 17:48
hifiger200411-May-07 17:48 
Questionasp mailler [modified]----solved Pin
emrefc11-May-07 5:41
emrefc11-May-07 5:41 
QuestionClearing the QueryString Pin
#realJSOP11-May-07 5:33
professional#realJSOP11-May-07 5:33 
AnswerRe: Clearing the QueryString Pin
JimmyRopes12-May-07 5:50
professionalJimmyRopes12-May-07 5:50 
GeneralRe: Clearing the QueryString Pin
#realJSOP12-May-07 7:52
professional#realJSOP12-May-07 7:52 
GeneralRe: Clearing the QueryString [modified] Pin
JimmyRopes12-May-07 9:49
professionalJimmyRopes12-May-07 9:49 
AnswerRe: Clearing the QueryString Pin
badgrs14-May-07 3:34
badgrs14-May-07 3:34 
GeneralRe: Clearing the QueryString Pin
#realJSOP14-May-07 4:18
professional#realJSOP14-May-07 4:18 
GeneralRe: Clearing the QueryString Pin
JimmyRopes14-May-07 6:11
professionalJimmyRopes14-May-07 6:11 
GeneralRe: Clearing the QueryString Pin
#realJSOP14-May-07 4:20
professional#realJSOP14-May-07 4:20 
GeneralRe: Clearing the QueryString Pin
JimmyRopes14-May-07 6:27
professionalJimmyRopes14-May-07 6:27 
QuestionBizTalk Clarification Pin
Prashant C11-May-07 1:29
Prashant C11-May-07 1:29 
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 

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.