Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 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 Professional 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, 04:42 AM
Authorized User
 
Join Date: Nov 2005
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Default Alert messege in asp.net.

hi,

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

in my programe im checking number sequence. If sequence incorrect i want to show messege to user . But my problem im confusing ( what kind of messege i want to show) how to show serverside messege.

Ex- user inserting numbers 1-10. Suddenly user inserting number 7 after enter 1,2,3,4. So meantime i want to show messege 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 programe 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, 10:37 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Can you define the parameters of this problem a little more?

Are they entering all the numbers into a single entry box? Are they entering one then saving then entering the next then saving, so on and so forth?

In order to have the server initiate a user prompt you need to emit javascript that performs the prompting (i.e. using an alert box) then save the response from the client to some server control (most likely a hidden form element) then initiate a postback on the client side. This can be a bit more challenging than just showing a prompt in the page text with the appropriate response buttons as server-side buttons. Alternatively you could do all of this on the client side, but then you have to ensure that your javascript works in the browser environments you want to support and you should also provide server-side checking to eliminate client-side circumvention of the checks.

-Peter
compiledthoughts.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Confermation messege problem msbsam ASP.NET 2.0 Professional 1 August 2nd, 2008 01:01 AM
Alert Messege ( Server Side) msbsam ASP.NET 2.0 Basics 1 August 1st, 2008 07:30 AM
VB ISO8583 Messege Parser bilalmuslim Pro VB 6 2 August 2nd, 2007 06:22 AM
ASP(C#) : datagrid editing - alert problem shazia1 VS.NET 2002/2003 0 July 4th, 2005 03:34 AM
PURE asp upload problem ., alert from Javascript kasanar ASP.NET 1.0 and 1.1 Professional 0 February 19th, 2005 10:06 AM





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