473,386 Members | 1,785 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,386 software developers and data experts.

two forms on one page (one needs validation, the other just a butt


Ok, maybe this is a basic question so please bear with a newbie to .net

One asp.net (VB) page has a form with various textboxes that need
validating. There is a submit button that processes this form.

On the same page, there is a 'log out' button that calls a function to log
the user out.

The problem is that when you click on log out on this page, it tries to
validate the form. How can I stop this?

Any advice would help,
Thanks
Jul 21 '05 #1
2 1499
there is an attribute for your login button named "CausesValidation"
just set its value to false.

bye and have fun with .net

"James" wrote:

Ok, maybe this is a basic question so please bear with a newbie to .net

One asp.net (VB) page has a form with various textboxes that need
validating. There is a submit button that processes this form.

On the same page, there is a 'log out' button that calls a function to log
the user out.

The problem is that when you click on log out on this page, it tries to
validate the form. How can I stop this?

Any advice would help,
Thanks

Jul 21 '05 #2
Thanks itgMan,

I've sorted it now. You are right about the CausesValidation bit, but it
only seemed to work once I made one of the 'forms' into a Web User Control.

I eventually found this link on Google which helped me:
http://www.devhood.com/tutorials/tut...utorial_id=505
I must say that .net seems far easier than classic asp, especially when
needing to develop apps quickly.

Cheers.

"itgMan" wrote:
there is an attribute for your login button named "CausesValidation"
just set its value to false.

bye and have fun with .net

"James" wrote:

Ok, maybe this is a basic question so please bear with a newbie to .net

One asp.net (VB) page has a form with various textboxes that need
validating. There is a submit button that processes this form.

On the same page, there is a 'log out' button that calls a function to log
the user out.

The problem is that when you click on log out on this page, it tries to
validate the form. How can I stop this?

Any advice would help,
Thanks

Jul 21 '05 #3

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

Similar topics

6
by: ALthePal | last post by:
Hi, I'm not sure if we are able to or even how to loop through the web forms in a VB.NET project during design time. In MSAccess we are able to go through the database -> forms collection and...
1
by: iMedia User | last post by:
I have a site where I want to use the Web form validators in two separate forms on a single page. One form allows existing users to log in while the second one allows new users to register. The...
0
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET...
8
by: TJS | last post by:
what are folks doing to get around limitation of one server form per page ?
5
by: excelleinc.com | last post by:
Hello, I have 2 forms to be filled by user, one is "auth" and second one contact form. They're completely independent. Problem is that when I enclose them within same <form runat="server"> tag...
3
by: nzanella | last post by:
Hello, I just ran into the restriction of ASP.NET allowing no more than one <form> tag with the runat="server" attribute per page. This seems like a big restriction to me. I ran across the...
3
by: Saket Mundra | last post by:
I have multiple web forms in my application. The user after logging on is directed to form1 where he enters information desired. Once finished he is directed to form2 and the same procedure goes on...
2
by: James | last post by:
Ok, maybe this is a basic question so please bear with a newbie to .net One asp.net (VB) page has a form with various textboxes that need validating. There is a submit button that processes this...
23
by: mosesdinakaran | last post by:
Hi All, I need a small clarification in submitting the forms, Ur suggestions please. In a page I have two form and also two submit butons. (ie)
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:
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.