i have a button where i need the a confirm popup.
this is like an agreement for the user to click Yes or NO.
there is data in the white panel and two buttons below.
the data is huge so i will be requiring scroll bars in the panel where the data is.
this was very easy to do in winform applications but now i am working with webapplications. i normally show the popup confirm using javascript or Ajax..
here is that code in AJAX:
<p style="background-color: #D0D8E8; text-align: right; padding-right: 20px;">
<asp:Button class="buttonStyle" ID="Update1" runat="server" Text="Update"
onclick="Update1_Click" CausesValidation="true" />
<cc1:ConfirmButtonExtender ID="Update1_ConfirmButtonExtender" runat="server"
ConfirmText="Are you sure you want to make changes in config file? Please restart 'Copiun Backup Server' service for changes to take effect."
Enabled="True" TargetControlID="Update1">
</cc1:ConfirmButtonExtender>
</p>
this is what i do in javascript:
<script type="text/javascript">
function OnConfirm() {
if (confirm("Are you sure you want to reset?")) {
return true;
} else {
return false;
}
}
Please help.. thanks