Javascript JQuery消息确认asp.net

Javascript JQuery消息确认asp.net,javascript,c#,jquery,asp.net,Javascript,C#,Jquery,Asp.net,我对此代码有问题: <script type="text/javascript"> $(document).ready(function () { $("a.show").click(function () { $("#Box").slideDown(500); //if i return false the message conformation show and stopped but i have

我对此代码有问题:

<script type="text/javascript">
    $(document).ready(function () {

        $("a.show").click(function () {

          $("#Box").slideDown(500);
          //if i return false the message conformation show and stopped but i have
          //problem the Query String this not passing in the URL
          // and if i return true the message show and hide quickly but
          //the QueryString passing in the URL    
        });
    });

</script>

注意:在我的解决方案中,我对删除进行了消息确认,但我将设计我的消息框,我将执行两个按钮Yes,NO如果客户端单击Yes,则删除代码在此代码中执行,我有查询字符串:

因此,当用户单击链接时,您希望向服务器发送一些http请求,但你不想离开页面?你只是想操纵页面上的对象

我想你在找这个:

下面是一个例子:


显然,您需要更改URL。但是,当用户单击链接时,会向url发出http请求。收到响应后,将执行“完成”功能,并显示框。

您能告诉我们问题出在哪里吗?不清楚的是,当我返回false时,查询字符串不会传入URL,我的类css中显示的消息框被隐藏。如果我返回true,则查询会传入URL,但我的消息会快速显示和隐藏!!
$(document).ready(function () {
    $("a.show").click(function () {

        $.ajax({
            url: ""
        }).done(function() {
              $("#Box").slideDown(500);
        });

        return false;
    });
});