Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > DataList

Reply
Thread Tools

DataList

 
 
vicky via .NET 247
Guest
Posts: n/a
 
      04-26-2004
HI
I'm dynammically adding Dropdown list and textbox in a datalist. I have to validate them in the javaScript. can I get the Dropdown list and textbox id in the javascript. if so how?

Thanks in advance
Vicky

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>scE33KBfak2deK5qftJX3w==</Id>
 
Reply With Quote
 
 
 
 
Ashish M Bhonkiya
Guest
Posts: n/a
 
      04-27-2004
Hi Vicky,

While adding the controls itself you need to attach the javascript with the
controls for doing the validations. you can use the clientID property of the
control from the serverside while attaching javascript, this clientid of the
control will be the id of the control when its rendered to the page.

HTH
Regards
Ashish M Bhonkiya



"vicky via .NET 247" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> HI
> I'm dynammically adding Dropdown list and textbox in a datalist. I have to

validate them in the javaScript. can I get the Dropdown list and textbox id
in the javascript. if so how?
>
> Thanks in advance
> Vicky
>
> -----------------------
> Posted by a user from .NET 247 (http://www.dotnet247.com/)
>
> <Id>scE33KBfak2deK5qftJX3w==</Id>



 
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
Entering DataList EditItemTemplate from Outside of the DataList Luis Esteban Valencia ASP .Net 1 01-06-2005 07:32 PM
Setting up a datalist control - Item_DataBound for a datalist in a datalist Nevyn Twyll ASP .Net 8 09-09-2004 10:13 PM
Click event in a datalist to post back datalist properties Steve Lloyd ASP .Net 1 05-26-2004 04:07 AM
DataList in DataList acko bogicevic ASP .Net 2 11-11-2003 08:31 AM
Datalist in Datalist How? Gönen EREN ASP .Net 0 08-22-2003 02:41 PM



Advertisments