asp.net - Unable to access Public properties of usercontrol from aspx in vb -


i have googled , saw post of other users same problem. of post have same solution. followed steps , codes still can't solve problem. still i'm not able access declared properties.

i'm new vb.net, pardon if stupid question.

here code usercontrol

public class customusercontrols dim msg string dim innermsg string dim modal boolean  public property setmessage() string             return msg     end      set(value string)         msg = value     end set end property  public property setinnermsg() string             return innermsg     end      set(value string)         innermsg = value     end set end property  public property popupmodal() boolean             return modal     end     set(value boolean)         modal = value     end set end property end class 

this usercontrol design code:

<%@ control language="vb" autoeventwireup="false" codefile="showmessagecontrol.ascx.vb" inherits="usercontrols_showmessagecontrol" %> <%@ register assembly="ajaxcontroltoolkit" namespace="ajaxcontroltoolkit" tagprefix="asp" %>  <asp:button runat="server" id="dummyformessagebox" style="display:none;" /> <asp:modalpopupextender id="modalshowmessage" runat="server" targetcontrolid="dummyformessagebox"> </asp:modalpopupextender> <asp:panel runat="server" id="pnlshowmessage">     <div class="modal">         <div class="modal-header">             <i class="icon-info-sign"></i>`enter code here`             <h5>header</h5>         </div>         <div class="modal-body">             <asp:label runat="server" id="lblmessage" cssclass="text-info"></asp:label>             <asp:label runat="server" id="lblinnermessage"></asp:label>         </div>         <div class="modal-footer">             <asp:button runat="server" id="btnok" />         </div>     </div> </asp:panel> 

and in aspx file

<uc1:showmessagecontrol runat="server" id="showmessagecontrol" /> 

and want when im trying access usercontrol properties

showmessagecontrol.mustapperproperty 

but when showmessagecontrol , dot.. there no declared properties appearing


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -