|
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
<br />
<HTML><br />
<HEAD><br />
<script language=javascript><br />
function LoadWindow()<br />
{<br />
<br />
<% <br />
if(PageInvocation.Trim().Length <= 0)<br />
{ <br />
Response.Write("window.history.go(+1); ");<br />
} <br />
%><br />
<br />
<%=PageInvocation%><br />
<% PageInvocation=""; %> <br />
<br />
} <br />
</script><br />
</HEAD><br />
<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0" onload="LoadWindow()" onunload="CleanUp()"> <br />
.<br />
.<br />
.<br />
</body><br />
</HTML><br />
My .aspx.cs has the following code.
<br />
public Page_load()<br />
{<br />
PageInvocation = "alert('Hi- First Time!!!'); ";<br />
PageInvocation = "alert('Hi- Second Time!!!'); ";<br />
}<br />
<br />
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
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
i hav created the proxy of my web service and its dll as well but my cient application that is a asp.net application is giving this error wen im adding the reference to the service
The type 'Service' is ambiguous: it could come from assembly 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\mywebservice\522ada3f\21d22f71\App_Code.bahepogz.DLL' or from assembly 'C:\Inetpub\wwwroot\WebSite1\bin\Serviceproxy.DLL'. Please specify the assembly explicitly in the type name.
bia
|
|
|
|
|
I got a table in ASP.NET page..How to make a user control for example a menu toolbar take the width and height of table cell?
Best regards
|
|
|
|
|
hi,
give the height and width in percent - %
Thanks & Regards...
Amit
|
|
|
|
|
My aspx page always display the old data , so i need to manually refresh the page only the page display the latest data, how to diable browser save the cache ?
Best regards,
Chee ken
|
|
|
|
|
i have not done it but you can get help from this
Response.AddHeader("Cache-Control", "no-cache");
Response.AddHeader("Cache-Control", "no-store");
Response.AddHeader("Pragma", "no-cache");
Google it i think you will definatly get it
Enjoy coding
|
|
|
|
|
still can not disable the cache.
Best regards,
Chee ken
|
|
|
|
|
Hi All,
i m using c#,asp.net with 1.1 framework. i m trying that user must be able to
navigate only in forward direction, i.e. clicking on back button must display
an error page like "Page Expire". how can i implement this fuctionality...
Thanks in advance...
Regards...
Amit
|
|
|
|
|
Hi there,
Write the following header settings in Page Load event, Page will always rendered from the server rather than from cache... and displays a message stating that page is expired.
Response.AddHeader ("Pragma", "no-cache");
Response.Cache.SetCacheability (HttpCacheability.NoCache);
Response.Cache.SetExpires (DateTime.Now.AddHours (-1));
Confidence comes not from always being right, but from not fearing to be wrong.
Mihir..
|
|
|
|
|
how can i trap the back button in Internet Exploer using asp.net2005.i want to stop back button or disabl back button at a particular page.
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
I am not sure of disabling the back button but using javascript you can keep the user on the same page i.e. forwarding again to the same page after clicking on the back button.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Also you can remove all this buttons from the browser if you don't need them
|
|
|
|
|
how can i do tht?
may u help me more?
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
You can put this script in your webpage:
<script>
if(window.history.forward(1) != null)
window.history.forward(1);
</script>
Best Regards,
Apurva Kaushal
|
|
|
|
|
If the user closes the browser without pressing the log out button, their session will remain open until the timeout period expires.
How to maintain the session for the same?
Regards,
Ram
|
|
|
|
|
Could you rephrase your question? I don't think anybody can understand what you are trying to ask.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
rahul89 wrote: their session will remain open until the timeout period expires.
I think you answered your question. It is already maintained !
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
You can kill the session at the Application_End event within your Global.asax
Nila
|
|
|
|
|
Hi all,
I want to display thumbnails of 5 images in a row in datatgrid..
In the usual way only, 1 image per row can be displayed in datagrid.
Is there any way out?
Pls help...
thanking you,
sdaniel_cst
|
|
|
|
|
You can use datalist for this purpose they you can show the images exactly like you want.
Best Regards,
Apurva Kaushal
|
|
|
|
|
hello,
i hav made controls and all these controls r in an single folder name my_control. My_webform.aspx in myfolder001 and dis folder created dynamically my_webform.aspx includes dis control and when i execute <http://loaclhost/mySite/myfolder001/my_webform.aspx>
mycontrol contains a simple form inserting data into tables.
dis webform does not postin in internet explorer and working fine in mozila.
thanx
rahul saini
|
|
|
|
|
Some columns of a gridview are dynamically bound.
The gridview has a header checkbox used for Select All function.
During dynamic binding the header checkbox is not rendering.
There is some server code also in its Checked event.
So how to make that header checkbox visible during dynamic binding of “columns” in the gridview.
sooraj
|
|
|
|