CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_web_developer_2005_express Tags:
Item Type: NewsGroup Date Entered: 8/9/2006 9:51:44 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 13 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
wrstanley
Asp.Net User
Pop-Up Message Window8/9/2006 9:51:44 PM

0/0

ASP.NET 2.0

Does anyone have sample code or a refernece to code for displaying a pop-up window with a variable message in response to an event.

 

For example, if a user fails to select from a drop box list, display a message: "You must make a selection,"

 

Or, if no data is found, display a message: "No data can be found that meets your selection criterion."

samsp
Asp.Net User
Re: Pop-Up Message Window8/10/2006 9:19:01 PM

0/0

There are 2 parts to this problem:

a) I assume that you want a popup message in the browser. If you want a modal popup then you can use client side script to show the alert() message. However as this is client script, it needs to be executed on the client.

a) Is the event you want to work with on the client or the server? If its on the client its easier in that you only need to worry about client script. If its on the server you need to work a bit harder. Here's an example that might help:

<%

@ Page Language="VB" %>

<!

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<

script runat="server">

</

script>

<

html xmlns="http://www.w3.org/1999/xhtml">

<

head runat="server">

<title>Untitled Page</title>

<script language="javascript" type="text/javascript">

function validateMe(control, arguments)

{

if (arguments.Value <15)

{

window.alert(

"The value of the textbox must be greater than 15");

arguments.IsValid=

false;

}

else arguments.IsValid = true;

}

</script>

</

head>

<

body>

<form id="form1" runat="server">

<asp:TextBox ID="TextBox1" runat="server">10</asp:TextBox>

<asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="Value must be greater than 15"

ControlToValidate="TextBox1" ClientValidationFunction="validateMe"></asp:CustomValidator>

<asp:Button ID="Button1" runat="server" Text="Button" />

</form>

</

body>

</

html>
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Macromedia Dreamweaver MX Unleashed Authors: Matthew Pizzi, Zak Ruvalcaba, Pages: 1002, Published: 2002
Dreamweaver in a Nutshell: A Desktop Quick Reference Authors: Heather Williamson, Bruce A. Epstein, Pages: 470, Published: 2002
Find Gold in Windows Vista: Where the Bodies are Buried Authors: Dan Gookin, Pages: 504, Published: 2007
Building Web Sites All-in-One Desk Reference For Dummies: All-in-one Desk Reference for Dummies Authors: Doug Sahlin, Claudia Snell, Pages: 768, Published: 2006
Dynamic Learning: Dreamweaver CS3 Authors: Fred Gerantabee, AGI Creative Team, AGI Creative Team, Pages: 400, Published: 2007
Macromedia Director MX and Lingo: Training from the Source Authors: Phil Gross, Pages: 905, Published: 2003
Pro ASP.NET 2.0 in VB 2005: special edition. Authors: Laurence Moroney, Matthew MacDonald, Pages: 1360, Published: 2006
Creating Web Sites Bible Authors: David A. Crowder, Andrew Bailey, Pages: 930, Published: 2004
Switching to the Mac: The Missing Manual Authors: David Pogue, Adam Goldstein, Pages: 508, Published: 2005

Web:
CodeProject: PopUp Window With Different Buttons ( Windows Message ... Aug 23, 2005 ... PopUp Window With Different Buttons ( Windows Message Box ); Author: Anwar Hussain ( Wipro Technologies ); Section: Miscellaneous; ...
Show a popup message / window when user exits the website : HTML ... Hi, I want that every time a user exists the website he will get a popup message . an example for that you can see on http://www.888.com How to do.
Using Moodle: Remove header from message pop-up window This header also appears in the pop-up message window, because its wider than the pop-up window, it spoils the alignment. ...
Joomla! • View topic - browser window title and pop up message ... Post subject: browser window title and pop up message strange signs ... everything works fine exept the window title and message boxes are displaying ...
Detailed message pop up window settings Detailed message pop up window settings. ... Changing colors in Detailed message pop up windows in avast! Quote by Igor: ...
nero 7 popup message - Club CDFreaks - Knowledge is Power Nero & InCD Discuss, nero 7 popup message at Burning Software forum; ... How to re-enable Nero popup window with options such as access the ...
Show a popup message / window when user exits the website ... This is a continue for: http://www.experts-exchange.com/Programming/Languages/ Scripting/JavaScript/Q_23644915.html Please read the question above before ...
Blank window pop up message - ProgrammingTalk Blank window pop up message Script Requests. ... Now in Dreamweaver, use behaviors to pop-up the window. Highlight the text that you are ...
Automatically pop up message window - Miranda IM - Wiki You can configure Miranda to automatically pop up the message window when you receive a message, instead of having the message icon flash in the system tray ...
to insert textbox value into popup message window How to insert textbox value into popup message window. I have popup message as.

Videos:
How to make the Javascript pop-up, Hello World Step 1: Go onto Google or any other search engine and type in the address bar Javascript:alert(" "). Put whatever message you want in between the quo...
Delphi Tutorial 1 - Hello World In this tutorial I will teach you how to add a button to a form, then add code to the button. In the end, a "MessageBox" will pop up and display "He...
ASDT screen cast - ConsoleLogger ASDT is a ActionScript2 development tool for the Eclipse Platform. In this short screen cast you can learn how to set up a project, compile an swf an...
How to jailbreak 1.1.2 on iPod Touch or iPhone!! Jailbreak 1.1.2 files: http://www.megaupload.com/?d=FDKBOPAK iTunes Firmware 1.1.2 http://www.megaupload.com/?d=M8STXHC5 1. Install Oktoprep in t...
Funny Talking Cat (Scrappy!)(Chat) Scrapboy: Desktop Chat for Facebook! http://www.scrapboy.com/en Link to Facebook app page (you need to be signed into Facebook for this link to work...
Cheating/Hacking The World's Hardest Game Me cheating on the world's hardest game. If you ask me how I did it, I just might tell you. EDIT: I'm putting the instructions here because I don't ...
ARTstor legacy: Register for an ARTstor Account Today I'm going to register for an account in ARTstor, so I can benefit from some of the advanced functionality on the ARTstor Website. It's pretty...
How to Hack/Jailbreak Firmware 1.1.2 on Ipod Touch!PC or Mac **********README************* Jailbreak 1.1.2 files: http://www.megaupload.com/?d=FDKBOPAK iTunes Firmware 1.1.2 http://www.megaupload.com/?d=M8S...
The Science and Art of User Experience at Google Google TechTalks June 7, 2006 Jen Fitzpatrick is an Engineering Director at Google. She currently manages Google's user experience team, which is r...
Any Halo Pictures on Desktop I have found out a way to put good clear, pictures of halo on my desktop. For those of you who have already found this, do not complain this video is...




Search This Site:










context meu within my composite control

how to validate a radiobutton and checkbox?

exporting results to text file

run asp.net on unix?

copy protect web page content

viewstate takes up to 80kb!!! it slows down every pageload. help!

dynamic hyperlink to download file outside the web root directory

onpropertychange javascript master page

remoting security exception - assembly trust issue?

overly complex form?

amazon and google 3.0.8

how to change user's security and answer questions ?

read / write permission

web part personalization (a requirement)?

programatically change connectionstring

double-click event for listbox?

calculating working hours

runtime editing of theme css

dnnjungle page print module not working

request.params() flagged as "request is not declared". how do i fix this??

increasing the connection pool size to be greater than 100

findcontrol returned blank!

add a login, roles an asp.net 2.0 application

accessible navigation

asp.net forums v2

path in master pages

dotnetnuke.moduleloadexception: unhandled error loading module

do not allow back button or clear memory so they can click back?

literals or labels -- which should i use?

can you show me?

 
All Times Are GMT