To change the background color of AlertBox?
-
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 -
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.:( MadsHello, 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
-
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
Thanks a lot. i think its really useful. :) mads
-
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
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