Ask a Question related to ASP.NET General, Design and Development.
-
mike #1
asp .net form...
Hello everyone,
I have a server side asp .net form that has two peices of
information that can be updated by one of two submit
buttons. one submit button updates one database table
with the top half of the form. On the bottom half of the
form I have other infomation that can be instered or
updated to another table in the database by a second
submit button. Every thing was working fine until I added
feild validators to both peices of information. So now my
problem is that when I try to submit the top half of the
information, it wants to validate the bottom half of the
information at the same time. Is there any way to tell
either a submit button to disregard some field validators
or be able to tell the field validators not to fire when
a particular submit button is fired?
I thought about putting the bottom information in its own
server side form, but apparently you can only have one
server side form per page.
Any help or suggestions would be greatly appreciated.
Thanks,
mike
mike Guest
-
Autopopulated form not displaying data in pdfunless the form field is clicked
Within my online application, I have a pdf form that is auto generated and displayed to the user in the browser. My problem is that the populated... -
authenticate win32 form client with form based authentication web services
(Type your message here) -------------------------------- From: kitchai yong Hi, Can you tell me how i authenticate the win32 form client... -
#25676 [Opn->Bgs]: Form hidden input ouput when any form=* is in url_rewriter.tags
ID: 25676 Updated by: sniper@php.net Reported By: davey@php.net -Status: Open +Status: Bogus Bug... -
#25676 [Bgs->Opn]: Form hidden input ouput when any form=* is in url_rewriter.tags
ID: 25676 Updated by: davey@php.net Reported By: davey@php.net -Status: Bogus +Status: Open Bug... -
#25676 [NEW]: Form hidden input ouput when any form=* is in url_rewriter.tags
From: davey@php.net Operating system: WinXP/FreeBSD PHP version: 4CVS-2003-09-26 (stable) PHP Bug Type: Session related Bug... -
anastasia #2
Re: asp .net form...
Field Validation occurs on the client, as you know. When you set the
Submit button's CausesValidation to TRUE in server side code, ASP will
the write the following client onclick event in your submit button
element:
onclick="if (typeof(Page_ClientValidate) == 'function')
Page_ClientValidate(); ".
Page_ClientValidate is a function that is located in the
WebUiValidation.js file (do a file search on this page).
Get acquainted with the valiation code. You can step through it by
debuggin your app on the client and open the "running documents"
window...when your page loads it will display all the included
documents on your page. Then, you can step through the validation
process when you click "onsubmit".
You will probably see that there are probably a number of ways you
could manipulate this. Of course, don't change the webuivalidation.js
file..that could be trouble ;-)
You could do lots of things here...Maybe set CauseValidation to false
on the Submit button and then MANUALLY add the onclick event code in
your server side code (I haven't tried this, so I am not sure what
sort of little problems could crop up - HOWEVER it can be done). You
could, in your HTML, add some kind of property or divider in order to
determine which controls to validation when. I don't know your code,
so I can't advise how to do this..it could require a bit of work...
Stacey
You could possibly
anastasia Guest



Reply With Quote

