I would like to do some refactoring and move the long code I use for Modal dialog to external ASCX Control. Teh parfect would be to be able to declare the control this way:
<zikbay:dialog Title="My Title" .. >
<template>
my HTML here
</template>
</zikbay:dialog>
I think this should be possible, to allow clean coding... Please advise. This is my existing code for modal:
<%-- ................ModalPopup.............................. --%>
<div id="invisiblea" runat="server"></div><ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender2" runat="server"
DynamicServicePath="" Enabled="True" DropShadow="true" TargetControlID="HyperLink2" PopupControlID="AdStatusPanel"
BackgroundCssClass="overlay" OkControlID="ResponseSubmitButton" >
</ajaxToolkit:ModalPopupExtender>
<div class="EmailStatus"><asp:Panel ID="AdStatusPanel" runat="server" BackColor="#FFFFFF" BorderColor="#999999" style="display:none;">
<div class="RFModal">
<div class="RFModalTitle">How can I get one?</div>
</div>
<div class="RFModal-Content">
<div class="EmailNotice">
<p>
Zikbay.com has introduced a great new feature called "Free User Website/Store".
<br /><br />
If you already posted ad(s) on zikbay.com, your store is available and can be viewed at username.zikbay.com. Just replace username in the link with the actual name you have choosed to register. Otherwise just follow those 2 easy steps:
<br /><br />
1.
<a id="A1" href="~/register.aspx" runat="server">Register</a> - <a id="A2" href="~/Help/registering.aspx" runat="server">show me how</a><br />
2.
<a id="A3" href="~/ad.aspx" runat="server">Post Ad(s)</a> - <a id="A4" href="~/Help/postingad.aspx" runat="server">show me how</a><br />
</p>
<p>
Your website link is also visible under "My Ads & Profile" tab. Your website is indexed by popular search engines including Google, Yahoo and MSN. People from around the world will be able to find your site and products easily.
</p>
<p>We will be adding new features to your site continuously. Soon you will be able to change logo, background and fully customize it. Please stay tuned. Please check <a href="http://community.zikbay.com/blogs/features/default.aspx">New Features</a> blog for the latest news.
</p>
</div>
<p>
<asp:ImageButton ID="ResponseSubmitButton" runat="server" SkinID="OKButton" />
</p>
</div></asp:Panel>
</div><%-- .............................................. --%>