虽然我将文本分配给标签 (lblDoc),但对于
<%FillRpt(rpt, lblDoc.Text , UserId);%>
lblDoc.Text 是标签。
<asp:Label ID="lblDoc" runat="server" Text="Label" Visible="false"></asp:Label>
我更改了文本值,但它仍然返回“标签”。我怎样才能改变它?
案例如下:
$.ajax({
type: "POST",
url: "FileManager.aspx/foo",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
$("#<%=lblDoc.ClientID%>").text(selectedPath);
<%FillRpt(rpt, lblDoc.Text , UserId);%>
},
});