Showing posts with label assembly. Show all posts
Showing posts with label assembly. Show all posts

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!

Saturday, March 24, 2012

Configuration Error

I have uploaded my asp.net/ajaxenabled site up to a server and I get this error:

Parser Error Message:Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

I have checked my c:\windows\assembly folder and the web extensions are there as matching versions. Does anyone have any idea what I need to do to fix this?

thanks,

wdg

Does the server have AJAX extension installed? Microsoft set up AJAX so the files need to reside in the Global Assembly Cache, rather than just being placed in your application's /bin/ folder, which means you/system admin/web host need to install the extensions with the same installer you used to get access to them on your machine.