日期:2014-05-17  浏览次数:21002 次

帮忙看看,找不到变量
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="hyfrcTest.aspx.cs" Inherits="views_v40_hyfrc_hyfrcTest" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    
    <%
    String oldValue = Request.Params["oldValue"];
    String encryValue ="";

    if (oldValue != null)
    {
        encryValue = com.umpay.api.util.SignUtil.RSAEncrypt(oldValue);
    }
%>
</head>

<body>
    <form id="form1" action="hyfrcTest.aspx" runat="server">
    <div>
        <table>
            <tr>
                <td>请输入要加密的值:</td>
                <td><input type="text" name="oldValue" value="<% =Request.Params["oldValue"]%>"/></td>
                
            </tr>
            <tr>
                <td>加密后的值:</td>
                <td><textarea name="encryValue" cols="5" rows="2"><%= encryValue%> </textarea></td>
            </tr>
             <tr>
                  <th nowrap="nowrap"></th>
                  <td nowrap="nowrap"><div ><input type="submit" value="提交"  /></div></td>
                </tr>
        </table>
    </div>
    </form>
</body>
</html>


“/MerPay30”应用程序中的服务器错误。

编译错误

说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 

编译器错误消息: CS0103: 当前上下文中不存在名称“encryValue”

源错误:


行 29:             <tr>
行 30:                 <td>加密后的值:</td>
行 31:                 <td><textarea name="encryValue" c