473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Web Form Navigation

Hi,

I'm an ASP .NET Newbie and I'm hoping some can help me with some basic web
form navigation.

I have a web form with numerous text boxes for data entry. The text boxes
also have some Compare Validators and Required Field Validators on the form
too. The web form also has an OnServerValidate attribute on the Custom
Validator too.

Error checking wise, all of the necessary checks are performed. Therefore,
when all of the proper data is entered and the user clicks the Submit
button, the form just submits to itself. The self-submitting even happens
after I added an action attribute to the form element that points to a valid
..htm page in the same folder. The button is <asp:button ...>

Can any one point me in the right direction as to how I would get the page
to perform all of the necessary validation and once all of that passes, the
have the web form submit to a new web page?

Please help in anyway you can.

Thanks,
-Rigs
Nov 18 '05 #1
1 1317
"Rigs" <jc******@spartanmotors.com> wrote in message
news:O0**************@tk2msftngp13.phx.gbl...
Hi,

I'm an ASP .NET Newbie and I'm hoping some can help me with some basic web
form navigation.

I have a web form with numerous text boxes for data entry. The text boxes
also have some Compare Validators and Required Field Validators on the form too. The web form also has an OnServerValidate attribute on the Custom
Validator too.

Error checking wise, all of the necessary checks are performed. Therefore, when all of the proper data is entered and the user clicks the Submit
button, the form just submits to itself. The self-submitting even happens
after I added an action attribute to the form element that points to a valid .htm page in the same folder. The button is <asp:button ...>

Can any one point me in the right direction as to how I would get the page
to perform all of the necessary validation and once all of that passes, the have the web form submit to a new web page?


That's not how ASP.NET works in 1.0 and 1.1. The page will _always_ post
back to itself. That's what allows you to use object-oriented methods to
access the controls on the page.

What people normally do is a Response.Redirect or Server.Transfer in the
Click event for the submit button to get to the new page.
--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Robin | last post by:
H I am having some problems with form creation & navigation in .NET. I have a sub main that calls my first form (login) using the application.run() method. If the validations are correct I wish...
1
by: Robert Neville | last post by:
I am having some trouble with some old code revolving around custom form navigation buttons. My main form has a sub-form with these custom navigation buttons. In other words, the code should be...
2
by: Joshua Ammann | last post by:
How do you change what row is highlighted in a listbox (so that it highlights the current record you are viewing in the form) when you use the built-in navagation buttons (or any method other than...
3
by: cannen | last post by:
This is a repost as I am down to the last hair on my head. I am using a listbox on a tab control on my mainform that has alisting of all records associated with form main record. when I select...
1
by: Galka | last post by:
Hello I have a form to enter names and some other personal information. When a name is entered, it is checked against existing records: maybe, such name was entered before? If yes, user is...
1
by: RLC603 | last post by:
I have a form with subform which details documents within a contract and data elements within the documents. The form contains info. about the contract and one or several documents associated...
4
by: robert.waters | last post by:
Hello, I have a main form that is maximized when my application loads; this main form contains links to all other forms. I've had to specify the Popup property of these other forms, so that...
2
by: munkee | last post by:
I use the following code to add the number of records in to my custom navigation within my access database. A simple "Cost x of y" in my sub form that allows me to add costs to a particular activity,...
2
by: T Khoury | last post by:
I am in a form (frmFacilityDetail_new) and I want to call another form (frmBSAList). This (frmBSAList) has parameters in the query because of search txt boxes. When I do a double click on a field...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.