How to popup message besides msgbox?

Hi,
I know that on actual server, using the msgbox (vb) popup to prompt user doesn't work.

Is there any workaround?

PS: THe code below shows where i use the msgbox in my development localhost machine.
Try
            'Get the usercontrol object
            Dim PhotoMedia As PhotoMedia = sender
 
            Dim c As String() = Regex.Split(PhotoMedia.ID.ToString, "PhotoMedia")
 
            Dim obj As Object = PhotoMedia.FindControl("imgUploadPhoto")
            Dim txtImgDescription As TextBox = PhotoMedia.FindControl("txtImgDescription")
 
            '#TIPS: The class can return true if database update sucessful.
            objMenu.PhotoMediaSaveDesc(Nothing, Session("menu_info_id"), Nothing, txtImgDescription.Text, CInt(c(1).ToString))
 
            MsgBox("Description Saved!")   '-> ANY WORKAROUND TO REPLACE MSGBOX??
 
        Catch ex As Exception
            'Log the error details then redirect to generic error page.
            ExError.LogError(Path.GetFileName(Request.FilePath), System.Reflection.MethodBase.GetCurrentMethod().Name, ex)
            Response.Redirect(Common.PageTransfer("ExError"))
 
        End Try

Open in new window

tangteng78Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ITHelper80Commented:
How about using some Javascript in your Code
Response.Write("<script>alert('You have successfully updated the record!');</script>")

Open in new window

0
JackOfPHCommented:
Try this

Messagebox.show("Description Saved.")

0
JackOfPHCommented:
In vb.net you have two options:

1) Is to use the traditional msgbox.
2) or to use the MESSAGEBOX.


note:

msgbox is different from messagebox.

because msgbox is the carry over of the old vb while the messagebox is a class that is shpped with .net.
0
The Five Tenets of the Most Secure Backup

Data loss can hit a business in any number of ways. In reality, companies should expect to lose data at some point. The challenge is having a plan to recover from such an event.

tangteng78Author Commented:
I'm using asp.net with VB codes. I can't find the messagebox method though.

Any advice?
0
barrislbCommented:
Hi tangteng,

Try: imports System.Windows.Forms in your module or class module, if it's not already there. Then you'll be able to use the messagebox method. The messagebox method is pre-loaded when adding any WinForm to a VB.Net project, but it's not pre-loaded when using raw classes. You would have to import the System.Windows.Form into your class module, if that's your case? I hope this is some help to your need.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ITHelper80Commented:
Hi Tangteg,

Have you tried my method?

Response.Write("<script>alert('You have successfully updated the record!');</script>")
 
0
tangteng78Author Commented:
barrislb,
That works. But i'm just curios, if a user using a non-window system to browse my webpage, can the popup window (messageshow) still works?
0
barrislbCommented:
Hi tangteng78,

I'm glad to know that you were able to get your messagebox to display. Your question to whether "a user using a non-window system could browse your webpage," and get your popup message is  a good question? I don't develop websites per say to give you a concrete answer, but I would assume that if you are using ASP.Net to develop your webpage, or website that you should be alright. As long as the individuals that's using the non-windows system have a browser that could display your webpage.

Mozilla Firefox, Google Chrome, and now Safari can display ASP.Net websites nicely! That I know of. Those browsers are none microsoft. I would download each of those browsers, if you haven't already? And test, test, test. Have other users as you stated in your last post to test your webpage on other OSs outside of windows. Other experts may have a better answer than mine. :- )
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.