Call Sub vb from javascript

2 posts, 0 answers
  1. Fabio Cirillo
    Fabio Cirillo avatar
    181 posts
    Member since:
    Jan 2010

    Posted 13 Apr 2012 Link to this post

    Hi, 
    I apologize for my bad English I'll try to explain as best as possibleThis is my first ticket:you can call a vb sub from javascript written on the same page.

    <script type="text/javascript"> LANGUAGE="JavaScript"

          / / Open window 
         OpenFabbricatiRadWindow function () {
             var wnd = $ find ("<= Fabbricati.ClientID%>");
             wnd.setUrl ("Form_Job / radwindow_Fabbricati.aspx");
             wnd.set_modal (true);
             wnd.show ();
         }
         / / Get selected value
         Fabbricatoselect function (senderEventArgs{
             eventArgs.get_argument var args = ();
             if (arg) {
                Varfabbricato.value = arg.Fabbricato;
                Vargestione.value = arg.Gestione;
           
       Call here ************************** **************** sub Leggi'

      }
         }

        
    <script>

    in the page vb.aspx

    Protected Sub Leggi ()
             Dim query = From c In Archivio.Tabelle_Spesa
             In joins and Archivio.Stato On c.Tab_Stato Equals e.Id_Stato
             Select ID_Tabella c.ID_Tabella =Description = c.Tab_DescrizioneAcronym =c.Tab_Siglathousandths = c.Tab_MillesimiState = e.Stato_Descrizione
             Query = RadGrid1.DataSource
             RadGrid1.DataBind ()

         end Sub



    Thank

  2. Fabio Cirillo
    Fabio Cirillo avatar
    181 posts
    Member since:
    Jan 2010

    Posted 13 Apr 2012 Link to this post

    for the time reloading the entire page with:

      Fabbricatoselect function (senderEventArgs{
             eventArgs.get_argument var args = ();
             if (arg) {
                Varfabbricato.value = arg.Fabbricato;
                Vargestione.value = arg.Gestione;

                pageId var = '<= Page.ClientID%>';
                __doPostBack (pageId);

    but I would only call the sub
Back to Top