Click here to Skip to main content
15,897,273 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: breaking point Pin
brettokumar26-Jun-08 3:27
professionalbrettokumar26-Jun-08 3:27 
GeneralRe: breaking point Pin
Christian Graus26-Jun-08 13:07
protectorChristian Graus26-Jun-08 13:07 
Questiongrid cursor point Pin
Member 387988126-Jun-08 1:53
Member 387988126-Jun-08 1:53 
AnswerRe: grid cursor point Pin
eyeseetee26-Jun-08 2:16
eyeseetee26-Jun-08 2:16 
QuestionPerformance Issues while populating datagrid Pin
zareee26-Jun-08 1:09
zareee26-Jun-08 1:09 
AnswerRe: Performance Issues while populating datagrid Pin
Christian Graus26-Jun-08 1:10
protectorChristian Graus26-Jun-08 1:10 
AnswerRe: Performance Issues while populating datagrid Pin
eyeseetee26-Jun-08 1:28
eyeseetee26-Jun-08 1:28 
QuestionThis is weird! [modified] Pin
Waleed Eissa26-Jun-08 0:10
Waleed Eissa26-Jun-08 0:10 
I'm creating a multilingual website so I'm trying to dynamically include the language related stylesheet. As you might have already expected, I do this in the page head using a link tag. Well, for some reason I'm not aware of, the code below doesn't work (when I move it outside the the page head, it works though!):

<link rel="stylesheet" href="/css/<%= _language.Stylesheet %>" type="text/css" media="screen" />

It gives this output:

<link rel="stylesheet" href="/css/&lt;% _language.Stylesheet %>" type="text/css" media="screen" />

On the other hand this code works perfectly:

<link rel="stylesheet" href=<%= string.Format("\"/css/{0}\"", _language.Stylesheet) %> type="text/css" media="screen" />


This is really weird, can anybody explain what's going on?!!

P.S. This is ASP.NET 2.0


UPDATE

When tried to remove runat="server" from the head tag, it actually worked! The problem is that I set the page title in my code so I have to keep runat="server" in the head tag, it seems like a bug to me, what do you think?


modified on Thursday, June 26, 2008 6:36 AM

AnswerRe: This is weird! Pin
Christian Graus26-Jun-08 0:19
protectorChristian Graus26-Jun-08 0:19 
GeneralRe: This is weird! Pin
Waleed Eissa26-Jun-08 0:29
Waleed Eissa26-Jun-08 0:29 
AnswerRe: This is weird! Pin
N a v a n e e t h26-Jun-08 16:09
N a v a n e e t h26-Jun-08 16:09 
GeneralRe: This is weird! Pin
Waleed Eissa27-Jun-08 3:00
Waleed Eissa27-Jun-08 3:00 
QuestionServer Application Error? Pin
bug_aonz25-Jun-08 23:26
bug_aonz25-Jun-08 23:26 
AnswerRe: Server Application Error? Pin
eyeseetee25-Jun-08 23:32
eyeseetee25-Jun-08 23:32 
Questionhow to populate a second dropdown list depend on the selection of 1st ddl Pin
Meax25-Jun-08 23:24
Meax25-Jun-08 23:24 
AnswerRe: how to populate a second dropdown list depend on the selection of 1st ddl Pin
eyeseetee25-Jun-08 23:30
eyeseetee25-Jun-08 23:30 
AnswerRe: how to populate a second dropdown list depend on the selection of 1st ddl Pin
Christian Graus25-Jun-08 23:36
protectorChristian Graus25-Jun-08 23:36 
AnswerRe: how to populate a second dropdown list depend on the selection of 1st ddl Pin
Arindam Tewary25-Jun-08 23:39
professionalArindam Tewary25-Jun-08 23:39 
AnswerRe: how to populate a second dropdown list depend on the selection of 1st ddl Pin
Imran Khan Pathan25-Jun-08 23:51
Imran Khan Pathan25-Jun-08 23:51 
GeneralRe: how to populate a second dropdown list depend on the selection of 1st ddl Pin
Sherin Iranimose25-Jun-08 23:56
Sherin Iranimose25-Jun-08 23:56 
GeneralRe: how to populate a second dropdown list depend on the selection of 1st ddl Pin
Imran Khan Pathan26-Jun-08 0:01
Imran Khan Pathan26-Jun-08 0:01 
GeneralRe: how to populate a second dropdown list depend on the selection of 1st ddl Pin
Sherin Iranimose26-Jun-08 0:11
Sherin Iranimose26-Jun-08 0:11 
GeneralRe: how to populate a second dropdown list depend on the selection of 1st ddl Pin
Christian Graus25-Jun-08 23:58
protectorChristian Graus25-Jun-08 23:58 
GeneralRe: how to populate a second dropdown list depend on the selection of 1st ddl Pin
eyeseetee26-Jun-08 0:07
eyeseetee26-Jun-08 0:07 
GeneralRe: how to populate a second dropdown list depend on the selection of 1st ddl Pin
Sherin Iranimose26-Jun-08 0:12
Sherin Iranimose26-Jun-08 0:12 

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.