editable datagrid and javascript.

Discussion in 'ASP .Net Web Controls' started by Suma, Jan 13, 2005.

  1. Suma

    Suma Guest

    Hi All,

    I have an editable datagrid. When it is in edit mode, there is a textbox in
    it into which the User has to compulsorily enter value.
    I have written a javascript to check this. This gets fired on "Update"
    command.
    It actually works fine. It asks User to enter something if he has not.
    But when User indeed enters something, and the control comes back to server
    side, the Value in textbox is getting lost.
    Any ideas as to why this must happen and please let me know a solution for
    this.

    P.S.: I am not overwriting the contents of this textbox in any way.

    TIA
    Suma.
     
    Suma, Jan 13, 2005
    #1
    1. Advertising

  2. Suma

    anon Guest

    try adding a change event to the textbox...it might 'just work'

    "Suma" <> wrote in message
    news:...
    > Hi All,
    >
    > I have an editable datagrid. When it is in edit mode, there is a textbox

    in
    > it into which the User has to compulsorily enter value.
    > I have written a javascript to check this. This gets fired on "Update"
    > command.
    > It actually works fine. It asks User to enter something if he has not.
    > But when User indeed enters something, and the control comes back to

    server
    > side, the Value in textbox is getting lost.
    > Any ideas as to why this must happen and please let me know a solution for
    > this.
    >
    > P.S.: I am not overwriting the contents of this textbox in any way.
    >
    > TIA
    > Suma.
     
    anon, Jan 15, 2005
    #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. Alex K

    Editable DataGrid Validation

    Alex K, Aug 13, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    458
    Alex K
    Aug 13, 2003
  2. =?Utf-8?B?U3VtYQ==?=

    editable datagrid and javascript.

    =?Utf-8?B?U3VtYQ==?=, Jan 13, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    2,201
  3. Leah
    Replies:
    1
    Views:
    205
    Lev Burov
    Sep 23, 2004
  4. Drew

    Editable datagrid and dynamic validation controls

    Drew, May 17, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    149
  5. Diane
    Replies:
    5
    Views:
    273
    alvinz_c
    Nov 9, 2005
Loading...

Share This Page