|
 |
aspx thread: Re: MessageBox in aspx
Message #1 by "guy" <guy@h...> on Tue, 16 Jul 2002 11:33:08
|
|
Hi Tony,
i have the same problem as you, have you come across a way around this
yet??????
Any ideas would be a godsend!
Guy
> hi there;
> can anyone know the syntax how to use MessageBox
> object in aspx page?
>
> like <if (MessageBox.Show(params
> here)==DialogResult.Yes){ //then do somtheing}>
>
> I imported "System.Windows.Forms", but get
> erros:"can't find namespace"
>
> thanks for any hints...
>
> Tony
>
>
>
> _________________________________________________________
> Do You Yahoo!? 登录免费雅虎电邮! http://mail.yahoo.com.cn
>
> <font color=#6666FF>无聊?郁闷?高兴?没理由?都来聊天吧!</font>——
> 雅虎全新聊天室! http://cn.chat.yahoo.com/c/roomlist.html
Message #2 by Pavankumar T <PavanKumar.T@k...> on Tue, 16 Jul 2002 16:21:12 +0530
|
|
Hi guy,
According to my knowledge there is no Message box in Asp.net but, we
can
achieve this through Java script.
In .aspx file
<%
If strUserInfo <> "" Then
Response.Write("<script language=3Djavascript>alert('" &
strUserInfo & "');</script>")
strUserInfo =3D ""
End If
%>
Include this code just above the </body> tag in .aspx file.
------------------------------------------------------------------------
----
-
In .vb file
Public strUserinfo as string -- Declare this public variable.
If you want to show a message in any programs then assign that message
to
this strUserinfo as
strUserinfo =3D " Hello, how are you "
------------------------------------------------------------------------
----
--
Hope this help you guys.
Regards,
pavan.
-----Original Message-----
From: guy [mailto:guy@h...]
Sent: Tuesday, July 16, 2002 5:03 PM
To: ASP+
Subject: [aspx] Re: MessageBox in aspx
Hi Tony,
i have the same problem as you, have you come across a way around this
yet??????
Any ideas would be a godsend!
Guy
> hi there;
> can anyone know the syntax how to use MessageBox
> object in aspx page?
>
> like <if (MessageBox.Show(params
> here)=3D=3DDialogResult.Yes){ //then do somtheing}>
>
> I imported "System.Windows.Forms", but get
> erros:"can't find namespace"
>
> thanks for any hints...
>
> Tony
>
>
>
> _________________________________________________________
> Do You Yahoo!? =B5=C7=C2=BC=C3=E2=B7=D1=D1=C5=BB=A2=B5=E7=D3=CA!
http://mail.yahoo.com.cn
>
> <font
color=3D#6666FF>=CE=DE=C1=C4=A3=BF=D3=F4=C3=C6=A3=BF=B8=DF=D0=CB=A3=BF=C3
=BB=C0=ED=D3=C9=A3=BF=B6=BC=C0=B4=C1=C4=CC=EC=B0=C9=A3=A1</font>=A1=AA=A1
=AA
> =D1=C5=BB=A2=C8=AB=D0=C2=C1=C4=CC=EC=CA=D2!
http://cn.chat.yahoo.com/c/roomlist.html
Message #3 by <kshatdalpriya@i...> on Tue, 16 Jul 2002 17:22:10 +0530
|
|
what is new in this ???
-----Original Message-----
From: Pavankumar T [mailto:PavanKumar.T@k...]
Sent: Tuesday, July 16, 2002 4:21 PM
To: ASP+
Cc: guy@h...
Subject: [aspx] Re: MessageBox in aspx
Hi guy,
According to my knowledge there is no Message box in Asp.net but, we can
achieve this through Java script.
In .aspx file
<%
If strUserInfo <> "" Then
Response.Write("<script language=javascript>alert('" &
strUserInfo & "');</script>")
strUserInfo = ""
End If
%>
Include this code just above the </body> tag in .aspx file.
----------------------------------------------------------------------------
-
In .vb file
Public strUserinfo as string -- Declare this public variable.
If you want to show a message in any programs then assign that message to
this strUserinfo as
strUserinfo = " Hello, how are you "
----------------------------------------------------------------------------
--
Hope this help you guys.
Regards,
pavan.
-----Original Message-----
From: guy [mailto:guy@h...]
Sent: Tuesday, July 16, 2002 5:03 PM
To: ASP+
Subject: [aspx] Re: MessageBox in aspx
Hi Tony,
i have the same problem as you, have you come across a way around this
yet??????
Any ideas would be a godsend!
Guy
> hi there;
> can anyone know the syntax how to use MessageBox
> object in aspx page?
>
> like <if (MessageBox.Show(params
> here)==DialogResult.Yes){ //then do somtheing}>
>
> I imported "System.Windows.Forms", but get
> erros:"can't find namespace"
>
> thanks for any hints...
>
> Tony
>
>
>
> _________________________________________________________
> Do You Yahoo!? 登录免费雅虎电邮! http://mail.yahoo.com.cn
>
> <font color=#6666FF>无聊?郁闷?高兴?没理由?都来聊天吧!</font>——
> 雅虎全新聊天室! http://cn.chat.yahoo.com/c/roomlist.html
Message #4 by Pavankumar T <PavanKumar.T@k...> on Tue, 16 Jul 2002 17:35:43 +0530
|
|
Is there any other way to display the messages in dot net ? Please let
me
know.
-----Original Message-----
From: kshatdalpriya@i... [mailto:kshatdalpriya@i...]
Sent: Tuesday, July 16, 2002 5:22 PM
To: ASP+
Subject: [aspx] Re: MessageBox in aspx
what is new in this ???
-----Original Message-----
From: Pavankumar T [mailto:PavanKumar.T@k...]
Sent: Tuesday, July 16, 2002 4:21 PM
To: ASP+
Cc: guy@h...
Subject: [aspx] Re: MessageBox in aspx
Hi guy,
According to my knowledge there is no Message box in Asp.net but, we
can
achieve this through Java script.
In .aspx file
<%
If strUserInfo <> "" Then
Response.Write("<script language=3Djavascript>alert('" &
strUserInfo & "');</script>")
strUserInfo =3D ""
End If
%>
Include this code just above the </body> tag in .aspx file.
------------------------------------------------------------------------
----
-
In .vb file
Public strUserinfo as string -- Declare this public variable.
If you want to show a message in any programs then assign that message
to
this strUserinfo as
strUserinfo =3D " Hello, how are you "
------------------------------------------------------------------------
----
--
Hope this help you guys.
Regards,
pavan.
-----Original Message-----
From: guy [mailto:guy@h...]
Sent: Tuesday, July 16, 2002 5:03 PM
To: ASP+
Subject: [aspx] Re: MessageBox in aspx
Hi Tony,
i have the same problem as you, have you come across a way around this
yet??????
Any ideas would be a godsend!
Guy
> hi there;
> can anyone know the syntax how to use MessageBox
> object in aspx page?
>
> like <if (MessageBox.Show(params
> here)=3D=3DDialogResult.Yes){ //then do somtheing}>
>
> I imported "System.Windows.Forms", but get
> erros:"can't find namespace"
>
> thanks for any hints...
>
> Tony
>
>
>
> _________________________________________________________
> Do You Yahoo!? =B5=C7=C2=BC=C3=E2=B7=D1=D1=C5=BB=A2=B5=E7=D3=CA!
http://mail.yahoo.com.cn
>
> <font
color=3D#6666FF>=CE=DE=C1=C4=A3=BF=D3=F4=C3=C6=A3=BF=B8=DF=D0=CB=A3=BF=C3
=BB=C0=ED=D3=C9=A3=BF=B6=BC=C0=B4=C1=C4=CC=EC=B0=C9=A3=A1</font>=A1=AA=A1
=AA
> =D1=C5=BB=A2=C8=AB=D0=C2=C1=C4=CC=EC=CA=D2!
http://cn.chat.yahoo.com/c/roomlist.html
Message #5 by Thomas Fuller <TFuller@g...> on Tue, 16 Jul 2002 08:18:58 -0400
|
|
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C22CC2.F60119A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I tried this same thing but if you think about it how could you use
server
side code to prompt a user with a client side message box. It really
doesn't seem possible, I think you have to use some type of client side
technology for this, aka javascript.
Tom
-----Original Message-----
From: kshatdalpriya@i... [mailto:kshatdalpriya@i...]
Sent: Tuesday, July 16, 2002 7:52 AM
To: ASP+
Subject: [aspx] Re: MessageBox in aspx
what is new in this ???
-----Original Message-----
From: Pavankumar T [mailto:PavanKumar.T@k...]
Sent: Tuesday, July 16, 2002 4:21 PM
To: ASP+
Cc: guy@h...
Subject: [aspx] Re: MessageBox in aspx
Hi guy,
According to my knowledge there is no Message box in Asp.net but, we
can
achieve this through Java script.
In .aspx file
<%
If strUserInfo <> "" Then
Response.Write("<script language=3Djavascript>alert('" &
strUserInfo & "');</script>")
strUserInfo =3D ""
End If
%>
Include this code just above the </body> tag in .aspx file.
------------------------------------------------------------------------
----
-
In .vb file
Public strUserinfo as string -- Declare this public variable.
If you want to show a message in any programs then assign that message
to
this strUserinfo as
strUserinfo =3D " Hello, how are you "
------------------------------------------------------------------------
----
--
Hope this help you guys.
Regards,
pavan.
-----Original Message-----
From: guy [mailto:guy@h...]
Sent: Tuesday, July 16, 2002 5:03 PM
To: ASP+
Subject: [aspx] Re: MessageBox in aspx
Hi Tony,
i have the same problem as you, have you come across a way around this
yet??????
Any ideas would be a godsend!
Guy
> hi there;
> can anyone know the syntax how to use MessageBox
> object in aspx page?
>
> like <if (MessageBox.Show(params
> here)=3D=3DDialogResult.Yes){ //then do somtheing}>
>
> I imported "System.Windows.Forms", but get
> erros:"can't find namespace"
>
> thanks for any hints...
>
> Tony
>
>
>
> _________________________________________________________
> Do You Yahoo!? =B5=C7=C2=BC=C3=E2=B7=D1=D1=C5=BB=A2=B5=E7=D3=CA!
http://mail.yahoo.com.cn
>
> <font
color=3D#6666FF>=CE=DE=C1=C4=A3=BF=D3=F4=C3=C6=A3=BF=B8=DF=D0=CB=A3=BF=C3
=BB=C0=ED=D3=C9=A3=BF=B6=BC=C0=B4=C1=C4=CC=EC=B0=C9=A3=A1</font>=A1=AA=A1
=AA
> =D1=C5=BB=A2=C8=AB=D0=C2=C1=C4=CC=EC=CA=D2!
http://cn.chat.yahoo.com/c/roomlist.html
Message #6 by "Ray Jezek (TT)" <ray.jezek@t...> on Tue, 16 Jul 2002 08:44:18 -0500
|
|
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C22CCE.E21F4360
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
This is true. There is no way to do a msgbox server side as it makes
zero
sense. However using a javascript alert will not help at all with the
original question of this thread. All the alert does is show info.
For
this situation you would use a javascript "confirm" statement to return
the
button the user chose. Better yet if have an all IE audience you can
use
showModalDialog or showModelessDialog and customize the entire prompt
with
an aspx page and return any number of values based on user action.
See
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_wi
ndow
.asp
<http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_w
indo
w.asp> for help on this.
-----Original Message-----
From: Thomas Fuller [mailto:TFuller@g...]
Sent: Tuesday, July 16, 2002 7:19 AM
To: ASP+
Subject: [aspx] Re: MessageBox in aspx
I tried this same thing but if you think about it how could you use
server
side code to prompt a user with a client side message box. It really
doesn't seem possible, I think you have to use some type of client side
technology for this, aka javascript.
Tom
-----Original Message-----
From: kshatdalpriya@i... [ mailto:kshatdalpriya@i...
<mailto:kshatdalpriya@i...> ]
Sent: Tuesday, July 16, 2002 7:52 AM
To: ASP+
Subject: [aspx] Re: MessageBox in aspx
what is new in this ???
-----Original Message-----
From: Pavankumar T [ mailto:PavanKumar.T@k...
<mailto:PavanKumar.T@k...> ]
Sent: Tuesday, July 16, 2002 4:21 PM
To: ASP+
Cc: guy@h...
Subject: [aspx] Re: MessageBox in aspx
Hi guy,
According to my knowledge there is no Message box in Asp.net but, we
can
achieve this through Java script.
In .aspx file
<%
If strUserInfo <> "" Then
Response.Write("<script language=3Djavascript>alert('" &
strUserInfo & "');</script>")
strUserInfo =3D ""
End If
%>
Include this code just above the </body> tag in .aspx file.
------------------------------------------------------------------------
----
-
In .vb file
Public strUserinfo as string -- Declare this public variable.
If you want to show a message in any programs then assign that message
to
this strUserinfo as
strUserinfo =3D " Hello, how are you "
------------------------------------------------------------------------
----
--
Hope this help you guys.
Regards,
pavan.
-----Original Message-----
From: guy [ mailto:guy@h... <mailto:guy@h...> ]
Sent: Tuesday, July 16, 2002 5:03 PM
To: ASP+
Subject: [aspx] Re: MessageBox in aspx
Hi Tony,
i have the same problem as you, have you come across a way around this
yet??????
Any ideas would be a godsend!
Guy
> hi there;
> can anyone know the syntax how to use MessageBox
> object in aspx page?
>
> like <if (MessageBox.Show(params
> here)=3D=3DDialogResult.Yes){ //then do somtheing}>
>
> I imported "System.Windows.Forms", but get
> erros:"can't find namespace"
>
> thanks for any hints...
>
> Tony
>
>
>
> _________________________________________________________
> Do You Yahoo!? =B5=C7=C2=BC=C3=E2=B7=D1=D1=C5=BB=A2=B5=E7=D3=CA!
http://mail.yahoo.com.cn
<http://mail.yahoo.com.cn>
>
> <font
color=3D#6666FF>=CE=DE=C1=C4=A3=BF=D3=F4=C3=C6=A3=BF=B8=DF=D0=CB=A3=BF=C3
=BB=C0=ED=D3=C9=A3=BF=B6=BC=C0=B4=C1=C4=CC=EC=B0=C9=A3=A1</font>=A1=AA=A1
=AA
> =D1=C5=BB=A2=C8=AB=D0=C2=C1=C4=CC=EC=CA=D2!
http://cn.chat.yahoo.com/c/roomlist.html
<http://cn.chat.yahoo.com/c/roomlist.html>
---
Change your mail options at http://p2p.wrox.com/manager.asp
<http://p2p.wrox.com/manager.asp> or
---
Change your mail options at http://p2p.wrox.com/manager.asp
<http://p2p.wrox.com/manager.asp> or
---
Change your mail options at http://p2p.wrox.com/manager.asp
<http://p2p.wrox.com/manager.asp> or
--- Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
Message #7 by "Mingkun Goh" <mangokun@h...> on Wed, 17 Jul 2002 11:52:40
|
|
Using its Attributes collection to add an attribute for the onClick of the
Button:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
btnDelete.Attributes.Add("onClick", "return confirm('Are you sure
you wish to delete this item?');")
End Sub
For the delete button's onClick event:
Private Sub btnDelete_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnDelete.Click
' Do something here
End Sub
Now, when we click on our delete button, we'll get a confirmation dialog
box asking if we are sure we want to delete the item.
I learned this from an online article:
DotNetJunkies.com - How To Add a Delete Confirmation to a DataGrid
http://www.dotnetjunkies.com/howto/default.aspx?id=32
Previous message:
This is true. There is no way to do a msgbox server side as it makes zero
sense. However using a javascript alert will not help at all with the
original question of this thread. All the alert does is show info.
For this situation you would use a javascript "confirm" statement to
return the button the user chose. Better yet if have an all IE audience
you can use showModalDialog or showModelessDialog and customize the entire
prompt with an aspx page and return any number of values based on user
action.
See
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_wi
ndow
.asp
<http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_w
indo
w.asp> for help on this.
-----Original Message-----
From: Thomas Fuller [mailto:TFuller@g...]
Sent: Tuesday, July 16, 2002 7:19 AM
To: ASP+
Subject: [aspx] Re: MessageBox in aspx
I tried this same thing but if you think about it how could you use
server
side code to prompt a user with a client side message box. It really
doesn't seem possible, I think you have to use some type of client side
technology for this, aka javascript.
Tom
-----Original Message-----
From: kshatdalpriya@i... [ mailto:kshatdalpriya@i...
<mailto:kshatdalpriya@i...> ]
Sent: Tuesday, July 16, 2002 7:52 AM
To: ASP+
Subject: [aspx] Re: MessageBox in aspx
what is new in this ???
-----Original Message-----
From: Pavankumar T [ mailto:PavanKumar.T@k...
<mailto:PavanKumar.T@k...> ]
Sent: Tuesday, July 16, 2002 4:21 PM
To: ASP+
Cc: guy@h...
Subject: [aspx] Re: MessageBox in aspx
Hi guy,
According to my knowledge there is no Message box in Asp.net but, we
can
achieve this through Java script.
In .aspx file
<%
If strUserInfo <> "" Then
Response.Write("<script language=3Djavascript>alert('" &
strUserInfo & "');</script>")
strUserInfo =3D ""
End If
%>
Include this code just above the </body> tag in .aspx file.
------------------------------------------------------------------------
----
-
In .vb file
Public strUserinfo as string -- Declare this public variable.
If you want to show a message in any programs then assign that message
to
this strUserinfo as
strUserinfo =3D " Hello, how are you "
------------------------------------------------------------------------
----
--
Hope this help you guys.
Regards,
pavan.
-----Original Message-----
From: guy [ mailto:guy@h... <mailto:guy@h...> ]
Sent: Tuesday, July 16, 2002 5:03 PM
To: ASP+
Subject: [aspx] Re: MessageBox in aspx
Hi Tony,
i have the same problem as you, have you come across a way around this
yet??????
Any ideas would be a godsend!
Guy
> hi there;
> can anyone know the syntax how to use MessageBox
> object in aspx page?
>
> like <if (MessageBox.Show(params
> here)=3D=3DDialogResult.Yes){ //then do somtheing}>
>
> I imported "System.Windows.Forms", but get
> erros:"can't find namespace"
>
> thanks for any hints...
>
> Tony
Message #8 by "Brzeski, Tom" <Tom.Brzeski@o...> on Wed, 17 Jul 2002 10:01:00 -0400
|
|
Can I do the same trick for data grid?. I have DeleteCommand of datagrid I
want to use confirm javascript on.
How can I do it?
-----Original Message-----
From: Mingkun Goh [mailto:mangokun@h...]
Sent: Wednesday, July 17, 2002 6:53 AM
To: ASP+
Subject: [aspx] Re: MessageBox in aspx
Using its Attributes collection to add an attribute for the onClick of the
Button:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
btnDelete.Attributes.Add("onClick", "return confirm('Are you sure
you wish to delete this item?');")
End Sub
For the delete button's onClick event:
Private Sub btnDelete_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnDelete.Click
' Do something here
End Sub
Now, when we click on our delete button, we'll get a confirmation dialog
box asking if we are sure we want to delete the item.
I learned this from an online article:
DotNetJunkies.com - How To Add a Delete Confirmation to a DataGrid
http://www.dotnetjunkies.com/howto/default.aspx?id=32
Previous message:
This is true. There is no way to do a msgbox server side as it makes zero
sense. However using a javascript alert will not help at all with the
original question of this thread. All the alert does is show info.
For this situation you would use a javascript "confirm" statement to
return the button the user chose. Better yet if have an all IE audience
you can use showModalDialog or showModelessDialog and customize the entire
prompt with an aspx page and return any number of values based on user
action.
See
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_wi
ndow
.asp
<http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_w
indo
w.asp> for help on this.
-----Original Message-----
From: Thomas Fuller [mailto:TFuller@g...]
Sent: Tuesday, July 16, 2002 7:19 AM
To: ASP+
Subject: [aspx] Re: MessageBox in aspx
I tried this same thing but if you think about it how could you use
server
side code to prompt a user with a client side message box. It really
doesn't seem possible, I think you have to use some type of client side
technology for this, aka javascript.
Tom
-----Original Message-----
From: kshatdalpriya@i... [ mailto:kshatdalpriya@i...
<mailto:kshatdalpriya@i...> ]
Sent: Tuesday, July 16, 2002 7:52 AM
To: ASP+
Subject: [aspx] Re: MessageBox in aspx
what is new in this ???
-----Original Message-----
From: Pavankumar T [ mailto:PavanKumar.T@k...
<mailto:PavanKumar.T@k...> ]
Sent: Tuesday, July 16, 2002 4:21 PM
To: ASP+
Cc: guy@h...
Subject: [aspx] Re: MessageBox in aspx
Hi guy,
According to my knowledge there is no Message box in Asp.net but, we
can
achieve this through Java script.
In .aspx file
<%
If strUserInfo <> "" Then
Response.Write("<script language=3Djavascript>alert('" &
strUserInfo & "');</script>")
strUserInfo =3D ""
End If
%>
Include this code just above the </body> tag in .aspx file.
------------------------------------------------------------------------
----
-
In .vb file
Public strUserinfo as string -- Declare this public variable.
If you want to show a message in any programs then assign that message
to
this strUserinfo as
strUserinfo =3D " Hello, how are you "
------------------------------------------------------------------------
----
--
Hope this help you guys.
Regards,
pavan.
-----Original Message-----
From: guy [ mailto:guy@h... <mailto:guy@h...> ]
Sent: Tuesday, July 16, 2002 5:03 PM
To: ASP+
Subject: [aspx] Re: MessageBox in aspx
Hi Tony,
i have the same problem as you, have you come across a way around this
yet??????
Any ideas would be a godsend!
Guy
> hi there;
> can anyone know the syntax how to use MessageBox
> object in aspx page?
>
> like <if (MessageBox.Show(params
> here)=3D=3DDialogResult.Yes){ //then do somtheing}>
>
> I imported "System.Windows.Forms", but get
> erros:"can't find namespace"
>
> thanks for any hints...
>
> Tony
Message #9 by Pavankumar T <PavanKumar.T@k...> on Thu, 18 Jul 2002 11:49:52 +0530
|
|
It really worked!!! Thank you very much !!!
-----Original Message-----
From: Mingkun Goh [mailto:mangokun@h...]
Sent: Wednesday, July 17, 2002 5:23 PM
To: ASP+
Subject: [aspx] Re: MessageBox in aspx
Using its Attributes collection to add an attribute for the onClick of the
Button:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
btnDelete.Attributes.Add("onClick", "return confirm('Are you sure
you wish to delete this item?');")
End Sub
For the delete button's onClick event:
Private Sub btnDelete_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnDelete.Click
' Do something here
End Sub
Now, when we click on our delete button, we'll get a confirmation dialog
box asking if we are sure we want to delete the item.
I learned this from an online article:
DotNetJunkies.com - How To Add a Delete Confirmation to a DataGrid
http://www.dotnetjunkies.com/howto/default.aspx?id=32
Previous message:
This is true. There is no way to do a msgbox server side as it makes zero
sense. However using a javascript alert will not help at all with the
original question of this thread. All the alert does is show info.
For this situation you would use a javascript "confirm" statement to
return the button the user chose. Better yet if have an all IE audience
you can use showModalDialog or showModelessDialog and customize the entire
prompt with an aspx page and return any number of values based on user
action.
See
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_wi
ndow
.asp
<http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_w
indo
w.asp> for help on this.
-----Original Message-----
From: Thomas Fuller [mailto:TFuller@g...]
Sent: Tuesday, July 16, 2002 7:19 AM
To: ASP+
Subject: [aspx] Re: MessageBox in aspx
I tried this same thing but if you think about it how could you use
server
side code to prompt a user with a client side message box. It really
doesn't seem possible, I think you have to use some type of client side
technology for this, aka javascript.
Tom
-----Original Message-----
From: kshatdalpriya@i... [ mailto:kshatdalpriya@i...
<mailto:kshatdalpriya@i...> ]
Sent: Tuesday, July 16, 2002 7:52 AM
To: ASP+
Subject: [aspx] Re: MessageBox in aspx
what is new in this ???
-----Original Message-----
From: Pavankumar T [ mailto:PavanKumar.T@k...
<mailto:PavanKumar.T@k...> ]
Sent: Tuesday, July 16, 2002 4:21 PM
To: ASP+
Cc: guy@h...
Subject: [aspx] Re: MessageBox in aspx
Hi guy,
According to my knowledge there is no Message box in Asp.net but, we
can
achieve this through Java script.
In .aspx file
<%
If strUserInfo <> "" Then
Response.Write("<script language=3Djavascript>alert('" &
strUserInfo & "');</script>")
strUserInfo =3D ""
End If
%>
Include this code just above the </body> tag in .aspx file.
------------------------------------------------------------------------
----
-
In .vb file
Public strUserinfo as string -- Declare this public variable.
If you want to show a message in any programs then assign that message
to
this strUserinfo as
strUserinfo =3D " Hello, how are you "
------------------------------------------------------------------------
----
--
Hope this help you guys.
Regards,
pavan.
-----Original Message-----
From: guy [ mailto:guy@h... <mailto:guy@h...> ]
Sent: Tuesday, July 16, 2002 5:03 PM
To: ASP+
Subject: [aspx] Re: MessageBox in aspx
Hi Tony,
i have the same problem as you, have you come across a way around this
yet??????
Any ideas would be a godsend!
Guy
> hi there;
> can anyone know the syntax how to use MessageBox
> object in aspx page?
>
> like <if (MessageBox.Show(params
> here)=3D=3DDialogResult.Yes){ //then do somtheing}>
>
> I imported "System.Windows.Forms", but get
> erros:"can't find namespace"
>
> thanks for any hints...
>
> Tony
|
|
 |