Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 June 6th, 2003, 06:01 PM
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default messagebox in web forms

Hi everyone
I have couple of question that appreciate anyhelp and ideas..

1-How can I create a messagebox in my webform?
2- I want application put the cursor to the control that is not completed and varified when user hit the submit button. How can I do that in my web application?
3- I need to know how to re-load the application when user submit the form and hit the "back" button of the browser to go back to the form. Where in my application I should call the Pageload() ?


Thanks :)
 
Old June 6th, 2003, 06:15 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

1. I assume you mean how do you create an entry area- like when you are typing your messages. This is done with a Textarea. Depending on if your using ASP.NET or ASP3.0 there are different ways to handle this.

2. Are you using .NET or ASP 3.0?

3. Reload the application? Do you mean reload the form with nothing on it or do you mean reload the application itself?



Hal Levy
Daddyshome, LLC
 
Old June 6th, 2003, 06:42 PM
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I use vs.net to develop my web form application.

I need to create message box to inform the user that he/she has not completed some area(Textboxes), and he/she need to go back and check the areas that is marked by " RequiredFiledValidator" for that specific control. As far as I know I can create the messagebox in stand alone application which this class is defined under " system.windows.form.messagebox", but I am not sure if is there any other way to work around it and create a messagebox in web form application.

2- For my second question, I want to know how to change the control focus. for example, when user his the submit button, there could be one or more control that is not completed with the required information, I want application find and pass the cursor to the first missed control that has the smallest "TabIndex". This should help user to find the misses controls easier.

3- about reloading the application, I want application be reload to the browser just like it has been loaded for the first time. The only difference is in reload user use the back button to get to the application instead of.

I hope the above explanations help.

Thanks
Nahid
 
Old June 7th, 2003, 11:58 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

1. Assuming your using client-side javascript, you would use the alert() in javascript. Here is a link to a tutorial on using the alert()

2. I am not sure on this, I would have to play with it. I would expect that you have a list of controls that are not complete and you know what order the are on the page. There has to be an easier way than just manually doing it. Perhaps someone else has an idea on this.

3. Tell the browser not to cache the page. Here's some instructions on how to do that.



Hal Levy
Daddyshome, LLC





Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Forms Keith Smith BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 8 February 24th, 2007 02:49 PM
Web Forms issues bluetonic VB.NET 2002/2003 Basics 0 August 6th, 2006 09:12 AM
where is my System.Windows.Forms.MessageBox? IZRAILEVICH1 C# 2005 3 November 14th, 2005 03:38 AM
where is my System.Windows.Forms.MessageBox? IZRAILEVICH1 General .NET 2 May 29th, 2005 09:30 PM
Messagebox in a web form KevinO ASP.NET 1.0 and 1.1 Basics 1 October 22nd, 2003 09:56 AM





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