标签文本未在更新面板中更新,因为我在选择财务年度下拉列表时将其放在了更新面板中,并且我还为此下拉列表设置了自动回传= true. [英] label text is not updating in update panel as i have putted it in update panel while selecting a finacial year drop down and i have also set Auto postback= true for this drop down.

查看:51
本文介绍了标签文本未在更新面板中更新,因为我在选择财务年度下拉列表时将其放在了更新面板中,并且我还为此下拉列表设置了自动回传= true.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.aspx页面代码为=>

.aspx page code is=>

<tr>
                  <td width="790px" colspan="2" align="center">
                      <fieldset>
                          <legend>Children below 6 month age</legend>
                          <asp:UpdatePanel ID="UpdatePanel9" runat="server">
                              <ContentTemplate>
                                  <table align="center" border="0">
                                      <tr>
                                          <td align="center" style="font-size:13px; background-color:#2a4866;font-family: arial;color: #FFFFFF; font-weight:bold ">
                                              Select Financial Year:
                                          </td>
                                          <td align="center">
                                              <asp:DropDownList ID="ddlFinaYrAdmtCrtBlw" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlFinaYrAdmtCrtBlw_OnSelectedIndexChanged">
                                              </asp:DropDownList>
                                          </td>
                                      </tr>
                                  </table>
                                  <asp:Label ID="lblAdmissionNRCBelow" runat="server"></asp:Label>
                              </ContentTemplate>
                          </asp:UpdatePanel>
                      </fieldset>
                  </td>
              </tr>
              <tr>



和==>
后面的代码
lblAdmissionNRCBelow.Text =< img border =" 0"usemap ="''#imgMap9''src =''pieChartServer.aspx?Legends =("+ strHeading +")& Vals =("+ strValues +
)& Expload =(" + strExpload +
)& fontface =" +"verdana" +
& fontsize =" +"8" +
& LS =" +"10" +
& RS =" +"10" +
& TS =" +"10" +
& BS =" +"10" +
& pieRatio =" +"70" +
& bar3dratio =" +"8" +
& EoffSet =" +"35" +
& imgFormat =" + 0 +
& pieDia =" + 200 +''>";
Response.Write(mychartdata.getImageMap("imgMap9"));



and code behind =>

lblAdmissionNRCBelow.Text = "<img border=''0'' usemap=''#imgMap9'' src=''pieChartServer.aspx?Legends=(" + strHeading + ")&Vals=(" + strValues +
")&Expload=(" + strExpload +
")&fontface=" + "verdana" +
"&fontsize=" + "8" +
"&LS=" + "10" +
"&RS=" + "10" +
"&TS=" + "10" +
"&BS=" + "10" +
"&pieRatio=" + "70" +
"&bar3dratio=" + "8" +
"&EoffSet=" + "35" +
"&imgFormat=" + 0 +
"&pieDia=" + 200 + "''>";
Response.Write(mychartdata.getImageMap("imgMap9"));

推荐答案

</ContentTemplate>
                         </asp:UpdatePanel>


这篇关于标签文本未在更新面板中更新,因为我在选择财务年度下拉列表时将其放在了更新面板中,并且我还为此下拉列表设置了自动回传= true.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆