将Javascript与ASP.NET子例程集成 [英] Integrating Javascript with ASP.NET subroutine
本文介绍了将Javascript与ASP.NET子例程集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从Javascript调用子例程(ASP.NET)后面的代码?
实际上我有一个Datagrid,我想在最终删除/修改记录之前向用户寻求确认.
menonagro
How can I call a code behind sub routine (ASP.NET) from Javascript?
Actually I have a Datagrid and I would like to seek confirmation from the user before finally deleting/ modifying a record.
menonagro
推荐答案
关注以下任一链接,希望对您有所帮助.
http://weblogs.asp.net/scottgu/archive/2006/01/02/434362.aspx [ ^ ]
带有确认的GridView删除 [ ASP中的按钮JavaScript提示:用于删除列的DataGrid [
Follow any one of the following links, hope it will help you.
http://weblogs.asp.net/scottgu/archive/2006/01/02/434362.aspx[^]
GridView Delete, with Confirmation[^]
JavaScript Prompts for Buttons in ASP:DataGrid for Delete Column[^]
将函数背后的代码调用至Javascript您需要使用AJAX
通过以下链接
点击我 [
To call a code behind function to Javascript you need to use AJAX
go through the following link
Click me[^]
Hope it helps
此链接可以解决您的问题
http://www.dotnetjohn.com/articles.aspx?articleid=68 [ ^ ]
this link may solve your problem
http://www.dotnetjohn.com/articles.aspx?articleid=68[^]
这篇关于将Javascript与ASP.NET子例程集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文