Accessing Textbox inside a Template column using javascript

Discussion in 'ASP .Net Datagrid Control' started by Deepak, Aug 6, 2003.

  1. Deepak

    Deepak Guest

    Hi,
    I am having a datagrid with a template column. Inside the template column I
    have a textbox and an image button. On click of the image button, I want to
    call a javascript function, where the textbox value has to be taken.

    Since the textbox is inside the datagrid, how can I access the Textbox in a
    javascript function?

    what is happening now is that if I give document.frmname.textboxname then it
    won't recognise because for textboxes in each row of the datagrid is
    internally given a different name.

    can you please assist me regarding this?

    Thanks & Regards,
    Deepak
    Deepak, Aug 6, 2003
    #1
    1. Advertising

  2. Deepak

    Saravana Guest

    Check out this article, this will help you
    http://www.microsoft.com/india/msdn/articles/PopupCalendarinASP.aspx

    --
    Saravana
    Microsoft India Community Star,MC**
    www.ExtremeExperts.com



    "Deepak" <> wrote in message
    news:...
    > Hi,
    > I am having a datagrid with a template column. Inside the template column

    I
    > have a textbox and an image button. On click of the image button, I want

    to
    > call a javascript function, where the textbox value has to be taken.
    >
    > Since the textbox is inside the datagrid, how can I access the Textbox in

    a
    > javascript function?
    >
    > what is happening now is that if I give document.frmname.textboxname then

    it
    > won't recognise because for textboxes in each row of the datagrid is
    > internally given a different name.
    >
    > can you please assist me regarding this?
    >
    > Thanks & Regards,
    > Deepak
    >
    >
    Saravana, Aug 6, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. HockeyFan
    Replies:
    1
    Views:
    979
    Masudur
    Jul 4, 2007
  2. Stuart Redmann
    Replies:
    5
    Views:
    466
    Stuart Redmann
    Dec 14, 2007
  3. Peter Cresswell

    Accessing controls in template column with JavaScript

    Peter Cresswell, Jul 16, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    139
    Cristian Suazo
    Jul 16, 2003
  4. Ashish Bandi via .NET 247

    Accessing TextBox/Label controls inside a Repeater control

    Ashish Bandi via .NET 247, May 14, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    719
    Scott Mitchell [MVP]
    May 14, 2004
  5. Kiran More
    Replies:
    2
    Views:
    304
    Kiran More
    Nov 14, 2006
Loading...

Share This Page