Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Msg box function equivalent in ASP.NET

Reply
Thread Tools

Msg box function equivalent in ASP.NET

 
 
PatLaf
Guest
Posts: n/a
 
      12-16-2003
Does anybody have a sample of how to msgbox the user in
asp.net? I've seen some examples but I am not sure how to
implement them. If anybody has an example of how to use
either the alert function or msgbox in the codebehind
page I would greatly appreciate the help.

Thanks in advance,
Pat Laf

BTW I've seen the ASK the PRO response but I am not clear
how to implement the code in the codebehind page.
 
Reply With Quote
 
 
 
 
Lostinet.Web Support
Guest
Posts: n/a
 
      12-17-2003
you can use Lostinet.Web.ControlHelper to popup
'Alert,Confirm,Prompt,Dialog,Window'

see http://www.lostinet.com/en/lwsamplecs/


--
http://www.lostinet.com/
Lostinet.Web Controls&Components
ComboBox,ComboCalendar DatePicker,SafePwdBox,SmartIFrame,
AlertElement,ConfirmElement,PromptElement,DialogEl ement,ControlHelper
-----------------------

"PatLaf" <> ????
news:012a01c3c404$1bb536c0$...
> Does anybody have a sample of how to msgbox the user in
> asp.net? I've seen some examples but I am not sure how to
> implement them. If anybody has an example of how to use
> either the alert function or msgbox in the codebehind
> page I would greatly appreciate the help.
>
> Thanks in advance,
> Pat Laf
>
> BTW I've seen the ASK the PRO response but I am not clear
> how to implement the code in the codebehind page.



 
Reply With Quote
 
 
 
 
Jeffrey Tan[MSFT]
Guest
Posts: n/a
 
      12-17-2003

Hi PatLaf,

Thanks for posting in this group.
Asp.net just encapsulates the HTML element. So it also will use client
script to do things.
To show message box in web form, you should use client script function:
alert, confirm, prompt.
For more information about these functions, please refer to:
http://msdn.microsoft.com/library/de...us/jscript7/ht
ml/jsUsingMessageBoxes.asp

To add client message box script in asp.net, you can use
HtmlTextWriter.WriteAttribute to associate it with some client event. Or
you can use Page.RegisterClientScriptBlock to inject the script into the
client side.

Hope this helps

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Read .msg attachment from a mail(.msg) akila_natarajan Java 0 05-13-2011 07:35 AM
[ANN] ruby-msg-1.3.1 (outlook msg lib) and ruby-ole-1.2.1 Charles Lowe Ruby 0 08-22-2007 01:13 AM
[ANN] ruby-msg-1.2.17 (converter for outlook msg files) Charles Lowe Ruby 0 05-13-2007 06:55 AM
msg box for web development =?Utf-8?B?ZnJhbms=?= ASP .Net 2 08-31-2006 06:09 AM
showing Error in Msg BOX Sudhan ASP .Net 0 12-23-2005 07:19 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57