JavaScript in GridView Edit Template

Discussion in 'ASP .Net' started by kegs01@gmail.com, Jul 17, 2006.

  1. Guest

    I am using a JavaScript DHTML Calendar cotrol in the Edit Template of a
    Grid View, and I'm having trouble getting the setup code to fire
    properly. I have tried adding the JavaScript using
    Page.ClientScript.RegisterStartupScript(...) as well as just putting
    the script directly in a Literal Control that gets rendered with my
    TextBox and Image.

    All of the controls are displaying properly, but it is JavaScript that
    actually ties the button to the Popup Calendar and the TextBox that
    isn't running. I know the tools are there because I have it working
    outside of the GridView on controls that are registered at the initial
    page load. It's just the partial rendering that's giving it problems.

    Any suggestions, or anything special I need to setup to get JavaScript
    to fire when the controls are rendered during a GridView event?
    , Jul 17, 2006
    #1
    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. =?Utf-8?B?a2Vu?=
    Replies:
    1
    Views:
    10,302
    Wiktor Zychla [C# MVP]
    Jan 23, 2006
  2. Anders
    Replies:
    0
    Views:
    452
    Anders
    Apr 22, 2006
  3. keithb
    Replies:
    2
    Views:
    28,871
    keithb
    Jun 2, 2006
  4. =?Utf-8?B?SmVyb2QgSGF0bGV5?=

    GridView add multiple controls to edit item template

    =?Utf-8?B?SmVyb2QgSGF0bGV5?=, Oct 7, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    1,035
    =?Utf-8?B?SmVyb2QgSGF0bGV5?=
    Oct 8, 2006
  5. Jaime Stuardo

    GridView control enters edit mode when I click Edit link twice

    Jaime Stuardo, Apr 7, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    370
    Jaime Stuardo
    Apr 7, 2006
Loading...

Share This Page