Posts

Showing posts from November, 2013

Open/Close or Show/Hide Ajax Modalpopupextender using JavaScript in asp.net

Introduction :   Here I will explain how to show/hide Ajax modalpopupextender using JavaScript in asp.net. Description :   In previous posts I explained some of the samples relating to  Ajax modalpopupextender . During the time whenever I worked on to prepare samples for  Ajax modalpopupextender  I got requirement like close the modalpopupextender  whenever I click on close icon for that more check this example  Ajax Confirmation box . Generally in Ajax modalpopupextender we will set two properties  TargetControlID  and  CancelControlID like Ex :  TargetControlID ="btnShowPopup"   CancelControlID ="btnNo" Here whenever we click on  btnShowPopup  button control modalpopupextender will show popup and when we click on  btnNo  button it will close the popup. Now I want to open popup and close popup whenever click on other button controls also in that case what we can do? By using JavaScript  $fi...

Ajax the operation could not be completed invalid formatetc structure in visual studio

Image
Introduction :  Here I will explain how to solve the problem  the operation could not be completed invalid formatetc structure   during the time of working with  Ajax AsyncFileUpload  control in  asp.net. Description : In previous post I explained  Ajax AsyncFileUpload control example in asp.net . During working with that one suddenly I got error like “ the operation could not be completed invalid formatetc structure ”.   Actually we will get this problem in many situations based on application. To solve this problem we have different ways. Please check below methods to solve the problem. Method1 : First Right click on your project and select “ Clean ” Once your project cleaned successfully then right click on your project and select “ Rebuild ” or “ Build ” and try it will solve your problem. Method2 : If you are using old version of Ajax control toolkit remove all the references and try to use latest one. ...

Clear ajax asyncfileupload textbox after file upload in asp.net

Image
Introduction : Here I will explain how to clear the Ajax AsyncFileUpload control after upload files to folder or server using asp.net Description :  In previous article I explained  Ajax AsyncFileUpload example to upload files using asp.net .   During work with  Ajax AsyncFileUpload  control even after upload files to folder still that is containing the path of the file which is uploaded to folder. To clear the path of file from  Ajax AsyncFileUpload  we need to write some custom code for that check the below code. Design your aspx page will be likes this <% @   Register   Assembly ="AjaxControlToolkit"   Namespace ="AjaxControlToolkit"   TagPrefix ="ajax"   %> < html   xmlns ="http://www.w3.org/1999/xhtml"> < head   id ="Head1"   runat ="server"> < title > Clear Text in Async FileUpload Control after file upload </ title > < script   type ="text/javascr...