473,326 Members | 2,124 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,326 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 1496
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.