如何在CS中获得前台源中的值。大家指点下
<%@ Page Language= "C# " AutoEventWireup= "true " CodeFile= "RegisterPage.aspx.cs " Inherits= "RegisterPage " MasterPageFile = "~/MASTERPAGE/THEME1/RegisterPage.master "%>
<%@ Register Src= "UserControl/UserDate.ascx " TagName= "UserDate " TagPrefix= "uc2 " %>
<%@ Register Src= "USERCONTROL/WebUserControl.ascx " TagName= "WebUserControl " TagPrefix= "uc1 " %>
<asp:Content ID = "reg " ContentPlaceHolderID = "Registerpage " runat = "server " >
<script type = "text/javascript ">
function IsUsernameExist_callback(result)
{
var msg = document.getElementById( " <%#Message.ClientID%> ");
var bun = document.getElementById( " <%#OK.ClientID%> ");
var value = result.value;
if( value == '1 ' )
{
msg.innerHTML = '用户名未被注册! ';
msg.style.color= 'green ';
bun.disabled=false;
return true;
}
else
{
msg.innerHTML = '用户名已被注册! ';
msg.style.color= 'red ';
bun.disabled=true;
return false;
}