Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 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 August 1st, 2008, 06:56 AM
Authorized User
Join Date: Nov 2005
Location: Colombo, , Sri Lanka.
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Default Alert Messege ( Server Side)


Can anyone help me to use alert message in asp.net.

in my program im checking number sequence. If sequence incorrect i want to show message to user . But my problem im confusing ( what kind of message i want to show) how to show server side message.

Ex- user inserting numbers 1-10. Suddenly user inserting number 7 after enter 1,2,3,4. So meantime i want to show message to user DO YOU WANT TO CONTINUE THIS PROCESS. If user "OK" to enter this number it should save in my database and continue to check my next method. But if User Click "NO" (i mean user no need to add Number 7 without adding 5,6 ) then i want to continue my program without save this number. So either way i want to check my next method.

Can anyone help me to solve my problem.

Reply With Quote
  #2 (permalink)  
Old August 1st, 2008, 07:30 AM
Friend of Wrox
Join Date: Mar 2007
Location: Hampshire, United Kingdom.
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post


First off, do you have the program working at the moment? (I.e. a page, which the user submits numbers, one at a time, and the numbers are stored in the database - even if they are wrong?

If so, then its pretty simple, at the point before you save it, check it! If its wrong, dont save it and update the output rendered to the page (you could use a number of controls here, Literal, Label, Image, whatever). Then simply set a boolean flag to say "warning shown", if you receive the next number, then save it no matter what?

This is all really "rough round the edges" but its the general idea..

Remember, Web Applications are NOT Windows applications, things dont just "pop up and happen" (like MessageBox).. You can do it with JavaScript, but you then need to work differently on getting the result back to the server etc..

Reply With Quote

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
Alert messege in asp.net. msbsam ASP.NET 2.0 Professional 1 August 1st, 2008 10:37 AM
Problem Converting Client-side to Server-side Code kwilliams ASP.NET 2.0 Professional 1 November 21st, 2007 05:25 PM
Firing server side events at client side codes mehdi62b ASP.NET 1.0 and 1.1 Basics 6 May 18th, 2005 09:11 AM
sharing a server-side variable with client-side pigtail Javascript How-To 6 November 4th, 2004 02:01 AM
Accessing Server Side Data on Client Side steve456 Classic ASP Professional 3 October 15th, 2003 02:33 PM

All times are GMT -4. The time now is 12:18 PM.

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