Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. To change the background color of AlertBox?

To change the background color of AlertBox?

Scheduled Pinned Locked Moved ASP.NET
csharphelpasp-netquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    crazy_mads
    wrote on last edited by
    #1

    I have an issue.. I have many alertBoxes in my code (ASP.NET - C# is used). I want to distinguish between AlertBoxes. For that i want to change the background color of the alertbox or use an icon inside alert. Or add a title to the alert. My code is similar to this. My .aspx page contains the following function LoadWindow() { <% if(PageInvocation.Trim().Length <= 0) { Response.Write("window.history.go(+1); "); } %> <%=PageInvocation%> <% PageInvocation=""; %> } . . . My .aspx.cs has the following code. public Page_load() { PageInvocation = "alert('Hi- First Time!!!'); "; PageInvocation = "alert('Hi- Second Time!!!'); "; } I want to distinguish the 2 alerts by giving a different background color or adding icon or by adding a different title. Plzzz.. Help me out.:( Mads

    D 1 Reply Last reply
    0
    • C crazy_mads

      I have an issue.. I have many alertBoxes in my code (ASP.NET - C# is used). I want to distinguish between AlertBoxes. For that i want to change the background color of the alertbox or use an icon inside alert. Or add a title to the alert. My code is similar to this. My .aspx page contains the following function LoadWindow() { <% if(PageInvocation.Trim().Length <= 0) { Response.Write("window.history.go(+1); "); } %> <%=PageInvocation%> <% PageInvocation=""; %> } . . . My .aspx.cs has the following code. public Page_load() { PageInvocation = "alert('Hi- First Time!!!'); "; PageInvocation = "alert('Hi- Second Time!!!'); "; } I want to distinguish the 2 alerts by giving a different background color or adding icon or by adding a different title. Plzzz.. Help me out.:( Mads

      D Offline
      D Offline
      DavidNohejl
      wrote on last edited by
      #2

      Hello, You could try something better then alert(). What about http://www.codeproject.com/aspnet/asppopup.asp[^] ?


      "Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus

      C 2 Replies Last reply
      0
      • D DavidNohejl

        Hello, You could try something better then alert(). What about http://www.codeproject.com/aspnet/asppopup.asp[^] ?


        "Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus

        C Offline
        C Offline
        crazy_mads
        wrote on last edited by
        #3

        Thanks a lot. i think its really useful. :) mads

        1 Reply Last reply
        0
        • D DavidNohejl

          Hello, You could try something better then alert(). What about http://www.codeproject.com/aspnet/asppopup.asp[^] ?


          "Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus

          C Offline
          C Offline
          crazy_mads
          wrote on last edited by
          #4

          It is really helpful.but i am not able to add a pop up with OK and CANCEL buttons inside. Can u suggest me with something about this.:( mads

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups