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

validating groups of user controls

got 1 asp.net page with 1 webform

on that webform there are 2 textboxes and 2 buttons

each button submits the associated textbox.
each button should validate only the associated textbox

problem is that in asp.net 1.1 the whole page is validated.

any ideas ??

thx
Nov 19 '05 #1
5 973
Yes, don't use validator controls. Write your own javascript to do the
validation in the click event for the button.

"nicholas" <mu********@hotmail.com> wrote in message
news:uv**************@TK2MSFTNGP14.phx.gbl...
got 1 asp.net page with 1 webform

on that webform there are 2 textboxes and 2 buttons

each button submits the associated textbox.
each button should validate only the associated textbox

problem is that in asp.net 1.1 the whole page is validated.

any ideas ??

thx

Nov 19 '05 #2
Validation Groups are a new feature in 2.0 to address this problem.

-Brock
DevelopMentor
http://staff.develop.com/ballen
got 1 asp.net page with 1 webform

on that webform there are 2 textboxes and 2 buttons

each button submits the associated textbox.
each button should validate only the associated textbox
problem is that in asp.net 1.1 the whole page is validated.

any ideas ??

thx


Nov 19 '05 #3
yep, indeed.
but is asp.net 2.0 allready out?
and, if so, how can I install this on my testing server?

thanks

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:40**********************@msnews.microsoft.com ...
Validation Groups are a new feature in 2.0 to address this problem.

-Brock
DevelopMentor
http://staff.develop.com/ballen
got 1 asp.net page with 1 webform

on that webform there are 2 textboxes and 2 buttons

each button submits the associated textbox.
each button should validate only the associated textbox
problem is that in asp.net 1.1 the whole page is validated.

any ideas ??

thx


Nov 19 '05 #4
ASP.NET 2.0 Beta 2 will be out very soon. It comes with a go live license
which legally allows you to run it on a production server. This is very much
like what people did with v1.x and IMO it's stable enough at this point to
do this. RTM will be 4-6 months after B2. If you're able I'd suggest getting
it and testing. There are many new features, and some of them are really
good, even :)

-Brock
DevelopMentor
http://staff.develop.com/ballen
yep, indeed.
but is asp.net 2.0 allready out?
and, if so, how can I install this on my testing server?
thanks

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:40**********************@msnews.microsoft.com ...
Validation Groups are a new feature in 2.0 to address this problem.

-Brock
DevelopMentor
http://staff.develop.com/ballen
got 1 asp.net page with 1 webform

on that webform there are 2 textboxes and 2 buttons

each button submits the associated textbox.
each button should validate only the associated textbox
problem is that in asp.net 1.1 the whole page is validated.
any ideas ??

thx


Nov 19 '05 #5
THX a lot for all your info & help!

Ciao.

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:40**********************@msnews.microsoft.com ...
ASP.NET 2.0 Beta 2 will be out very soon. It comes with a go live license
which legally allows you to run it on a production server. This is very much like what people did with v1.x and IMO it's stable enough at this point to
do this. RTM will be 4-6 months after B2. If you're able I'd suggest getting it and testing. There are many new features, and some of them are really
good, even :)

-Brock
DevelopMentor
http://staff.develop.com/ballen
yep, indeed.
but is asp.net 2.0 allready out?
and, if so, how can I install this on my testing server?
thanks

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:40**********************@msnews.microsoft.com ...
Validation Groups are a new feature in 2.0 to address this problem.

-Brock
DevelopMentor
http://staff.develop.com/ballen
got 1 asp.net page with 1 webform

on that webform there are 2 textboxes and 2 buttons

each button submits the associated textbox.
each button should validate only the associated textbox
problem is that in asp.net 1.1 the whole page is validated.
any ideas ??

thx


Nov 19 '05 #6

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

Similar topics

4
by: Tim Daneliuk | last post by:
OK, I've Googled for this and cannot seem to quite find what I need. So, I turn to the Gentle Geniuses here for help. Here is what I need to do from within a script: Given a username and a...
6
by: Alex Bink | last post by:
Hi, I have a validating event on a textbox in which I want to prevent the user to leave the textbox without entering the right data. Only if he clicks on another specific control he is allowed...
1
by: Paul | last post by:
Hi, I'm developing a search facility for my web app. In order for the search criteria to be valid the user must (a) enter some text in a text box and check and least one checkbox (of which there...
4
by: DotNetTechi | last post by:
hi all, i am using tabstrip with multipage control in asp.net.i have put some textboxes on the first tab.my requirement is that i whenever user make somechanges in any of textbox and moves to next...
4
by: Joe Abou Jaoude | last post by:
hi I m facing the following problem often : In a web page the user can click on 2 buttons "button1" and "button2". If the user clicked on button1 then I have to validate part of the form (some...
0
by: Gary Shell | last post by:
I am experiencing some strange behavior between a UserControl's validating event and a treeview control. Initially, I thought it was related to an issue in the Knowledgebase article 810852...
5
by: norton | last post by:
Hi All, I am writing a simple win form which contains a button, when user click the button i want to validate all the other textbox and see if there is anything goes wrong may i know how...
0
by: Bryan | last post by:
Visual basic 2005, .net 2.0: I pass my form's collection of controls to a public sub in a module that loops through and checks for any ErrorProvider text. The sub returns all the ErrorProvider...
6
by: Ryan | last post by:
I have a windows form that I want to force validation on controls (text boxes) when the user clicks a "Save" button. The only way I've found to do this is to cycle through every control and call...
3
by: TheSteph | last post by:
Hi Experts ! I have a Winform Program in C# / .NET 2.0 I would like to ensure that a value in a TextBox is a valid Int32 when user get out of it (TextBox loose focus)
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.