Click here to Skip to main content
15,891,033 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to check retype password Pin
jagan12311-Feb-08 20:48
jagan12311-Feb-08 20:48 
Generalvs2003 and vs2005 Pin
Member 387988111-Feb-08 17:03
Member 387988111-Feb-08 17:03 
GeneralRe: vs2003 and vs2005 Pin
Christian Graus11-Feb-08 18:07
protectorChristian Graus11-Feb-08 18:07 
GeneralRe: vs2003 and vs2005 Pin
Gandalf_TheWhite11-Feb-08 18:45
professionalGandalf_TheWhite11-Feb-08 18:45 
GeneralRe: vs2003 and vs2005 Pin
dilipv11-Feb-08 19:14
dilipv11-Feb-08 19:14 
QuestionWWW in URL breaks ASP .Net Script ? Pin
Mitch F.11-Feb-08 16:27
Mitch F.11-Feb-08 16:27 
GeneralRe: WWW in URL breaks ASP .Net Script ? Pin
Christian Graus11-Feb-08 18:08
protectorChristian Graus11-Feb-08 18:08 
GeneralRe: WWW in URL breaks ASP .Net Script ? Pin
Mitch F.11-Feb-08 18:58
Mitch F.11-Feb-08 18:58 
Hi,

As suggested, I have moved all of my code into the code-behind file.

My head section now looks like:
<link rel="stylesheet" id="style" runat="server" />

And my codefile looks like:
Partial Class _Default<br />
    Inherits System.Web.UI.Page<br />
    Protected Sub highContrast_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles highContrast.Click<br />
        Response.Cookies("theme").Value = "high"<br />
        Response.Cookies("theme").Expires = DateTime.Now.AddYears(1)<br />
        Page.Response.Redirect(Page.Request.Url.ToString, True)<br />
    End Sub<br />
<br />
    Protected Sub lowContrast_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles lowContrast.Click<br />
        Response.Cookies("theme").Value = "low"<br />
        Response.Cookies("theme").Expires = DateTime.Now.AddYears(1)<br />
        Page.Response.Redirect(Page.Request.Url.ToString, True)<br />
    End Sub<br />
<br />
    Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit<br />
        Dim nString As String = "templates/stylesheet.css"<br />
        Dim cString As String = "templates/stylesheetC.css"<br />
        Dim nImg As String = "images/logo_inverted.png"<br />
        Dim cImg As String = "images/logo_normal.png"<br />
<br />
        Try<br />
            Dim themeCookie As String = Request.Cookies("theme").Value<br />
<br />
            If themeCookie = "low" Then<br />
                style.Href = nString<br />
                imgLogo.Src = nImg<br />
            ElseIf themeCookie = "high" Then<br />
                style.Href = cString<br />
                imgLogo.Src = cImg<br />
            Else<br />
                style.Href = nString<br />
                imgLogo.Src = nImg<br />
            End If<br />
<br />
        Catch ex As Exception<br />
            style.Href = nString<br />
            imgLogo.Src = nImg<br />
        End Try<br />
    End Sub<br />
End Class


However, I am still experiencing the same issue. Do you have any other suggestions? (I have also tried putting my code into Init, Load, and now PreInit, and nothing seems to change the result.) I am beginning to believe this is a problem with IE, because FF works fine.

Thanks,
Mitch
GeneralRe: WWW in URL breaks ASP .Net Script ? Pin
Mitch F.11-Feb-08 19:30
Mitch F.11-Feb-08 19:30 
General3 level datagrid drill down Pin
uglyeyes11-Feb-08 12:59
uglyeyes11-Feb-08 12:59 
GeneralRe: 3 level datagrid drill down Pin
Not Active11-Feb-08 14:53
mentorNot Active11-Feb-08 14:53 
GeneralRe: 3 level datagrid drill down Pin
uglyeyes11-Feb-08 16:55
uglyeyes11-Feb-08 16:55 
GeneralRe: 3 level datagrid drill down Pin
Not Active12-Feb-08 0:54
mentorNot Active12-Feb-08 0:54 
GeneralRe: 3 level datagrid drill down Pin
uglyeyes12-Feb-08 12:50
uglyeyes12-Feb-08 12:50 
GeneralPrevious Page Problem Pin
waheed awan11-Feb-08 12:58
waheed awan11-Feb-08 12:58 
GeneralRe: Previous Page Problem Pin
Not Active11-Feb-08 14:46
mentorNot Active11-Feb-08 14:46 
GeneralRe: Previous Page Problem Pin
waheed awan12-Feb-08 8:14
waheed awan12-Feb-08 8:14 
GeneralRe: Previous Page Problem Pin
Not Active12-Feb-08 8:36
mentorNot Active12-Feb-08 8:36 
GeneralRe: Previous Page Problem Pin
waheed awan12-Feb-08 10:43
waheed awan12-Feb-08 10:43 
GeneralRe: Previous Page Problem Pin
Not Active12-Feb-08 11:18
mentorNot Active12-Feb-08 11:18 
GeneralRe: Previous Page Problem Pin
waheed awan12-Feb-08 11:23
waheed awan12-Feb-08 11:23 
GeneralRe: Previous Page Problem Pin
Not Active12-Feb-08 11:39
mentorNot Active12-Feb-08 11:39 
GeneralRe: Previous Page Problem Pin
waheed awan12-Feb-08 14:47
waheed awan12-Feb-08 14:47 
GeneralRe: Previous Page Problem Pin
levonh200320-May-08 7:26
levonh200320-May-08 7:26 
GeneralProblem with ListView and Request.QueryString [modified] Pin
foahchon11-Feb-08 12:54
foahchon11-Feb-08 12:54 

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.