易截截图软件、单文件、免安装、纯绿色、仅160KB

在ASP.NET中,如何实现点击按钮弹出新窗口.刷新父窗口

 a.aspx
//显示某个订单的详细信息,通过一个模态对话框,而且屏幕会变颜色
        function ShowOrderDetails(orderId) {
            var url = "AddMenu.aspx?ID=" + orderId;
            var Width="700";
            var Height="600";
            murl=url;
            murl = encodeURI(murl);
 
           var vDialog=window.showModalDialog(murl,window,"dialogWidth:" + Width + "px;dialogHeight:" + Height + "px;center:yes;status:no;scroll:yes;help:no;");
window.location.href =window.location.href;  //刷新父窗口
        }
</script>
 <asp:TemplateField HeaderText="操作" >
                        <ItemTemplate>
                     
                          
                           <asp:ImageButton ID="ImageButtonEdit" ImageUrl="~/images/btn/修改.gif" OnClientClick="return confirm('确认要修改数据吗?');"  CommandArgument='<%# Eval("NODE_ID") %>' CommandName="Update" Width="15px" Height="15px" runat="server" />                      


相关文档:

asp.net常有小方法整理

  =================================<1>页面控制  ======================================
 <script type ="text/javascript"  src="../js/Calendar.js"charset ="gb2312"></script>
  <input ID="Text1" type="text" runat="server" onfocus="calendar()"/>
<!- ......

ASP.NET服务器控件使用之GridView

1         ASP.NET 服务器控件GridView使用
本教程不介绍服务器端控件的呈现,事件处理,状态等理论知识,只介绍服务器端控件的使用操作,如果您对服务器控件的知识感兴趣,请参阅《ASP.NET服务器控件高级编程》
阅读本文时最好和 文档 《ASP.NET服务器控件使用之Grid ......

asp.net几个是用函数


/// <summary>
  
/// 得到站点用户IP
  
/// </summary>
  
/// <returns></returns>
  
public
 
static
 
string
 getUserIP()   
{   
    
retu ......

How postback works in ASP.NET

Introduction
In this article, we will take a closer look at how ASP.NET pages post back to themselves, and how to customize this feature in our web applications.
function __doPostBack(eventTarget, eventArgument)
One of the most important features of the ASP.NET environment is the ability to decla ......

Asp.net对文件夹和文件的操作类

using System;
using System.IO;
using System.Web;
namespace SEC
{
/**////
/// 对文件和文件夹的操作类
///
public class FileControl
{
public FileControl()
{
}
/**////
/// 在根目录下创建文件夹
///
///
要创建的文件路径
public void CreateFolder(string FolderPathName)
{ ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号