473,407 Members | 2,312 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,407 software developers and data experts.

show a message to user (WebApplication)

Hi all,

I would like show a message to user when the function's result return
"false"... like this

....
if (! my_function(params))
showMessage("my string message");

so, How Can I do it? Like, send a window's message or opening an other
iexplorer sending the string message by parameter, like (in Javascript)
"window.open"...

thanks for all
Marcos
Nov 17 '05 #1
3 2277
Marcos,

What information are you validating? If you can use the built in validation
controls they have a an option to show a validation summary either on the
page or in a pop up window.

If this isn't what you're looking for let me know. Your other option is to
write code on-the-fly to a window you open with javascript. I'll give you a
sample if you'd like.

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Marcos MOS" <ma***********@softway.com.br> wrote in message
news:uZ**************@tk2msftngp13.phx.gbl...
Hi all,

I would like show a message to user when the function's result return
"false"... like this

...
if (! my_function(params))
showMessage("my string message");

so, How Can I do it? Like, send a window's message or opening an other
iexplorer sending the string message by parameter, like (in Javascript)
"window.open"...

thanks for all
Marcos

Nov 17 '05 #2
Hi,

thanks for your help...

so, I have a button im my aspx --> when the user click in that one, I do a
query in the database and if that returns a false result, like
if (myDataSet.Tables[0].Rows.Count > 1)
ShowMessage("User, you have already registered these
informations...")

Did you undertand me? That Message could be a window, or would be better if
I could show a simple message, like window.alert in JavaScript, but sending
my custom string message....

I'd like to receive your sample...

An other doubt, is... If I would like to do a question to user and depending
on the answer the Page do something, as follow the example:
if (showQuestion("Would you like to insert it?") == True)
this.insertFunction(params);

thanks a lot
Marcos
"S. Justin Gengo" <sj*****@aboutfortunate.com> escreveu na mensagem
news:#c**************@tk2msftngp13.phx.gbl...
Marcos,

What information are you validating? If you can use the built in validation controls they have a an option to show a validation summary either on the
page or in a pop up window.

If this isn't what you're looking for let me know. Your other option is to
write code on-the-fly to a window you open with javascript. I'll give you a sample if you'd like.

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Marcos MOS" <ma***********@softway.com.br> wrote in message
news:uZ**************@tk2msftngp13.phx.gbl...
Hi all,

I would like show a message to user when the function's result return
"false"... like this

...
if (! my_function(params))
showMessage("my string message");

so, How Can I do it? Like, send a window's message or opening an other
iexplorer sending the string message by parameter, like (in Javascript)
"window.open"...

thanks for all
Marcos


Nov 17 '05 #3
Marcos,

If the message is displayed to the user after a database query (which would
have to occurr on the server) a window.alert is the perfect way to go.

What you could do is attach it to an "onLoad" event in the body tag.

I have a bit of code on my website on how to do this.

Just go to www.aboutfortunate.com

The title you are looking for is: Use the "body" tag as a server control

If you filter the list for Web and VB.Net it will make it easier to find.
Sorry, but I haven't built the site's search function yet. But there isn't
much code in the library yet so it shouldn't be too hard to find.

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Marcos MOS" <ma***********@softway.com.br> wrote in message
news:uc**************@TK2MSFTNGP11.phx.gbl...
Hi,

thanks for your help...

so, I have a button im my aspx --> when the user click in that one, I do a
query in the database and if that returns a false result, like
if (myDataSet.Tables[0].Rows.Count > 1)
ShowMessage("User, you have already registered these
informations...")

Did you undertand me? That Message could be a window, or would be better if I could show a simple message, like window.alert in JavaScript, but sending my custom string message....

I'd like to receive your sample...

An other doubt, is... If I would like to do a question to user and depending on the answer the Page do something, as follow the example:
if (showQuestion("Would you like to insert it?") == True)
this.insertFunction(params);

thanks a lot
Marcos
"S. Justin Gengo" <sj*****@aboutfortunate.com> escreveu na mensagem
news:#c**************@tk2msftngp13.phx.gbl...
Marcos,

What information are you validating? If you can use the built in validation
controls they have a an option to show a validation summary either on the page or in a pop up window.

If this isn't what you're looking for let me know. Your other option is to write code on-the-fly to a window you open with javascript. I'll give

you a
sample if you'd like.

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Marcos MOS" <ma***********@softway.com.br> wrote in message
news:uZ**************@tk2msftngp13.phx.gbl...
Hi all,

I would like show a message to user when the function's result return
"false"... like this

...
if (! my_function(params))
showMessage("my string message");

so, How Can I do it? Like, send a window's message or opening an other
iexplorer sending the string message by parameter, like (in Javascript) "window.open"...

thanks for all
Marcos



Nov 17 '05 #4

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

Similar topics

1
by: Brett | last post by:
Hi There, I would like to know how I can load test my web application, I do not have VS .NET is there any good free tools out there? Brett.PerkinsSherson@uts.edu.au
3
by: Tom | last post by:
Hi I have a web application using asp.net and c#. User has to login to the application with his username and pwd. However, I do not allow other user uses the same username and pwd to login, i.e....
4
by: Gopal Prabhakaran | last post by:
Dear All, In one solution , I have 2 webapplication, now i want transfer one control form webapplication 1 to webapplication 2. Pls help ASAP Millions of Thanx in advance.
7
by: Simon Jefferies | last post by:
Hello, I'm trying to create a new ASP. NET Web Application project, when I enter a name and press OK i get the following: Web Access Failed. The default web access mode for this project is...
2
by: Billy Cormic | last post by:
Hello, Some of the functions of my web application take a good amount of time to load. Is there a good way to show users that information is processing and will enventually be loaded? Like...
0
by: vidya pawar | last post by:
Hi, I have created a Asp.net Web Application. In this web application I want to use native VC++ dll . I have used "dllImport" atribute. This works fine in Asp.net console Application. While...
2
by: ruca | last post by:
Hi, Can I have a way to calculate (+/-, of course) the space that each user, that access my webapplication, ocupies in ASPNET process? I want to know how much memory of ASPNET grows each time...
8
by: Bjarke | last post by:
I am working on a project that is developed by another Company. The project is a webapplication project, in asp.net 2.0, and was sold along with the sourcecode. My job is to move some web user...
3
by: Jelle de Jong | last post by:
Hi all, I earlier post about wanting to create my own database for webpurposes. But you've recommended me not to do this! ;-) But maybe you can help me on this. I want to create a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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...

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.