473,466 Members | 1,455 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Client popup dialog based on server side logic

I have an asp.net application written in c# and in many cases when the user
submits a form or causes a postback there could be significant processing
(logic) required which results in a message being displayed to the user.

After processing server side I register a script with the clientside to use
alert('message');
to display the user message.

The problem I have is that this message will show again if the user leaves
the page and returns using the back button. How can I display the message
only once ?

Nov 19 '05 #1
2 3780
In the client script do something like this:

--script tag
var windowshown = 0;

function myfunc(){
if (windowshown == 0){
windowshown = 1;
msgbox('hello');
}
}
--end script tag

"Simon Matthews" wrote:
I have an asp.net application written in c# and in many cases when the user
submits a form or causes a postback there could be significant processing
(logic) required which results in a message being displayed to the user.

After processing server side I register a script with the clientside to use
alert('message');
to display the user message.

The problem I have is that this message will show again if the user leaves
the page and returns using the back button. How can I display the message
only once ?

Nov 19 '05 #2
As I am registering the script block as a startup script the variable
windowshown would be reset to 0 and the message shown everytime the page was
refreshed ?

Simon.

"Brad Roberts" wrote:
In the client script do something like this:

--script tag
var windowshown = 0;

function myfunc(){
if (windowshown == 0){
windowshown = 1;
msgbox('hello');
}
}
--end script tag

"Simon Matthews" wrote:
I have an asp.net application written in c# and in many cases when the user
submits a form or causes a postback there could be significant processing
(logic) required which results in a message being displayed to the user.

After processing server side I register a script with the clientside to use
alert('message');
to display the user message.

The problem I have is that this message will show again if the user leaves
the page and returns using the back button. How can I display the message
only once ?

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Vetrivel | last post by:
Application architecture : Develop interface between two existing systems, a. Enterprise CRM system b. Web based intranet system. Environment : Intranet Server : IIS and ASP. Script :...
15
by: Michael Rybak | last post by:
hi, everyone. I'm writing a 2-players game that should support network mode. I'm now testing it on 1 PC since I don't have 2. I directly use sockets, and both client and server do...
2
by: Mohammed | last post by:
Hi all, I’m currently developing a Client/Server application based on Socket, on which the client runs a UI and submit some request which will be send to the server then the client exit. Then...
6
by: Yuri Vanzine | last post by:
In asp we can run VBSCRIPT client-side which allows for 'easy' :?) ms office COM object instantiation. How do I access a Word object in ASP.NET on the client side? I would like to do spell...
14
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2)...
4
by: Lau Alvin | last post by:
HI all , I want to make a button which have a server side OnClick event in .cs to update the DB. But I want it to have a client side onclick event to run a javascript popup too. And the...
4
by: Pedro Leite | last post by:
Good Afternoon. the code below is properly retreiving binary data from a database and saving it. but instead of saving at client machine is saving at the server machine. what is wrong with my...
10
by: Paul | last post by:
Hi I am using the HtmlInputFile control to upload a file from a client to a server. I have a browse to find the file on the server but need to create the path dynamically as to were it will go...
1
by: susikto chaudhuri | last post by:
Hi, I have created a server response page (written in PHP). This is receiving the response from the server and writing into a text file. What I want to do when I will get the response from the...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.