RE: msgbox

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi Win,

From your description, you're using MsgBox api in ASP.NET web application
to display some dialog box and want to control position of the dialog,
correct?

As for the "MsgBox" api, would you tell me which control or component are
you using? So far based on my understanding, ASP.NET doesn't provide
built-in support on displaying messagebox since the messagebox is displayed
at client-side browser (generally use javascript to display it). I'm
wondering are you using System.Windows.Forms namespace's class to show to
message box? If this is the case, I'm afraid winform API is not supported
to be used in ASP.NET web application since ASP.NET appliation is
server-side application which is mostly running in a non-interactive
process and the messagebox showed via winform api can not be seen by client
user. The reason you may see it when you use Visual Studio's webtest
server on local machine is because the web test server itself is a winform
application(you can close the browser when the msgbox displayed to verify
this, it is displayed by the webtest server process).

In addition, in ASP.NET we normally use client script to display message
box( alert javascript method). Here are some web articles introducing this:

#Message Box in ASP.NET 2.0
http://www.beansoftware.com/ASP.NET-Tutorials/Message-Box.aspx

#Adding Client-Side Message Boxes in your ASP.NET Web Pages
http://aspnet.4guysfromrolla.com/articles/021104-1.aspx

#ASP.NET Alerts: how to display message boxes from server-side code?
http://weblogs.asp.net/bleroy/archive/2005/12/01/asp-net-alerts-how-to-displ
ay-message-boxes-from-server-side-code.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.



--------------------
From: "win" <a@xxxxx>
Subject: msgbox
Date: Fri, 23 May 2008 12:54:18 +0800

I'm using ASP.Net 2.0

MsgBox("Are you sure to delete?", MsgBoxStyle.Question +
MsgBoxStyle.OkCancel, Page.Title.ToString)

The message box sometimes does not pop up on the top of the screen.
Can I set the message box always on top of the screen?

Thank you




.



Relevant Pages

  • RomFS: enless loop during make oldconfig from 2.6.24 -> 2.6.31-rc4 (parisc)
    ... # IPVS transport protocol load balancing support ... # DCCP Kernel Hacking ... # Device Drivers ... # Display device support ...
    (Linux-Kernel)
  • Re: msgbox
    ... at client-side browser (generally use javascript to display it). ... server on local machine is because the web test server itself is a winform ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Save Child GridView only when parent GridView Saved
    ... the page will display multiple Questions and each of which ... I suggest you use Repeater + GridViewbecause ... Since you said that the answer list of each question support ... DataList/GridView control, we need to update the certain anwser record's ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: universelle programmierbare Heizungssteuerung gesucht
    ...Display modes ... Passive color mode supports a total of 16777216 colors ... Support for LCD panels with an internal frame buffer ... Base plane with software control of two overlay windows and a hardware cursor ...
    (de.sci.electronics)
  • Re: How does the system detect the usre action?
    ... The system uses a display idle timer and a system idle timer. ... SetThreadExecutionState with ES_SYSTEM_REQUIRED, the system enters sleep. ... Microsoft Online Community Support ...
    (microsoft.public.win32.programmer.kernel)