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

asp.net模态窗口使用

1 如何在提交后防止弹出新窗口
2 在模态窗口中再次弹出模态窗口
3 模态窗口返回值
4 刷新父窗口
5 父窗口如何添加刷新脚本
主窗口弹出一个模态窗口,
var firstDiag = window.showModalDialog(url,window,"center:yes;dialogWidth:300px;dialogHeight:400px");
注:在url文件的head加入 <base target='_self'> 就可以添加完一条内容后,继续添加.而不会再弹出一个模态窗口.
在firstDiag窗口中再弹出一个模态窗口
function opendialogwin2(url)
    {
        var l;
        l=(window.screen.width-400)/2;
        var t;
        t=(window.screen.height-400)/2;
//        o dialogHeight: sHeight
//        o dialogLeft: sXpos
//        o dialogTop: sYpos
//        o dialogWidth: sWidth
//        o center: ( yes | no | 1 | 0 | on | off )
//        o dialogHide: ( yes | no | 1 | 0 | on | off )
//        o edge: ( sunken | raised )
//        o help: ( yes | no | 1 | 0 | on | off )
//        o resizable: ( yes | no | 1 | 0 | on | off )
//        o scroll: ( yes | no | 1 | 0 | on | off )
//        o status: ( yes | no | 1 | 0 | on | off )
        var secondDiag = window.showModalDialog(url,window,"center:yes;dialogWidth:50px;dialogHeight=50px;edge:raised");
        form1.txt_gzsj.value=secondDiag; //接收选择的值
    }
<form id="form1" runat="server">
    <div>
        <div id="retu"&g


相关文档:

asp.net 里的几个标签

<%%>是在呈现页面的过程中执行的服务器代码,包括方法,变量,一般是嵌入式服务器代码写法,不适合分离模式。
<%=%>是在呈现页面的过程中执行的服务器代码,主要是变量的值。
<%#%>可包括变量,表达式,或者调用方法返回的值,但必须的保证这段代码位于
绑定控件的内部,因为只有当绑定控件在执行D ......

ASP.NET【DataGridView】72计

DataGridView 72计
本文将介绍ASP.NET中DataGridView的用法,DataGridView在Asp.net中是常用的控件之一,掌握好DataGridView的特点和用法。将对程序的性能有大大的提高,同时也能加快我们项目的开发周期!
快速预览:
GridView无代码分页排序
GridView选中,编辑,取消,删除
GridView正反双向排序
GridView和下拉菜单 ......

Asp.Net MVC中身份认证和授权

MVC自带的ActionFilter
在Asp.Net WebForm的中要做到身份认证微软为我们提供了三种方式,其中最常用的就是我们的Form认证,需要配置相应的信息。例如下面的配置信息:
<authentication mode="Forms">
<forms loginUrl="Login.aspx" defaultUrl="Default.aspx" protection="All" />
</authenticati ......

asp.net的一个dbhelper类

using System;
using System.Collections;
using System.Collections.Specialized;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections.Generic;
using System.Text;
namespace Maticsoft.DBUtility
{
     /// <summary>
  ......

ASP.NET 檔案下載

//TransmitFile实现下载
    protected void Button1_Click(object sender, EventArgs e)
    {
        /*
        微软为Response对象提供了一个新的方法TransmitFile来解决使用Respo ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号