POST Thread: DirectMethod(). Why do postback the all page ?

  1. #1

    POST Thread: DirectMethod(). Why do postback the all page ?

    Hello Forum: I'm really wondering why any Direct Method must be calling from
    any part of the page make a postback. I'm adding an example from my programming.

     function openVincular(Tipo) {
     document.getElementById("hfEstadoVinMapa").value = Tipo;;
     <asp:ImageButton id="ibVincularFicha" runat="server" ImageUrl="Images/MapasGeo/09.png" BorderStyle="Outset" OnClientClick="openVincular(1); return false;" BorderWidth="1px" ToolTip="Fichas Vincular" BorderColor="White" ></asp:ImageButton>
     <DirectMethod()> _
     Public Sub OpenVentanaVincular(ByVal tipo As Integer)
     Me.txtDescripcionFichas.Text = ""
     Ext.Net.X.Js.AddScript("App.Window7.alignTo( tBody(), 'tl', [90, 150]); App.Window7.expand();")
     End Sub
    By the way, even with Button does the same results.

     <Ext.Net Buttom>
     <ext:Button ID="btProcesar" runat="server"
     Icon="PaintbrushColor" >
     <ext:ToolTip runat="server" ID="ttProcesar" Title="Procesar Clasificación" Width="125" TitleAlign="Center"></ext:ToolTip>
     <Click OnEvent="LlenarItemsClass" Timeout="100000" Before="Ext.Msg.wait('Procesando datos...', 'Agregando clasificaciones');" Failure="Ext.Msg.hide();" >
     </Ext.Net Buttom>
    Please, I need any way for not make a postback. Why, I need this because I have a MapControl,
    and this working with postback if one feature map is hard to load for first time, this direct
    method reload again. And I trying to figure it out why makes a postback a "windows"
    is not necessary for reload the whole page.

    Best Regards
    Interzone Developers.
  2. #2
    Hello and welcome to the forum,

    The example you've provided cannot be run as-is and I noticed you are referring to non Ext.Net components, too. It would be great if you could provide a small but functional sample. Meanwhile, here is some piece of advice:

    Hope it helps.

Similar Threads

  1. Replies: 2
    Last Post: Aug 22, 2015, 1:38 PM
  2. [CLOSED] Page PostBack Query
    By vijay.sahu in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 04, 2013, 11:43 AM
  3. [1.3]How to prevent DirectMethod use POST
    By firebank in forum 1.x Help
    Replies: 3
    Last Post: Apr 09, 2012, 1:31 PM
  4. [CLOSED] Cross-page Postback
    By in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 16, 2011, 1:19 PM
  5. VB.NET Code Behind Page Postback Problem!
    By infastruct in forum 1.x Help
    Replies: 5
    Last Post: Dec 01, 2009, 1:58 AM

Posting Permissions