Hi,
I was wondering what are best practices when it comes to displaying
messages in a web project?
I currently have a resource class where I keep all messsages (welcome,
error, etc messages)
Cheers,
Jack 4 943
Jack,
The best way is to use client-side javascript alert call. If you need to
show a message, pass it from server to client side in a hidden input and
make a client onload event that will check the value of the input and, if it
is not empty, call the alert with the input value as the message text.
Eliyahu
<ja****@humlog.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com... Hi,
I was wondering what are best practices when it comes to displaying messages in a web project?
I currently have a resource class where I keep all messsages (welcome, error, etc messages)
Cheers, Jack
Hi
There is a server side solution...
string script = "<script> window.alert(\"" + "Invalid End Time" +
"\"); </script>";
RegisterStartupScript("close",script);
Regards,
Daniel Roth
MCSD.NET
Eliyahu Goldin wrote: Jack,
The best way is to use client-side javascript alert call. If you need
to show a message, pass it from server to client side in a hidden input
and make a client onload event that will check the value of the input
and, if it is not empty, call the alert with the input value as the message
text. Eliyahu
<ja****@humlog.com> wrote in message news:11**********************@g49g2000cwa.googlegr oups.com... Hi,
I was wondering what are best practices when it comes to displaying messages in a web project?
I currently have a resource class where I keep all messsages
(welcome, error, etc messages)
Cheers, Jack
Having a resource class where all your messages are is a very good
idea,
Then when you need to use a message in multiple locations you just use
the reference the one class,
later on if you need to changea message, just change it in one place
The UIP application black uses a resource manager to do this This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: lothar |
last post by:
i want to traverse a set of messages in a Yahoogroups group from a Python
program.
to get to the messages of the group, one must log in.
this presents, i think, two problems,
1) handling the...
|
by: piyush |
last post by:
Sorry for repeated posting but I couldnt get things right/completely
in the first post.
I am in the process of deciding the IPC mechanisms to use for
communication between
1) An application...
|
by: Adam |
last post by:
Hi,
How do i listen for windows messages in c# on
compact.net? I have a window containing an instantiation
of the HTML viewer control, which is a child of the main
form. As the compact...
|
by: piyush |
last post by:
Sorry for repeated posts, I couldnt get things right and complete in
the previous post.
I am in the process of deciding the IPC mechanisms to use for
communication between
1) An application...
|
by: zorhel |
last post by:
Hi.
My clients will be IE, Mozilla and Opera in
a Windows and *nix OS.
So, my web app need to, from a server, send messages to a specific client
(browser), send messages for all clients,...
|
by: ucfcpegirl06 |
last post by:
Hello,
I have a dilemma. I am trying to flag duplicate messages received off
of a com port. I have a software tool that is supposed to detect dup
messages and flag and write the text "DUP" on...
|
by: neonspark |
last post by:
I'm buidling some simple macro functionality for my app so the users can record a sequence of keyboard inputs and replay them reliably via some menu.
Originally, I used:
protected override bool...
|
by: Charlie Gordon |
last post by:
Keith Thompson wrote this by private email:
I've open an account with motzarella.org, and your last post does not show
up there either.
As a matter of fact, your messages show up on a very...
|
by: CodeSeeker |
last post by:
I have an application, which uses pop3 to read the messages from the mailbox, and it has been working fine for so many year. We recently have started changing this application to use java mail IMAP 4...
|
by: Grant Edwards |
last post by:
Could whoever is responsible for the gateway that is grabbing
my postings off of Usenet and e-mailing them out please fix the
headers in the mail messages so that I don't get the bounce
messages?...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |