ancora test x commesse
This commit is contained in:
@@ -7,7 +7,19 @@
|
||||
<%--<asp:UpdatePanel ID="upChart" runat="server" UpdateMode="Always" ChildrenAsTriggers="true" RenderMode="Block">
|
||||
<ContentTemplate>--%>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
var show01 = $("#<%: hfShow01.ClientID %>").val();
|
||||
var show02 = $("#<%: hfShow02.ClientID %>").val();
|
||||
|
||||
if (show01 == "false") {
|
||||
toggle01();
|
||||
}
|
||||
if (show02 == "false") {
|
||||
toggle02();
|
||||
}
|
||||
//console.log("show01: " + show01);
|
||||
//console.log("show02: " + show02);
|
||||
});
|
||||
function toggle01() {
|
||||
$("#div01").toggle();
|
||||
}
|
||||
@@ -15,16 +27,16 @@
|
||||
$("#div02").toggle();
|
||||
}
|
||||
</script>
|
||||
<asp:HiddenField runat="server" ID="hfShow01" Value="0" />
|
||||
<asp:HiddenField runat="server" ID="hfShow02" Value="0" />
|
||||
<asp:UpdatePanel ID="upChart" runat="server" UpdateMode="Always" ChildrenAsTriggers="true" RenderMode="Block">
|
||||
<ContentTemplate>
|
||||
<div class="row mt-5">
|
||||
<div class="col-3">
|
||||
<asp:LinkButton runat="server" ID="lbt01" CssClass="btn btn-sm btn-info btn-block" OnClientClick="toggle01()">temp</asp:LinkButton>
|
||||
<%--<button id="btn01" onclick="toggle01()">Show/Hide 1</button>--%>
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<asp:LinkButton runat="server" ID="lbt02" CssClass="btn btn-sm btn-info btn-block" OnClientClick="toggle02()">Data</asp:LinkButton>
|
||||
<%--<button id="btn02" onclick="toggle02()">Show/Hide 2</button>--%>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
|
||||
@@ -14,6 +14,8 @@ namespace GPW_Commesse
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
cmp_chart.dtRif = DateTime.Today;
|
||||
hfShow01.Value = "false";
|
||||
hfShow02.Value = "true";
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
Generated
+18
@@ -14,6 +14,24 @@ namespace GPW_Commesse
|
||||
public partial class test01
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// hfShow01 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfShow01;
|
||||
|
||||
/// <summary>
|
||||
/// hfShow02 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfShow02;
|
||||
|
||||
/// <summary>
|
||||
/// upChart control.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user