<i id='DAcmc'><tr id='DAcmc'><dt id='DAcmc'><q id='DAcmc'><span id='DAcmc'><b id='DAcmc'><form id='DAcmc'><ins id='DAcmc'></ins><ul id='DAcmc'></ul><sub id='DAcmc'></sub></form><legend id='DAcmc'></legend><bdo id='DAcmc'><pre id='DAcmc'><center id='DAcmc'></center></pre></bdo></b><th id='DAcmc'></th></span></q></dt></tr></i><div id='DAcmc'><tfoot id='DAcmc'></tfoot><dl id='DAcmc'><fieldset id='DAcmc'></fieldset></dl></div>

  1. <legend id='DAcmc'><style id='DAcmc'><dir id='DAcmc'><q id='DAcmc'></q></dir></style></legend>
    <tfoot id='DAcmc'></tfoot>
  2. <small id='DAcmc'></small><noframes id='DAcmc'>

      • <bdo id='DAcmc'></bdo><ul id='DAcmc'></ul>
    1. 使用 jQuery 的 ASP.NET 回发?

      时间:2023-10-05
        <bdo id='yNYqR'></bdo><ul id='yNYqR'></ul>
        1. <small id='yNYqR'></small><noframes id='yNYqR'>

            <tfoot id='yNYqR'></tfoot>

                <legend id='yNYqR'><style id='yNYqR'><dir id='yNYqR'><q id='yNYqR'></q></dir></style></legend>

                <i id='yNYqR'><tr id='yNYqR'><dt id='yNYqR'><q id='yNYqR'><span id='yNYqR'><b id='yNYqR'><form id='yNYqR'><ins id='yNYqR'></ins><ul id='yNYqR'></ul><sub id='yNYqR'></sub></form><legend id='yNYqR'></legend><bdo id='yNYqR'><pre id='yNYqR'><center id='yNYqR'></center></pre></bdo></b><th id='yNYqR'></th></span></q></dt></tr></i><div id='yNYqR'><tfoot id='yNYqR'></tfoot><dl id='yNYqR'><fieldset id='yNYqR'></fieldset></dl></div>

                  <tbody id='yNYqR'></tbody>
              • 本文介绍了使用 jQuery 的 ASP.NET 回发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我有一个 ASP.NET 按钮,但最近,我将其替换为标准 HTML 按钮......我需要做的是回发到 ASP.NET 页面并确保调用了一个方法.

                I have a ASP.NET button but recently, I replaced it with a standard HTML button ... What I need to do is a postback to an ASP.NET page and ensure a method is called.

                上一个按钮是一个 ASP.NET 按钮,所以我有这个事件:

                The previous button was an ASP.NET button, so I had this event:

                Protected Sub btnCancelar_Click(ByVal sender As Object, ByVal e As System.EventArgs) 
                    UtilTMP.DisposeObjects()
                    Server.Transfer("~Forms	est.aspx", True)
                End 
                

                但是我使用的是带有 JavaScript ALERT 的按钮,并且我最近更改为 jQuery UI 模态对话框,但它没有等我回答问题..回发立即发生...所以我决定更改为一个标准的 HTML 按钮……但我需要回发到 ASP.NET 页面并调用类似的方法.

                But I was using a button with a JavaScript ALERT and I recently changed to a jQuery UI Modal dialog but it doesn't wait for me to answer the question.. the postback happenes immediatly ... so I decided to change to a standard HTML button ... but I need to postback to the ASP.NET page and call a method like.

                如果我只是回发它不会调用清理

                If I just postback it won't call the cleanup

                Protected Sub Cleanup()
                    UtilTMP.DisposeObjects()
                    Server.Transfer("~Forms	est.aspx", True)
                End 
                

                推荐答案

                虽然您可以使用 JQuery 进行回发,但调用 Web 方法(页面中的 Web 服务)可能会更好.调用也可能更快,因为您没有发布整个页面 ViewState.

                While you can do Postbacks with JQuery, it might be better to call a web method (web service that is in your page). The call could also be faster because you are not posting the entire page ViewState.

                这篇关于使用 jQuery 的 ASP.NET 回发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:返回上一个表单(c#) 下一篇:Javascript 类似 WinForms 的模态窗口

                相关文章

                1. <legend id='x3uEK'><style id='x3uEK'><dir id='x3uEK'><q id='x3uEK'></q></dir></style></legend>
                  <i id='x3uEK'><tr id='x3uEK'><dt id='x3uEK'><q id='x3uEK'><span id='x3uEK'><b id='x3uEK'><form id='x3uEK'><ins id='x3uEK'></ins><ul id='x3uEK'></ul><sub id='x3uEK'></sub></form><legend id='x3uEK'></legend><bdo id='x3uEK'><pre id='x3uEK'><center id='x3uEK'></center></pre></bdo></b><th id='x3uEK'></th></span></q></dt></tr></i><div id='x3uEK'><tfoot id='x3uEK'></tfoot><dl id='x3uEK'><fieldset id='x3uEK'></fieldset></dl></div>

                  <small id='x3uEK'></small><noframes id='x3uEK'>

                2. <tfoot id='x3uEK'></tfoot>

                    <bdo id='x3uEK'></bdo><ul id='x3uEK'></ul>