|
 |
aspx thread: Questions for Dave S
Message #1 by "Steve Farncombe" <stevef@w...> on Wed, 30 May 2001 15:00:03
|
|
---------------------------------------------------------------------------
prasadved@y...:
I have been able to create Customs Controls in ASP.NET.
I need to validate all Controls within my Custom Control namespace with:
<asp:RequiredFieldValidator>.
Please let me know how it can achieved or else is there another way out.
Thanks
---------------------------------------------------------------------------
rm41@h...:
As a VB developer I'm constantly asking myself if it'll be best to focus
on Win forms or Web forms development with the forthcoming release of
Visual Studio (or if it'll matter at all if the dividing line becomes
blurred). Rather than Web forms being able to offer Web or HTML controls
according to the browser type, could you foresee a scenario where Win and
Web applications are totally merged, maybe using one form type instead of
two, with controls that either render as Win controls if the client is a
Win machine or HTML if it isn't?
Message #2 by David Sussman <davids@i...> on Wed, 30 May 2001 15:10:02 +0100
|
|
> --------------------------------------------------------------
> -------------
> prasadved@y...:
>
> I have been able to create Customs Controls in ASP.NET.
> I need to validate all Controls within my Custom Control
> namespace with:
>
> <asp:RequiredFieldValidator>.
>
> Please let me know how it can achieved or else is there
> another way out.
>
> Thanks
The validation controls only work on single controls at a time. You can't
get the validator to recurse through a controls children. It's a pretty cool
idea though.
> --------------------------------------------------------------
> -------------
> rm41@h...:
>
> As a VB developer I'm constantly asking myself if it'll be
> best to focus
> on Win forms or Web forms development with the forthcoming release of
> Visual Studio (or if it'll matter at all if the dividing line becomes
> blurred). Rather than Web forms being able to offer Web or
> HTML controls
> according to the browser type, could you foresee a scenario
> where Win and
> Web applications are totally merged, maybe using one form
> type instead of
> two, with controls that either render as Win controls if the
> client is a
> Win machine or HTML if it isn't?
Interesting idea. A couple of years ago I was convinced (wrongly so) that
the next interface was going to be XML based, and even standard windows
applications would use this. The problem is the way programs are exectured,
but there's no reason why the architecture couldn't be built do to this. I
suppose the answer is that if you want functionality that works on both then
just use Web Forms.
Dave
Message #3 by "Alex Homer" <alex@b...> on Wed, 30 May 2001 16:31:13
|
|
On behalf of Dave Sussman (his network connection just died...):
The only way we can see is to handle all the validation yourself within
your custom control using your own code, and then expose the IsValid
propery so that it can be used with a RequiredFieldValidator. It's not
possible to use one validation control to validate multiple controls -
each one must have its own validator.
|
|
 |