Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 8th, 2004, 04:10 AM
Authorized User
 
Join Date: Feb 2004
Location: Delhi, Delhi, India.
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mahulda
Default alert function

Like the alert function in JavsScript I want to display
a similar popup Error message using VBScript.

Is there any such equivalent function ?


__________________
-.. -..
  #2 (permalink)  
Old April 8th, 2004, 09:41 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

You actually can use the alert function within vbscript as well. Here is an example:
-----------------------------------------
<script language="vbscript">
Sub btnAdd_onclick()
If document.FormName.TextBoxName.value = "" Then
    alert "The following fields must be entered to proceed:" & vbcrlf & "*Field that was blank."
End If
End Sub
</script>
-----------------------------------------

Of course this is the client side version. You will have to make a few changes/additions if you want to implement this in your code-behind file.

J
  #3 (permalink)  
Old April 8th, 2004, 09:56 AM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Please note that not all browsers support VBScript. JavaScript is much more compatable

Snib

P2P Member
<><
  #4 (permalink)  
Old April 9th, 2004, 01:03 AM
Authorized User
 
Join Date: Feb 2004
Location: Delhi, Delhi, India.
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mahulda
Default

Katsaroj
What Changes/Additions were you refering to ?


  #5 (permalink)  
Old April 9th, 2004, 09:01 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

I was referring to using the RegisterClientScriptBlock method.

J
  #6 (permalink)  
Old April 9th, 2004, 11:05 PM
Friend of Wrox
Points: 3,558, Level: 25
Points: 3,558, Level: 25 Points: 3,558, Level: 25 Points: 3,558, Level: 25
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: California, USA
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

here r much experience http://p2p.wrox.com/topic.asp?TOPIC_ID=9675

Always:),
Hovik Melkomian.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
custom alert kanoorani Javascript 1 May 5th, 2007 02:46 AM
alert darkhalf Javascript 3 November 18th, 2005 12:56 PM
Placing a function() or alert() in the program hayley Classic ASP Basics 1 January 25th, 2005 04:50 AM
One for the gurus - alert function icon badgolfer ASP.NET 1.0 and 1.1 Basics 3 September 9th, 2004 04:01 PM
alert collie Javascript 2 December 29th, 2003 02:29 AM



All times are GMT -4. The time now is 05:59 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.