Javascript and server calls

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Javascript and server calls

    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 Guest

  2. Similar Questions and Discussions

    1. Server Side Includes and Javascript
      Can one safely include javascript in a server-side include (SSI) file? It seems to work but don't know if it will create problems down the line. I...
    2. SOAP calls to a server from a Windows Forms app
      Hello All, I'm building a COM object using C# and I need to communicate with a server via SOAP. Unfortunately, all of the samples that I've...
    3. multiple calls to getURL("javascript:<functionN>")
      Calling getURL with a javascript command more than once will result in one of the calls to getURL not executing. For example, create a sample...
    4. Creating Controls with Javascript and getting to them from the server.
      Maybe I did this wrong. I think I did but I built some textbox controls using Javascript and I call the javascript function that builts and adds...
    5. firing event on server via javascript
      Hi all is there any possiblity of doing this ? for example,i have handler procedure defined in codebehind : protected sub proc(sender as...
  3. #2

    Default Re: Javascript and server calls

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

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

    GridId here string(Id of UltraWebGrid)
    HTH




    "Ric Pullen" <Richard.Pullen-REMOVESPAM@Hospital.nhs.uk> wrote in message
    news:uS0a6KFTDHA.940@TK2MSFTNGP11.phx.gbl...
    > 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 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139