Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > DatGrid TemplateColumn TextBox JavaScript ClientSide Validation?

Reply
Thread Tools

DatGrid TemplateColumn TextBox JavaScript ClientSide Validation?

 
 
Arulraja
Guest
Posts: n/a
 
      11-14-2003
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
 
Reply With Quote
 
 
 
 
Teemu Keiski
Guest
Posts: n/a
 
      11-14-2003
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.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist

"Arulraja" <> wrote in message
news: om...
> 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



 
Reply With Quote
 
 
 
 
Arulraja
Guest
Posts: n/a
 
      11-14-2003
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

"Teemu Keiski" <> wrote in message news:<>...
> 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.
>
> --
> Teemu Keiski
> MCP, Microsoft MVP (ASP.NET), AspInsiders member
> ASP.NET Forum Moderator, AspAlliance Columnist
>
> "Arulraja" <> wrote in message
> news: om...
> > 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GridView - TemplateCOlumn Textbox Vinitha ASP .Net 0 03-02-2011 10:22 AM
set a cookie clientside on Textbox onChange Nalaka ASP .Net 3 08-15-2006 06:51 PM
datgrid and sql bit field SKG ASP .Net 2 06-16-2004 12:00 AM
Totaling a column in Datgrid Atif Jalal ASP .Net 2 01-24-2004 10:40 PM
Dynamically created Datgrid will not enter Edit Mode! Mike ASP .Net 0 01-13-2004 06:00 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57