AjaxControlToolkit | NET AJAX Control Toolkit is a classic set | Model View Controller library
kandi X-RAY | AjaxControlToolkit Summary
kandi X-RAY | AjaxControlToolkit Summary
The ASP.NET AJAX Control Toolkit is a classic set of ASP.NET WebForms extensions.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Creates a new Environment .
- Html reporter .
- Finds paragraphs in the current paragraph .
- Parse the response of the server
- parses number
- Defers scheduler .
- Submit the form
- Console reporter .
- The default fitty .
- Either throws or throws an Error .
AjaxControlToolkit Key Features
AjaxControlToolkit Examples and Code Snippets
Community Discussions
Trending Discussions on AjaxControlToolkit
QUESTION
I am uploading my pdf file by using ajax file upload and I'm using vs 2019 (asp.net,vb). I want to change the display of ajax upload format.<< example: Drop File here → Drop PDF File.>>
Here is my asp source.
...ANSWER
Answered 2021-Dec-17 at 06:00You can change it this way:
QUESTION
There are many reports of this error but can't seem to make it go away. I am making a simple webform project and trying to use the AjaxFileUpload.
When uploading a file I get an error. In my ASPX page.
...ANSWER
Answered 2021-May-03 at 15:20Ok, after changing browsers to Chrome I was able to see more of the error. It was for file type not allowed. Strange, but I defined the filetypes in my config file and it is working now.
QUESTION
I'm working in a solution created in ASP.NET - Framework 3.5.
This solution has a WebForm (child from a Site.master
) with contains multiple UpdatePanels
, TabContainer
and a single AsyncFileUpload
control.
Locally (i.e. in developer enviroment), the WebForm loads and works successfully, but, once published the WebForm in an different server - when a file is selected (by using the AsyncFileUpload
control), the following message shows:
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "AjaxControlToolkit.Properties.Resources.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.
In my local developer enviroment, this error does not occur and the file can be selected and processed as expected.
While searching for the causes of this error, most of the suggestions are:
- Add an
ScriptManager
orToolkitScriptManager
- source. When tried this option (by adding any of those ScriptManager controls), the WebForm is loaded blank and in the output window - shown in runtime - says: only a single ScriptManager can be added in the page - this is correct, since theToolkitScriptManager
control is already in the Site.master. - Check if
AjaxControlToolkit.dll
is on thebin
folder. Checked also and this dll is in thebin
folder.
I also tried:
- Check if
AjaxControlToolkit.dll
andAjaxControlToolkit.resources.dll
is on the bin folder. Those dlls are in thebin
folder. - Change
AsyncFileUpload
forFileUpload
, but, since this WebForm already usesUpdatePanels
, the FileUpload wont work for security reasons - as I tested and the results of Google says so (like this answer, for example). - I tried also using only FileUpload and Triggers, but the WebForm contains various UpdatePanels and each time I added the
Trigger
andPostBackTrigger
orAsyncPostBackTrigger
. For this reason, I gave up and ended using theAsyncFileUpload
control.
What else can be done for check the missing resources and/or the cause of this error and fix this issue?
...ANSWER
Answered 2020-Dec-22 at 06:28First, you don't want to "place" anything at all in the bin folder. For one, if you do a from the menu build->clean solution then all of the bin files and folders are removed from bin. So, your project needs to work, compile and run without anything in the bin folder WHEN you do a compile, or MORE important when you do a rebuild, and super more important of course is when you create a deploy, then what's in the bin folder is re-created anyway. So any idea of placing .dll's in the bin folder is not only a bad idea, but it fruitless and should not be done EVER anyway.
Script manager on the master page. This is good and recommend so you don't have to mess around doing this page by page.
However, you should tell the script manager what scripts to combine and load.(but different issue - since that should not effect the ajax tool kit.
Where you have to watch is the web.config file. You need to include the ajax tool kit assemblies you are using.
Say like this:
And then in the pages section, you should have/see this:
QUESTION
ASP.NET 4.7.2 Web Forms c# VS 2019
I am trying to use a modalpopupextender
to prompt for new data for foreign key fields. Like the form itself, the MPE is built on the fly in code -- in this case the click handler for the hidden button that the Javascript fires off to build and show the MPE.
I read every single article on SO and the ASP forums and tried everything I saw there. No joy. I get the popup perfectly. Hitting OK closes the popup, but never fires the OK Event.
Here is the code:
...ANSWER
Answered 2020-Dec-23 at 06:49You can't add a server side button or inject a server side button into the page DOM.
When you drag a asp.net button onto the form, BOTH the "mypage.cs" and mypage.desinger.cs ARE updated. The wire up of the button occurs at design time, and you would have to modify mypage.desinger.cs ALSO and ADD a button event stub.
So you can't do this.
A compromise would be to also add some js and have that HTML button execute a .click() method of a hidden asp.net button you drop into that page (that would give you the post back, and the running behind of a separate button event code stub.
This event resolution occurs at compile time - not at page render time. You have to drop that button onto the page.
I suppose you could adopt a standard that you always place right below that "div" on the page the button (hidden with style=none. And then as noted, have your injected code along with some js execute a click on the hidden button. Or just have the js button code execute a __doPostback("some value") and pick this up in the page on-load event, and then call the routine (function) from on-page load event.
I think better would be to use a jQuery.UI dialog, as that dialog CAN say load + use another different web page into a “div” on the existing page. So you layout, make, and create the nice looking popup form as a separate web page. jQuery is able to remove the “form” and additonal tags out of that page load, and then inject it into the existing page. (that code would be rather hard to re-produce). so jQuery.UI is able to pop up that separate page. however, the buttons on that loaded page (into that div) of course can't really run any code behind in the current page. However, the buttons CAN run local js in the current page. Thus the actions of this injected page would be local to each page. But the popup would not be directly calling a code behind stub.
Now, to adopt jQuery.UI, then you also have to of course adopt jQuery. So that is two extra libraries you need. (but, jQuery you likely already have).
However, I suppose the whole point of using the ajax toolkit is to avoid jQuery.ui in the first place. To be fair, before jQuery.ui came along, that tool kit was REALLY impressive, and gave asp.net folks a REAL leg up on the competition. (and it tends to be MUCH less wiring up then say using jQuery.UI
So the AjaxToolkit in its heyday was impressive. Now, it of course showing its age, but I still use the kit, and this is especially the case for the AjaxFileUploader. And yes I do use the popups – even to this day. However, I find now that jQuery.UI dialogs are more flexible, and would be better in this case (because you want a on-the fly setup).
Also, having code behind buttons in even the jQuery.UI dialog, or in this case the ajax popup? Well, only the action button can run code behind. The cancel button of course will just dismiss the dialog. However, any button in the dialog that WILL run code behind? Well, that's ok, since you have a page post back, and it actually the page postback that BLOWS out the dialog anyway.
QUESTION
Calendar API->service accounts The calls works normally on local development machine (Visual studio) but hangs on production Web Server.
The call:
...ANSWER
Answered 2020-Dec-10 at 08:48Solved. Google Api works with IIS > 7 and stucks with IIS 7.
Simply upgrading the operating system solve the problem
QUESTION
I have an ASP.NET web app. It has a CMS web application which I want to run on IIS(through Visual Studio). It's .csproj
file lists the project URL as https://localhost:27251/
.
I created a site on IIS which sets the physical path to the CMS root folder. This contains a Default.aspx
and web.config
etc.
As it uses SSL I assigned the cert to the site in IIS.
When I run my application in Visual Studio, a Chrome window opens at https://localhost:27251/
but the following is loaded:
How do I go about resolving this?
This is my site binding:
I generated a bindings report with Jexus Manager. Here's the output:
...ANSWER
Answered 2020-Nov-07 at 18:06Delete .vs
folder if it exists. Go to Properties
. In Web
tab click Create Virtual Directory
button
QUESTION
im trying to upload multiple file and save all the files in a data table. the data table is storing only one file.
Help me to solve, im having error in the else part. dtupload is highlighted
Below is what I have tried:
...ANSWER
Answered 2020-Aug-24 at 06:37Well, you in ONE local routine create a table, add a row. And then the routine finishes and all the values, variables now go out of scope. Then that routine will be called again if a 2nd file is up-loaded, and you re-create the table. The variables in that routine (and in fact ANY routine - heck even if this was not asp.net go out of scope when the routine finishes.
At least with a desktop application you could declare the table at the form level (not sub routine level) and then you could add a new row to that temp table variable. But, with asp.net, then your web page is "state less". That means all variables ONLY have their state when code runs. The instant that code is finished, then all state in the code behind is lost.
But I am somewhat perplexed that you would think the data table would persist for each call? Perhaps you only want the var dtUpload to exist in the lifetime of each separate time that routine is called? But, then again you do nothing with the table????
So, for each file up-loaded? That routine gets called. So, lets assume 5 files are to be up-loaded.
Taking a really wild guess? I would assume we want that table/array to build up over time.
So, we need to ensure that the dtUpload table can "live" beyond a single page cycle and round trip. So, lets save/place/put/park the dtUpload table that can live "beyond" that one routine.
It really depends on what you want to do with that list after all is said and done?
Since the table is small? Then you could certainly in the forms on-load event create that table with no rows and shove it into say the Session(). Then as each file up-loads you could shove the file name into that array.
So, your code could work like this:
In on-load event only FIRST time, create the dtUpload table. And then shove/save it into the session().
So, our on-load would look like this:
QUESTION
When adding a Dataset to an .rdlc report using the Report Designer, Visual Studio crashes. VS leaves a failure.txt file with this error:
System.IO.FileNotFoundException: Could not load file or assembly Microsoft.Extensions.DependencyInjection.Abstractions, Version=3.1.0.0
The problem appeared when we upgraded the Intuit QuickBooks Online NuGet package (IppDotNetSdkForQuickBooksApiV3) from v8 to v14. This upgrade brought in a dozen or so other dependent packages, including the package causing the FileNotFoundException above.
We cannot add a dataset to a report nor get the properties of a dataset that’s already in the report. Obviously, this is a real show-stopper for developing reports. Does anyone have suggestions?
More Background:
This is a large web forms application that’s been in production for years. We’re using the latest version of Visual Studio, Community 2019 Version 16.6.3. We’re running under Windows 10 Pro with all updates. We see the same issue with two different developers on different PCs.
VS has the latest version of the RDLC Report Designer extension, v15.3.1. Our application is targeting .Net 4.7.2.
NuGet package “Microsoft.ReportingServices.ReportViewerControl.WebForms 150.1404.0” is installed.
NuGet package “Microsoft.Extensions.DependencyInjection.Abstractions v3.1.5” is installed. Note that the error complains about v3.1.1.0, and earlier version. I have a binding redirect in the web.config file to handle this (bindingRedirect oldVersion="0.0.0.0-3.1.5.0" newVersion="3.1.5.0").
There are about 70 other packages in this solution, and all are up to date.
Things I’ve Tried:
I’ve spent several days on this problem so far. There are several SO posts that list a similar error, but they don’t appear to apply in my case.
I’ve removed all NuGet packages, the solution’s “packages” folder, and any references in the config and csproj files. I’ve reset Windows and installed VS from scratch. I added back in only the NuGet packages that were required. No help.
If I delete the project’s bin and obj folders, relaunch VS, and rebuild the solution, VS doesn’t crash - yay! But updating a dataset doesn’t show the changes in the dataset’s fields, so it really doesn’t help. Also, if you exit and relaunch VS, the crashes are back.
I tried downgrading the offending package from v3.1.5 to the desired 3.1.0. My idea was that if a binding redirect isn’t needed, there’s no longer a problem. But when I tried this, other packages faulted with the same error, and on and on. I gave up, as there are just too many packages tied to Intuit’s IppDotNetSdkForQuickBooksApiV3.
I tried creating a new project with just an empty report and not much else. I added the Intuit package and all of its dependencies (including the offending one). Surprisingly, everything worked normally and I could add and edit datasets in the report. This makes me suspect there may be conflicts between packages, or some problem deeper in our solution. No clue as to what it might be, though.
I turned on FusionLog and reproduced the problem. I’ve attached the output of the failure.txt file.
===== Fusion Log =====
...ANSWER
Answered 2020-Jul-14 at 07:23Visual Studio Crashes When Adding a DataSet to a Report, Could not load file or assembly
For the issue, it is more related to your old project. Since the structure and the function from the new VS2019 asp net web project is quite different from the old one from the previous version, so when you migrate your project into VS2019, it might have some issues from time to time.
Or you could try the following suggestions:
1) first, try to add the related dll into the system global assembly caches.
Run CMD as Administrator and then input these:
QUESTION
I maintain a vb.net website. A button on a page shows an AjaxControlToolkit.dll ModalPopupExtender. When I click the button, the page reloads, but no popup appears.
My tests below cover the scenarios I can think of. Please help me diagnose and fix.
This ModalPopupExtender succeeded in the past. The error might have started when we moved to a new server, or when we implemented https, or a browser update, or at some other time since then.
Tried Chrome (latest) and Firefox.
I RDPed into the server and opened the page in Chrome there. ModalPopupExtender succeeded. Same Chrome version as my PC. So, unlikely to be a code issue.
A different page on the same site uses ModalPopupExtender successfully. So, unlikely to be local PC settings.
I put lines of test code immediately before and after ModalPopupExtender.Show(). Both succeed.
ANSWER
Answered 2020-Jul-29 at 04:39Aha - found it!
Solution
The ASPX/HTML referred to http://ajax.googleapis.com. Changing the references to https made ModalPopupExtender.Show() work correctly for me.
Explanation/Diagnosis (if you can clarify further, please comment)
When I checked the html served to my browser, I noticed it defined a javascript function called fn(). The definition for fn() didn't appear in the html served to the server's browser. After the https change, fn() no longer appears in the html I receive. The other page, where ModalPopupExtender worked, didn't have any reference to googleapis.com.
I assume that using http instead of https caused ajax.googleapis.com to provide fn() and that fn() in some way interfered with the normal operation of my ModalPopupExtender.
Here's the fn() definition: (function {var fn = function() {Sys.Extended.UI.ModalPopupBehavior.invokeViaServer('ctl00_cphContent_ModalPopupExtenderConfirm', true); Sys.Application.remove_load(fn);};Sys.Application.add_load(fn);})();
Note: the http also included another javascript function related to the ModalPopupExtender. But there was a similar one on the working page, and in the working version served to the server's browser, and in my fixed version. So, I assume that function is correct.
QUESTION
I have a very simple application. I am trying to upload the file using File upload control of ASP.net. Below is my entire .cs code and .aspx code:
...ANSWER
Answered 2020-Jul-23 at 00:35Use a update panel and wrap your controls inside it. Then add the button controlID as a trigger (be sure its a PostBackTrigger) to the update panel. To test be sure to put a break point on the uploadFile_Click event so you can step through and see the values..
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install AjaxControlToolkit
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page