I want to validate a page based on a few controls. So I need something like
this:
<SCRIPT language="javas cript">
function txtStatusValida te(source, args) {
If (txtStatus.Text = "")
args.IsValid = (args.Value="0" or args.Value="I") ;
Else
args.IsValid = (args.Value="S" or args.Value="L") ;
}
</SCRIPT>
"David Wier" <dwier@nospamAS PNet101.com> wrote in message
news:u3ZMtRrWDH A.1368@TK2MSFTN GP11.phx.gbl...[color=blue]
> Yes, in some ways - - how are you wanting to use it - - the value/ID of[/color]
the[color=blue]
> server controls?
>
> David Wier
> http://aspnet101.com
> http://aspexpress.com
>
>
> "Vik" <viktorum@==yah oo.com==> wrote in message
> news:OGSgvOrWDH A.1940@TK2MSFTN GP10.phx.gbl...[color=green]
> > Is it possible to use (read/write) Web controls (text box, ddl, ...) in
> > javascript or vbscript on an ASP.NET page?
> >
> > Thanks
> >
> >
> >[/color]
>
>[/color]
Comment