473,396 Members | 1,738 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,396 software developers and data experts.

message box for .net web application

bev
I have been developing a .net web application and have
come across a road block within my expertise. .net is
the first web language I have used. I have found that I
need java script to do some of the functions I would like
to perform. so far I have been able to work around most
functions however, my user would like a message box to
appear on screen when the user's browser is netscape. I
am able to recognize netscape, but can not display a
message box. A coworker informed me that I needed java
in order to display a message box in a web application.
Can anybody help me with the java(both code and where it
should reside) necessary to display the message box?
Jul 19 '05 #1
2 5234
I create a seperate Javascript file

the javascript is simply

function popUpMessage()

{

confirm('Your about to map a site ok?');

}

I then call this by adding the javascript to an attribute of the button on
my page load.

private void Page_Load(object sender, System.EventArgs e)

{

Button1.Attributes.Add("onClick", "popUpMessage();");

// Put user code to initialize the page here

}

Hope that helps.

regards. Phil.

"bev" <bk*********@dllr.state.md.us> wrote in message
news:09****************************@phx.gbl...
I have been developing a .net web application and have
come across a road block within my expertise. .net is
the first web language I have used. I have found that I
need java script to do some of the functions I would like
to perform. so far I have been able to work around most
functions however, my user would like a message box to
appear on screen when the user's browser is netscape. I
am able to recognize netscape, but can not display a
message box. A coworker informed me that I needed java
in order to display a message box in a web application.
Can anybody help me with the java(both code and where it
should reside) necessary to display the message box?

Jul 19 '05 #2
Hello Bev,

Phil is right. You could use Javascript to launch a message box in client side. You could also refer to window.alert method to
do so.

Just pay attention that we can't use MessageBox to show dialog in code behind file. Since this kind of code is running on
server side, so the messagebox will be shown in the desktop of server, which blocks the web application.

Thanks.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!Content-Class: urn:content-classes:message
!From: "bev" <bk*********@dllr.state.md.us>
!Sender: "bev" <bk*********@dllr.state.md.us>
!Subject: message box for .net web application
!Date: Tue, 15 Jul 2003 05:38:07 -0700
!Lines: 12
!Message-ID: <09****************************@phx.gbl>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcNKzfFVREFnhS2ITAWBt7+jw5enxA==
!Newsgroups: microsoft.public.dotnet.general
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:101185
!NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
!X-Tomcat-NG: microsoft.public.dotnet.general
!
!I have been developing a .net web application and have
!come across a road block within my expertise. .net is
!the first web language I have used. I have found that I
!need java script to do some of the functions I would like
!to perform. so far I have been able to work around most
!functions however, my user would like a message box to
!appear on screen when the user's browser is netscape. I
!am able to recognize netscape, but can not display a
!message box. A coworker informed me that I needed java
!in order to display a message box in a web application.
!Can anybody help me with the java(both code and where it
!should reside) necessary to display the message box?
!
Jul 19 '05 #3

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

Similar topics

9
by: Mike | last post by:
How do I prevent SQL Server 2000 from posting successful backup completion messages to the Windows 2000 Application Event Log? I have scheduled jobs which backup my transaction logs on 50+...
6
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
0
by: | last post by:
Hi there movers & shakers, The example below demonstrates a behaviour that is anoying the tits off of me! It doesn't happen whilst debugging from the IDE only when you run the compiled exe from...
7
by: Leon Shaw | last post by:
Someone please help me understand the following error message: Server Error in '/solo' Application. ---------------------------------------------------------------------------- ---- ...
9
by: JTrigger | last post by:
When I compile my project using the IDE on a development machine it works just fine. When I compile it on the server using csc.exe, I get the following error when I try to bring it up in the web...
5
by: Bruce Schechter | last post by:
I just started to develop an ASP.NET application in vs.net 2003 . But each time I try to execute the application (which is basically empty so far), I get a dialog box titled "Microsoft Development...
1
by: Ramanfromoz | last post by:
Hi, Developing a new we application. Everything okay on my local WIN XP PROFESSIONAL, IIS 5.0 running locally. The website is running smoothly. Now, the same code I am copying over to a...
8
by: Dave | last post by:
I am trying to write an event-driven application with no main window that runs "forever". It waits on a named event and then displays a window depending on data pased in a memory-mapped file. I...
2
by: =?Utf-8?B?TmF0aGFuIFdpZWdtYW4=?= | last post by:
Hi, I am wondering why the .NET Framework is quite different from Win32 API when it comes to displaying system modal message boxes. Consider the four following types of system modal message...
4
by: folen | last post by:
Hi to every body, I am reading this forum since about two weeks, this forum has solved a lot of question that i had, thank to every body. I have a question about messages (WM_PAINT, etc...) in...
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: 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
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
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?
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
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...
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,...

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.