猜猜我得到了这个代码,
namespace nn.ss.tt
{
public partial class abc: UserControl
{
private string _MyProperty;
public string MyProperty
{
get { return _MyProperty; }
set { _MyProperty = value; }
}
}
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindData();
}
}
}
现在我如何在这里设置它的值,
<script type="text/javascript">
$(document).ready(function () {
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_initializeRequest(InitializeRequest);
prm.add_endRequest(EndRequest);
});
function InitializeRequest(sender, args) {
}
function EndRequest(sender, args)
{
var hidField= $("[id$=_hidField]").val();
// HERE I WANT TO set value of MY PROPERTY
}
先生,我该怎么做?