473,595 Members | 2,468 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5243
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(objec t sender, System.EventArg s e)

{

Button1.Attribu tes.Add("onClic k", "popUpMessage() ;");

// Put user code to initialize the page here

}

Hope that helps.

regards. Phil.

"bev" <bk*********@dl lr.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*********@dl lr.state.md.us>
!Sender: "bev" <bk*********@dl lr.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: AcNKzfFVREFnhS2 ITAWBt7+jw5enxA ==
!Newsgroups: microsoft.publi c.dotnet.genera l
!Path: cpmsftngxa06.ph x.gbl
!Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:101185
!NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
!X-Tomcat-NG: microsoft.publi c.dotnet.genera l
!
!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
7377
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+ databases and it always writes to the Windows 2000 application event log upon completion. Due to the frequency of the jobs it only takes a day for the Application Log to fill up, which is causing other jobs to get hung up when trying to write to it. On...
6
20061
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 quite a few words in this post but the questions are actually quite similar and should be fairly quick to answer ... (1) What is Happening with the Threads
0
2434
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 windows explorer. I'm basically trying to display a splash screen in a seperate thread which has it's own message pump. When the call to Application.ExitThread() closes down the splash screen's thread, form and message pump, the main form (and...
7
1708
by: Leon Shaw | last post by:
Someone please help me understand the following error message: Server Error in '/solo' Application. ---------------------------------------------------------------------------- ---- Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
9
2286
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 browser. What is the issue? Thanks, Jim Server Error in '/psnRequest' Application. ----------------------------------------------------------------------------
5
6557
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 Environment" with this message: "Error while trying to run project: Unable to start debugging on the web server. Server-side error occurred on sending debug HTTP request. Make sure the server is operating correctly. Verify there are no...
1
2841
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 WINDOWS 2003 SERVER, I created a new website, allocated port number 6000. Created a release version on my local machine and copied the WEB project from my local to http://ACTYD003:6000
8
5246
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 started with a standard console application and it all works fine, except that it does not terminate tidily when the user logs off/shuts down. So, I figured I needed a message loop to pick up WM_QUIT. I studied the code in "Waiting in a message loop"...
2
4496
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 boxes (please see associated source code below): 1) Win32 API with context ("btnWin32WithContext_Click") 2) .NET Framework with context ("btnFrameworkWithContext_Click") 3) Win32 API withOUT context ("btnWin32WithOUTContext_Click")
4
1155
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 a no window object. I am programming in C#. I have an application which is yet developed, i can´t change it. This application have a communication funtionality, you can send a private message with SendMessage and when the application process...
0
7883
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8379
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8019
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8251
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6674
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5418
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3911
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2391
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 we have to send another system
1
1490
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.