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

Asp.NET Button Issue

117 100+
i have two textboxes and put the requiredfieldvalidator for both of the text boxes and a submit button, and another button for Logout, but when i click only the logout button thne the requiredfieldvalidator appears, how i can solve this issue.
Mar 20 '07 #1
3 1032
channaJ
67
i have two textboxes and put the requiredfieldvalidator for both of the text boxes and a submit button, and another button for Logout, but when i click only the logout button thne the requiredfieldvalidator appears, how i can solve this issue.
Hi Sani,

You can solve this issue by setting the CausesValidation property of the log out button to false. Once you set this property to false, the client side validations caused by the particular control will be disabled.
Mar 20 '07 #2
dip_developer
648 Expert 512MB
i have two textboxes and put the requiredfieldvalidator for both of the text boxes and a submit button, and another button for Logout, but when i click only the logout button thne the requiredfieldvalidator appears, how i can solve this issue.
do you want your validator to fire on click event of submit button??? then check whether button's CauseValidation is set to True......Set other buttons CauseValidation property to False
Mar 20 '07 #3
i have two textboxes and put the requiredfieldvalidator for both of the text boxes and a submit button, and another button for Logout, but when i click only the logout button thne the requiredfieldvalidator appears, how i can solve this issue.
Hi,
Actually i have done this thing previously but now since im not working in asp.net i cant remember exactly wat was the field names....But You can go to the properties window,then there are events and options where you can specify the option you want...
Actually you can set the options like enable the required field validator only when youclick on the submit button...ok?

Regards,
TeenzoneZ
Mar 20 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: ewitkop90 | last post by:
Here is my code: <SCRIPT> function transportchange(transport) { if (framenewinstall.Helpdesk.checked) framenewinstall.Helpdesk.checked=false; if (framenewinstall.CircuitNumber.checked)...
8
by: Shimon Sim | last post by:
Hi, Every time I write ASP.NET application I have the same problem - Back button on the browser is my enemy. I have to tell client avoid using "Back" button and if you use it make sure to refresh...
14
by: clintonG | last post by:
This is an appeal for peer support sent to Microsoft as will be noted in closing. The Login control does not include a Cancel button. The only option is to convert the Login control to a...
9
by: Ant | last post by:
Hi, I'm wondering if anybody can tell me what the Validate document button is used for & how to use it. When I deliberately put some tag in that shouldn't be there, (such as an extra body tag) &...
14
by: Kevin | last post by:
A couple of easy questions here hopefully. I've been working on two different database projects which make use of multiple forms. 1. Where's the best/recommended placement for command buttons...
5
by: ns21 | last post by:
How can the browser back button be disabled If the form is submitting information to other pages or submitting to itself or using redirections. I tried the tweaks like history.forward(1) in each...
0
by: Glenn | last post by:
I currently have a page that contains a logon control and a Wizard control. I am having an issue when the user hits the "Enter" key, the user gets logged off. This is because the logon control...
6
by: sgottenyc | last post by:
Hello, If you could assist me with the following situation, I would be very grateful. I have a table of data retrieved from database displayed on screen. To each row of data, I have added...
7
by: =?Utf-8?B?QW50?= | last post by:
Hi, If I place a button on either a Web form or an HTML form, when I run the page in a browser, the button stretches right across the screen. This happens with our Enterprise Visual Studio at work...
1
by: Alec MacLean | last post by:
Hi, I have a number of VB.NET apps, where sometimes the mouse click doesn't fire a button's event handler. These were written in various Visual Studio IDE's; 2003, 2005 and 2008 (that is, it...
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: 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
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,...
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...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.