我在 document.ready 函数中设置了一些隐藏字段值在页面生命周期的哪个事件中我无法访问该隐藏字段的值这里是代码
$("document").ready(function () {
StatdIds = $("input[id$=hdnSelectedStateIDs]").val();
$("input[id$=hdnSupplierID]").val($("input[id$=hdnSupplierID]").val());
$("input[id$=hdnShippinRateID]").val($("input[id$=hdnShippingId]").val());
$("body").click(function (e) {
if (e.target.id != 'dvNewPostSettings-ddlFilter') {
$("#dvNewPostSettings-dvSearchFilterActions").hide();
}
});
});
和页面代码是
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim supplierID As Integer = hdnSupplierID.Value
Dim ShippingRateID As Integer = hdnShippinRateID.Value
End Sub