DatGrid TemplateColumn TextBox JavaScript ClientSide Validation?

A

Arulraja

Hi,

I am using 2 TemplateColumn TextBoxs in my Grid. On the Submit button
click event I want to do the validation on the client side. In the
Javascript I couldn't use the ID of the Textbox, because in the HTML
it has a different ID.

I am trying to avoid the round trip in this scenario. Which approch
would be the better one for this scenario?

Thoughts will be greatly apprecited.

Thanks
Arul
 
T

Teemu Keiski

Hi,

can't you put a validator control into the same template the control to be
validated is? That way the naming stuff works as controls are in the same
naming container.
 
A

Arulraja

Yeah I Could do that. Does it handle the client Side validation?
But, I doesn't have any idea how to hanlde the validator events in this case.
Could you please help on this.

Thanks
Arul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top