web方法中的警告框/在asp.net中返回消息 [英] alert box in web method / return with message in asp.net

查看:65
本文介绍了web方法中的警告框/在asp.net中返回消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net中调用web方法,从jquery ajax发布

并希望从web方法显示警告框或弹出窗口,然后window.location.href =#同时显示页面



点击按钮是来自jquery的框,点击,我称之为网络方式







怎么做

I call web method , in asp.net from jquery ajax post
and want to show alert box or popup from web method and then window.location.href = "#" to be at same page

click button is as box from jquery on which click, i call web method



how to do this

推荐答案

这里的Aspx代码:

Aspx code here :
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script src="js/jquery-1.9.0.min.js" type="text/javascript"></script>
<script type="text/javascript">


document )。ready( function (){
(document).ready(function () {


#btnCall)。点击( function (){
alert( eded);
("#btnCall").click(function () { alert("eded");


这篇关于web方法中的警告框/在asp.net中返回消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆