473,378 Members | 1,364 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,378 software developers and data experts.

MsgBox

Hi to all, how to put msgbox in this asp page, this send me a message
Denied permission: 'MsgBox'
<% Set Conn=server.createobject("ADODB.connection")
Conn.open application("StrConRuta")
set rs = Conn.Execute("select rut from encuestarutaparaiso where rut='" &
rut_usuario & "'")
if not rs.eof then
msgbox "Gracias por tu interes pera ya has respondido esta encuesta"
end if
Set rs= Conn.Execute("Select * from tabladatos where rut = '" & rut_usuario
& "'")
if rut_usuario<>"-" then
if not rs.eof then
session("rut")=rut_usuario
response.redirect("encuesta.asp")
else
msgbox "Tu no estás registrado"
response.Redirect("index.asp")
end if
else
msgbox "Tu no eres usuario"
response.Redirect("index.asp")
end if
Conn.Close
set rs = nothing
%>

--
Marco Antonio Artus S.
Lakromsoft INC.
09-9594663
Jul 22 '05 #1
4 3832
You can't call a message box server side.... you need to put it on the
client side.

if not rs.eof then
%>
<script language="VBScript">
msgbox "Gracias por tu interes pera ya has respondido esta encuesta"
</script>
<%
end if

Or if you prefer, response.write the above out to save going from ASP > HTML
ASP etc.
--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Lakrom" <la****@terra.cl> wrote in message
news:4f*****************@jagger.tie.cl... Hi to all, how to put msgbox in this asp page, this send me a message
Denied permission: 'MsgBox'
<% Set Conn=server.createobject("ADODB.connection")
Conn.open application("StrConRuta")
set rs = Conn.Execute("select rut from encuestarutaparaiso where rut='" &
rut_usuario & "'")
if not rs.eof then
msgbox "Gracias por tu interes pera ya has respondido esta encuesta"
end if
Set rs= Conn.Execute("Select * from tabladatos where rut = '" & rut_usuario & "'")
if rut_usuario<>"-" then
if not rs.eof then
session("rut")=rut_usuario
response.redirect("encuesta.asp")
else
msgbox "Tu no estás registrado"
response.Redirect("index.asp")
end if
else
msgbox "Tu no eres usuario"
response.Redirect("index.asp")
end if
Conn.Close
set rs = nothing
%>

--
Marco Antonio Artus S.
Lakromsoft INC.
09-9594663

Jul 22 '05 #2
"Lakrom" <la****@terra.cl> wrote in message
news:4f*****************@jagger.tie.cl...
how to put msgbox in this asp page, this send me a message
Denied permission: 'MsgBox'


Short answer - You can't.

Longer answer - You can't; and for a very Good Reason.

The MsgBox, running as it would be in *Server-Side* code ("Active
*Server* Page" being a clue) would [try to] appear on desktop of the
web server machine - probably locked away in some dark corner of
a machine room into which only the cleaner's ever venture and there
certainly /won't/ be anyone there to click "OK" to get rid of the
MsgBox. (This would also stall the entire ASP-processing thread with
IIS as well so you'd effectively kill all ASP's on that web server).

Regards,
Phill W.
Jul 22 '05 #3
Thanks, is been a much help really thanks.

"Lakrom" <la****@terra.cl> escribió en el mensaje
news:4f*****************@jagger.tie.cl...
Hi to all, how to put msgbox in this asp page, this send me a message
Denied permission: 'MsgBox'
<% Set Conn=server.createobject("ADODB.connection")
Conn.open application("StrConRuta")
set rs = Conn.Execute("select rut from encuestarutaparaiso where rut='" &
rut_usuario & "'")
if not rs.eof then
msgbox "Gracias por tu interes pera ya has respondido esta encuesta"
end if
Set rs= Conn.Execute("Select * from tabladatos where rut = '" & rut_usuario & "'")
if rut_usuario<>"-" then
if not rs.eof then
session("rut")=rut_usuario
response.redirect("encuesta.asp")
else
msgbox "Tu no estás registrado"
response.Redirect("index.asp")
end if
else
msgbox "Tu no eres usuario"
response.Redirect("index.asp")
end if
Conn.Close
set rs = nothing
%>

--
Marco Antonio Artus S.
Lakromsoft INC.
09-9594663

Jul 22 '05 #4
No problem

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Lakrom" <la****@terra.cl> wrote in message
news:92*****************@jagger.tie.cl...
Thanks, is been a much help really thanks.

"Lakrom" <la****@terra.cl> escribió en el mensaje
news:4f*****************@jagger.tie.cl...
Hi to all, how to put msgbox in this asp page, this send me a message
Denied permission: 'MsgBox'
<% Set Conn=server.createobject("ADODB.connection")
Conn.open application("StrConRuta")
set rs = Conn.Execute("select rut from encuestarutaparaiso where rut='" & rut_usuario & "'")
if not rs.eof then
msgbox "Gracias por tu interes pera ya has respondido esta encuesta"
end if
Set rs= Conn.Execute("Select * from tabladatos where rut = '" &

rut_usuario
& "'")
if rut_usuario<>"-" then
if not rs.eof then
session("rut")=rut_usuario
response.redirect("encuesta.asp")
else
msgbox "Tu no estás registrado"
response.Redirect("index.asp")
end if
else
msgbox "Tu no eres usuario"
response.Redirect("index.asp")
end if
Conn.Close
set rs = nothing
%>

--
Marco Antonio Artus S.
Lakromsoft INC.
09-9594663


Jul 22 '05 #5

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

Similar topics

1
by: Peter Bassett | last post by:
In my ASP script I call Javascript for a msgbox after the user has submitted the form of their resume information. I saw this example as a way to get a msgbox onto the client from ASP since server...
3
by: JT | last post by:
im trying to use the MsgBox function in the following to display an ASP MsgBox containing text retrieved from the db into a recordset <% set rsMessages= myRecordset msg_text =...
2
by: js | last post by:
Hi all, I currently encounter a problem and it is urgent to me. After calling the MsgBox.Show(), the message box is shown with non-modal mode, what is the possible reason??? This only happen...
6
by: Lapchien | last post by:
In this bit of code provided so helpfully by Nath: Private Sub Command118_Click() Dim rs As DAO.Recordset Set db = CurrentDb Set rs = db.openrecordset("IMPORT")
8
by: deko | last post by:
Can I close a MsgBox with VBA Code? Something like: If IsOpen (MsgBox, "Title") Then Close(MsgBox, "Title") Run some code Else Run other code End If Can this be done in VBA? Do I need to...
2
by: Radith Silva | last post by:
I need to use the MsgBox function like I used to in VB 6.0 So all i do is: MsgBox ("Please provide Input") BUT IN .NET: The error reads "msgbox is a namespace"
4
by: James | last post by:
What does this mean? 'To specify more than the first argument, you must use the MsgBox function in an expression' I'd love to see an example. Thanks!
9
by: Ivan Jericevich | last post by:
In my code below at the line 'response' a blip sound is heard and the program exits the sub -- No MsgBox is displayed. What am I doing wrong? If nonNumberEntered = True Then msg = "Enter...
2
by: perkykoala | last post by:
I apologize in advance for being REALLY detailed/verbose. It's the result of staring/tweaking code for too long. Using VB 2005: I need to design a multiple choice test (unfortunately, I can't...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.