Javascript and server calls

Discussion in 'ASP .Net' started by Ric Pullen, Jul 17, 2003.

  1. Ric Pullen

    Ric Pullen Guest

    Is it possible to have a button run client side script and then depending
    if its valid allow the postback to continue otherwise it prompts the user.

    I know this sounds like a validation issue but its not possible to do it
    with the validation components.

    I use infragistics webgrid and i want to test if there is an active row...
    if so then I will allow a postback otherwise prompt the user to select one.

    I have already assigned the javascript with the following code
    btnEdit.Attributes.Add("onclick", "javascript:EditRowSelectedCheck()")

    Cheers.
     
    Ric Pullen, Jul 17, 2003
    #1
    1. Advertising

  2. Ric Pullen

    Anatoly Guest

    1)There is much better place to ask questions related to infragistics:
    http://www.infragistics.com/support/newsgroups.asp.
    2)

    function IsSelected(){
    var grid = igtbl_getGridById(GridId);
    return (grid.getActiveRow() != undefined);
    }

    GridId here string(Id of UltraWebGrid)
    HTH




    "Ric Pullen" <> wrote in message
    news:...
    > Is it possible to have a button run client side script and then depending
    > if its valid allow the postback to continue otherwise it prompts the user.
    >
    > I know this sounds like a validation issue but its not possible to do it
    > with the validation components.
    >
    > I use infragistics webgrid and i want to test if there is an active row...
    > if so then I will allow a postback otherwise prompt the user to select

    one.
    >
    > I have already assigned the javascript with the following code
    > btnEdit.Attributes.Add("onclick", "javascript:EditRowSelectedCheck()")
    >
    > Cheers.
    >
    >
     
    Anatoly, Jul 17, 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. Honne Gowda A
    Replies:
    2
    Views:
    903
    Karl Heinz Buchegger
    Oct 31, 2003
  2. andy6
    Replies:
    2
    Views:
    782
    andy6 via DotNetMonster.com
    Jun 9, 2006
  3. Richard Tobin
    Replies:
    24
    Views:
    818
  4. Bob
    Replies:
    5
    Views:
    276
  5. kiran
    Replies:
    7
    Views:
    2,845
    kiran
    Nov 9, 2011
Loading...

Share This Page