Monday, March 26, 2012

ConfirmButtonExtender

i put

<

addnamespace="AtlasControlToolkit"assembly="AtlasControlToolkit"tagPrefix="atlas" />in web.config

then confirmButtonExtender in GridView TemplateField no alert window showed ?

if i put extender outside gridview i get id error!

<

asp:TemplateFieldShowHeader="False"><ItemTemplate><asp:ImageButtonID="ImageButtonDelete"runat="server"CausesValidation="false"CommandName="ImageButtonDelete"ImageUrl="~/images/trashcan_empty.png"OnClick="ImageButtonDelete_Click"Visible="false"/><atlas:ConfirmButtonExtenderID="ConfirmButtonExtender1"runat="server"><atlas:ConfirmButtonPropertiesConfirmText="Confirm"TargetControlID="ImageButtonDelete"/></atlas:ConfirmButtonExtender></ItemTemplate><ItemStyleBackColor="White"BorderColor="#5D7B9D"Width="15px"/></asp:TemplateField>

Hi Torna -

A few quick thoughts:

1) I think you'll need to register a different prefix than "atlas" since Atlas already uses that one, which could be causing problems.

2) Make sure you've got an Atlas ScriptManager on the page

Your code looks fine so I suspect one of those two issues is the problem.

Thanks,

Shawn


I fond the error i had put the deletebutton in visible=false this did the skriptmanager missing the targetid of the delete button! Im thinking maybe to set the column vidth to 0 ? maybe i donot have to hide the deletebutton when i have a confirm that a can put row info in. still a deletebutton in all rows looks abit messy. meybe next time i use a HoverMenuExtenderBig Smile [:D]


Ah - I see. Thanks for reporting back!

No comments:

Post a Comment