473,387 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Web Messages

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

Nov 19 '05 #1
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

Nov 19 '05 #2
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


Nov 19 '05 #3
Great thanks.

Nov 19 '05 #4
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

Nov 19 '05 #5

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

Similar topics

1
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...
0
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...
5
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...
0
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...
5
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,...
7
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...
0
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...
26
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...
1
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...
18
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?...
0
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,...
0
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$) { } ...
0
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...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...
0
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...
0
Oralloy
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,...

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.