<id="Paragraph1"><%= GetContentFillerText()%></p>
    
<br />
    
<asp:LinkButton ID="LinkButton1" runat="server" Text="Click here to change the paragraph style"></asp:LinkButton>

    
<script type="text/javascript">
    
var styleToSelect;
    
function onOk() {
        $get('Paragraph1').className 
= styleToSelect;
    }

    
</script>

    
<asp:Panel ID="Panel1" runat="server" CssClass="modalPopup" style="display:none">
        
<p>Choose the paragraph style you would like:</p>
        
<><input type="radio" name="Radio" id="RadioA" onclick="styleToSelect = 'sampleStyleA';" checked="checked" /><label for="RadioA" class="sampleStyleA" style="padding:3px;">Sample paragraph text</label></p>
        
<><input type="radio" name="Radio" id="RadioB" onclick="styleToSelect = 'sampleStyleB';" /><label for="RadioB" class="sampleStyleB" style="padding:3px;">Sample paragraph text</label></p>
        
<><input type="radio" name="Radio" id="RadioC" onclick="styleToSelect = 'sampleStyleC';" /><label for="RadioC" class="sampleStyleC" style="padding:3px;">Sample paragraph text</label></p>
        
<><input type="radio" name="Radio" id="RadioD" onclick="styleToSelect = 'sampleStyleD';" /><label for="RadioD" class="sampleStyleD" style="padding:3px;">Sample paragraph text</label></p>
        
<style="text-align:center;">
        
<asp:Button ID="OkButton" runat="server" Text="OK"></asp:Button>
        
<asp:Button ID="CancelButton" runat="server" Text="Cancel"></asp:Button>
        
</p>
    
</asp:Panel>

    
<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender" runat="server" TargetControlID="LinkButton1" PopupControlID="Panel1" BackgroundCssClass="modalBackground" DropShadow="true" OkControlID="OkButton" OnOkScript="onOk()" CancelControlID="CancelButton" />