Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 1st, 2008, 06:56 AM
Authorized User
 
Join Date: Nov 2005
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Default Alert Messege ( Server Side)

hi,

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.

thanks
__________________
MSB
 
Old August 1st, 2008, 07:30 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

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..

Rob
http://cantgrokwontgrok.blogspot.com





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





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