473,406 Members | 2,894 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,406 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 1501
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.