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

【ASP.net技巧】asp.net弹出窗口 返回值

刚刚 看到这么一个问题,这里也做个标记:http://topic.csdn.net/u/20080411/14/7b0f9da5-0413-4149-91e9-72c3df3018a3.html?seed=327251592
第一种方式:
//在Visual Studio 2008中调试通过
testPop_Page.aspx:主页面ASPX代码
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
   
    <script type="text/javascript" >
        function Pop()
        {
            var result = showModalDialog('testPop_downs.aspx', 'subpage', 'dialogWidth:800px;dialogHeight:600px;center:yes;help:no;resizable:yes;status:no'); //打开模态子窗体,并获取返回值
        document.getElementById("txt_id").value=result.split("'")[0]; //返回值分别赋值给相关文本框
        document.getElementById("txt_name").value=result.split("'")[1];
        document.getElementById("txt_pwd").value=result.split("'")[2];
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
 
            <asp:TextBox ID="txt_id" runat="server" ></asp:TextBox>
            <asp:TextBox ID="txt_name" runat="server" ></asp:TextBox>
            <asp:TextBox ID="txt_pwd" runat="server" ></asp:TextBox>
            <br />
            <asp:Button ID="btnPop" runat="server" Text="PoPWindows"  OnClientClick ="Pop()"
  &nbs


相关文档:

ASP.NET 2.0运行时简要分析

概述:
      本文基于ASP.NET 2.0的源代码,对ASP.NET 2.0运行时进行了简要的分析,希望能帮助你理解ASP.NET 2.0中请求处理过程及页面编译模型。
关键字:
     ASP.NET 2.0运行时,原理,请求处理,页面编译,ASP.NET 2.0 HTTP Runtime
主要类:
   &nb ......

iis7 asp ado oracle 乱码问题

环境:数据库 oracle 64bit 系统 win2008 64bit IIS7 在asp 网页中使用ado连接数据库 ODBC用的是Microsft ODBC for oracle
情况:在网页的查询语句中不含中文的可以,只要语句中含有中文就会返回错误结果。
如:select '一二三' from dual;这样的语句 返回回来就是???
还要说明的是oracle的字符集是AMERICAN_AMERICA.U ......

ASP.NET连接SQL和ACCESS的方法

SQL:
using System.Data.SqlClient;
string sql = "server=.;uid=sa;pwd=;database=tablename;";
ACCESS:
using System.Data.OleDb;
string sql = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=" + HttpRuntime.AppDomainAppPath + "//App_Data//db.mdb";
HttpRuntime.AppDomainAppPath 为根目录
......

ASP.NET中Cookie的操作

在学习过程中需要用到Cookie文件,在网上找了些相关的知识,学习了一部分,现记录如下:
(1)
HttpCookie myHttpCookie = new HttpCookie("MyWebSite");
DateTime myDateTime = System.DateTime.Now;
TimeSpan myTimeSpan = new TimeSpan();
if (rbHour.Checked == true)
{
    myTimeSpan = new Ti ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号