views:

331

answers:

1

Ajax Control Toolkit provides too many useful control and I've use them in a multi language application, nothings bad and everything's fine.

the question is that , How can I change the Ajax Control Toolkit Buttons Text, for example in Confirm Button Extender and vice versa .

any help appreciated

+1  A: 

I misunderstood what you were after. To customize the button text, you have to create your own modal and instruct the extender to use it with the DisplayModalPopupID property, like this:

 <asp:Button ID="btnCancel" ruat="server" Text="Cancel With Confirm" />

 <cc1:ConfirmButtonExtender ID="ConfirmButtonExtender" runat="server" 
      TargetControlID="btnCancel"
      OnClientCancel="cancelClick"
      DisplayModalPopupID="MyCustomModal" />

 <cc1:ModalPopupExtender ID="MyCustomModal" runat="server" 
      TargetControlID="btnCancel" 
      PopupControlID="PNL" 
      OkControlID="ButtonOk" 
      CancelControlID="ButtonCancel" 
      BackgroundCssClass="modalBackground" />
 <asp:Panel ID="PNL" runat="server">
      Are you sure you want to cancel?
      <br /><br />
      <div class="buttons">
         <asp:Button ID="ButtonOk" runat="server" Text="Yes (Custom!)" />
         <asp:Button ID="ButtonCancel" runat="server" Text="No (Custom!)" />
      </div>
 </asp:Panel>
Nick Craver
dear nick, wit ConfirmText you canjust sow a messageto USer and finally user select from provided button (Ok- Cancel - Yes - No) etcI want to changethe buttons text not confirmtextthatis currently available
Nasser Hadjloo
As long as no answer posted for this question, I mark this as answer,but this isnot my real answer ,any help appriciate
Nasser Hadjloo