AllExperts > Experts 
Search      

VB Script

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More VB Script Answers
Question Library

Ask a question about VB Script
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Dennis Cassøe
Expertise
ASP in many areas, to include them all would not be possible but some examples: Database access (SQL server, access) Forms Functions Components like aspsmartupload, aspupload, FileSystemObject, jmail And much more. Can`t always garenty an answer, but will do my best.

Experience
Have teached courses in ASP (for beginners)
Created
Knowledgebases
E-commerce applications
Ordinary updatable homepages

Organizations belong to
Aarhus School of Business, Denmark
Freelance programmer

Education/Credentials
Graduate student at the Aarhus School of Business, Denmark

 
   

You are here:  Experts > Computing/Technology > Basic > VB Script > load form and msgbox

Topic: VB Script



Expert: Dennis Cassøe
Date: 3/1/2004
Subject: load form and msgbox

Question
-------------------------
Followup To
Question -
Dear Dennis,

i really need help terribly. I am having some problems, and i already stuck in this stage for very long already, can u help me?? when i click the submit button which should have a popup msgbox (the code is - msgbox("Pls enter your name")) to tell the user enter the name, it has no syntax error,but it has runtime error, the msg is "It is invalid to show a modal dialog or form when the application is not running in UserInteractive mode. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application. " I am damn confuse right now....

and i have another problem... i create a button which continue from one page to another page, the code is

Dim a As CCValid
       a = New CCValid
       a.Show()

but it has syntax error saying that .show() is not a member of a.... Hope that u can help me... thank you!


Regards,
_=hazel=-

Answer -
part 1:
Are you programming in asp.net? if so you cannot display a message box that comes from the server-side.

part 2:
shouldn't it be: set a = new ccValid

Follow Up question:
Part 1:
i am programming in aspx(asp.net) then how should i display a error message box???

Part 2:
u mean set it as
set a = new ccValid?
it doesnt work, it dun allow me to put 'set" in front of a

Answer
part 2

Well im not a asp.net programmer :) only vba,vb, and asp, and set normally works for me, but then then problem must be the ccValid, which is not a form?

Part 1:
Well you'll need to do it on the clientside, either place a vbscript coding in the file, and not as asp tags.

Dennis

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.