添加这样一个页面validatecode.aspx
页面代码如下
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="validatecode.aspx.cs" Inherits="validatecode" %>
下面是.cs代码
下面是使用
使用页面添加如下js代码
function changeSource(){
document.getElementById("mmcode").src="validatecode.aspx"+'?'+Math.random();}
下面是页面具体使用
<p style ="text-align :center ">Verification Code:<asp:TextBox ID ="tboxcode"
runat ="server" Width="128px" ></asp:TextBox> <img src="ValidateCode.aspx" alt="验证码" name="yanzheng" width="73" height="23" id="mmcode" />
<a href="javascript:changeSource();">Clcik here to change </a></p>
250

被折叠的 条评论
为什么被折叠?



