Ask a Question related to ASP.NET General, Design and Development.
-
Hrvoje Vrbanc #1
JavaScript validation of a DataList
Hello all,
I have a DataList control displaying data from the database (some products).
There are also TexBox controls and ImageButton controls in the two columns
of the DataGrid. I would like to implement client-side validation so that
when user clicks ImageButton (with add to basket function), JavaScript
checks if the correct string was entered in the aforementioned TextBox. All
this is usual and the JavaScript in itself is not a problem of course, but
how do I wire those ImageButton controls (in fact their OnClick events) to
JavaScript and how do I pass the value from TextBox control (DataList child
control) to JScript?
Many thanks,
Hrvoje
Hrvoje Vrbanc Guest
-
Newbie:Is Javascript validation really the best way to go?
Hello to all, I remember reading somewhere that JavaScript validation is superior to CF validation and not to even use CF for that. Is this... -
Javascript Validation Problem
Hi, I am validating a form, by looping through each element, its not working though, can anybody help? Here is the page: ... -
Referencing a TextBox control in Javascript from DataList ItemTemplate
I have a calendar control which pops up as a new window when i click on my textbox. The calendar control returns a Javascript function whereby... -
Javascript Validation
C wrote: This can be done with client-side code using the onkeypress event. Please follow-up in a javascript dhtml newsgroup since this question... -
datalist edit mode and javascript pop up calendar
Hi Check whether textbox control name is 'txtDischargeDate' or it contains automatically generated id? HTH Ravikanth return the selected -
Marina #2
Re: JavaScript validation of a DataList
You can use something like 'this.nextSibling.value', if the textbox is
rendered right after your button.
"Hrvoje Vrbanc" <hrvojev@recro.hr> wrote in message
news:O8c49%23LXDHA.208@tk2msftngp13.phx.gbl...products).> Hello all,
>
> I have a DataList control displaying data from the database (someAll> There are also TexBox controls and ImageButton controls in the two columns
> of the DataGrid. I would like to implement client-side validation so that
> when user clicks ImageButton (with add to basket function), JavaScript
> checks if the correct string was entered in the aforementioned TextBox.child> this is usual and the JavaScript in itself is not a problem of course, but
> how do I wire those ImageButton controls (in fact their OnClick events) to
> JavaScript and how do I pass the value from TextBox control (DataList> control) to JScript?
>
> Many thanks,
> Hrvoje
>
>
Marina Guest



Reply With Quote

