473,396 Members | 1,968 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.

Messagebox in asp.net? I need another posibillity!

Hello everybody,
I am new programming in asp.net, recently I have been hired in a company
and they were creating a simple application, this application is developed
in asp.net 2 visual Studio 2005 and is tested in a Windows 2003 standard.
My problem is that when I check some buttons events, they are calling a
Msgbox function, I have read that that is incorrect, but I have tried to
change it for a java Script messagebox and even though I have found some
examples (using a dll)they are not working very well. Can you help me with
this?
The programmer is not working for the company, and I can't use that
messagebox(the server returns a security error) and I don't want to (it
could handle the server).
This is an example of the code for a asp.net button I found:
Protected Sub LinkPB_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles LinkPB.Click

If MsgBox("Desea confirmar los cambios?", MsgBoxStyle.YesNo, "Confirmacion")
= MsgBoxResult.Yes Then

....

If (MsgBox("Desea continuar?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes)
Then

...

if success= true then

MsgBox("Thanks")

End if

End If

End If
Thanks!
Feb 7 '07 #1
3 4025
In web programming produced a message box is a client-side task.

You may find this link useful:

http://usableasp.net/DeveloperPage.a...rAndClient.htm

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Luis Alvarado" <la*******@avionyx.comwrote in message
news:e1**************@TK2MSFTNGP05.phx.gbl...
Hello everybody,
I am new programming in asp.net, recently I have been hired in a
company and they were creating a simple application, this application is
developed in asp.net 2 visual Studio 2005 and is tested in a Windows 2003
standard.
My problem is that when I check some buttons events, they are calling a
Msgbox function, I have read that that is incorrect, but I have tried to
change it for a java Script messagebox and even though I have found some
examples (using a dll)they are not working very well. Can you help me with
this?
The programmer is not working for the company, and I can't use that
messagebox(the server returns a security error) and I don't want to (it
could handle the server).
This is an example of the code for a asp.net button I found:
Protected Sub LinkPB_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles LinkPB.Click

If MsgBox("Desea confirmar los cambios?", MsgBoxStyle.YesNo,
"Confirmacion") = MsgBoxResult.Yes Then

...

If (MsgBox("Desea continuar?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes)
Then

...

if success= true then

MsgBox("Thanks")

End if

End If

End If
Thanks!

Feb 7 '07 #2
Thank you for the answer, now I have a doubt:
In the example you sent me, they're using a html button, callling a
javascript function, I need something working with an asp.net button, in
order to do not loose all the code has been written.
Unfurtunately many msgbox functions are been called inside the asp button.,
so how could I change this message box for something that let me keep of the
code?

"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:e3**************@TK2MSFTNGP03.phx.gbl...
In web programming produced a message box is a client-side task.

You may find this link useful:

http://usableasp.net/DeveloperPage.a...rAndClient.htm

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Luis Alvarado" <la*******@avionyx.comwrote in message
news:e1**************@TK2MSFTNGP05.phx.gbl...
>Hello everybody,
I am new programming in asp.net, recently I have been hired in a
company and they were creating a simple application, this application is
developed in asp.net 2 visual Studio 2005 and is tested in a Windows 2003
standard.
My problem is that when I check some buttons events, they are calling a
Msgbox function, I have read that that is incorrect, but I have tried to
change it for a java Script messagebox and even though I have found some
examples (using a dll)they are not working very well. Can you help me
with this?
The programmer is not working for the company, and I can't use that
messagebox(the server returns a security error) and I don't want to (it
could handle the server).
This is an example of the code for a asp.net button I found:
Protected Sub LinkPB_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles LinkPB.Click

If MsgBox("Desea confirmar los cambios?", MsgBoxStyle.YesNo,
"Confirmacion") = MsgBoxResult.Yes Then

...

If (MsgBox("Desea continuar?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes)
Then

...

if success= true then

MsgBox("Thanks")

End if

End If

End If
Thanks!


Feb 7 '07 #3
It will be the same except you will use the OnClientClick property for
setting the client script.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Luis Alvarado" <la*******@avionyx.comwrote in message
news:en*************@TK2MSFTNGP04.phx.gbl...
Thank you for the answer, now I have a doubt:
In the example you sent me, they're using a html button, callling a
javascript function, I need something working with an asp.net button, in
order to do not loose all the code has been written.
Unfurtunately many msgbox functions are been called inside the asp
button., so how could I change this message box for something that let me
keep of the code?

"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:e3**************@TK2MSFTNGP03.phx.gbl...
>In web programming produced a message box is a client-side task.

You may find this link useful:

http://usableasp.net/DeveloperPage.a...rAndClient.htm

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Luis Alvarado" <la*******@avionyx.comwrote in message
news:e1**************@TK2MSFTNGP05.phx.gbl...
>>Hello everybody,
I am new programming in asp.net, recently I have been hired in a
company and they were creating a simple application, this application is
developed in asp.net 2 visual Studio 2005 and is tested in a Windows
2003 standard.
My problem is that when I check some buttons events, they are calling a
Msgbox function, I have read that that is incorrect, but I have tried to
change it for a java Script messagebox and even though I have found some
examples (using a dll)they are not working very well. Can you help me
with this?
The programmer is not working for the company, and I can't use that
messagebox(the server returns a security error) and I don't want to (it
could handle the server).
This is an example of the code for a asp.net button I found:
Protected Sub LinkPB_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles LinkPB.Click

If MsgBox("Desea confirmar los cambios?", MsgBoxStyle.YesNo,
"Confirmacion") = MsgBoxResult.Yes Then

...

If (MsgBox("Desea continuar?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes)
Then

...

if success= true then

MsgBox("Thanks")

End if

End If

End If
Thanks!



Feb 7 '07 #4

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

Similar topics

8
by: Dennis C. Drumm | last post by:
I have ordered the book .NET Framework Solutions, In Search of the Lost Win32 API by John Paul Meuller which I think will help answer some of my questions I have regarding making custom...
1
by: Ori | last post by:
Hi Guys, Here is my problem, but maybe someone can help me with this. Background: 1. Using C#. 2. I'm having a form which the KeyPreview is on (and must stay like this) and I'm...
4
by: Tressa | last post by:
I have a messagebox that I only want to pop up only if it is not already being displayed on the screen. My code is still poping up the messagebox even though it is on the screen. What am I doing...
3
by: Sin | last post by:
I'm currently evaluating VC.NET as the new platform for the company I work for and things are looking grim... We're up against another IDE which took me about 5 minutes to master and I've been...
5
by: Robert Heuvel | last post by:
Hi, this is what I did: public struct SWaitCursor:IDisposable { public SWaitCursor (int i) { Cursor.Current = Cursors.WaitCursor; } void System.IDisposable.Dispose() { Cursor.Current =...
3
by: Dan | last post by:
I am using Visual Studio .net 2003 (C#) I have a line of code like: messagebox.show("Hello"); I get the erorr message "The type or namespace name 'messagebox' could not be found (are you...
10
by: Russ | last post by:
I've been trying to figure out how to show a simple messagebox with an OK button in my web client program (C#). I have looked at every reference to JScript and MessageBox that seemed even remotely...
10
by: Andrew | last post by:
Hi, I have a messagebox that pops up due to an event. I did it in javascript. ie. alert("Time's up. Assessment Ended"); I want to capture the OK and Cancel events of this alert messagebox. My...
6
by: Goran Djuranovic | last post by:
Hi all, I have a VB.NET windows application that uses MDI form. When I try to delete a datagrid row from one of the MDI children forms, I use a MessageBox YesNo confirmation, which, after confirmed,...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
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.