Ajax Control Toolkit in .NET - asp.net

I need some help on ajax control toolkit in asp.net Visual Studio 2010 .net frame work
version 4.
We have hosted on interland server and it does not support ajax control toolkit .DLL as it is a third party dll.
Could anybody give us an workaround on this, can we download the source code for this toolkit which is in javascript and can we include this .js files in our aspx pages so we can have ajax control toolkit for our website.
Any examples would be helpful if we can try this workaround working.
thanks

Just copy the DLL to your Bin folder.

If you're deploying an ASP.net app, and your project has a reference to the relevant assembly, the dll should be copied to your .\bin folder as part of the publish process, just like the compiled assemblies that comprise your app.

Related

How to develop an aspx webpart for my SharePoint?

I´ve got a question!
I want to develop an aspx site for an sharepoint. I have Visual Studio and i cant find a way to develop an aspx page, only an asp.net core solution. Is this the same? Or what do i have to do, to get myself an aspx webpart i can upload to my sharepoint site?
Thanks for your help!
Aspx files are part of ASP.NET Web Application (.NET Framework) - Web Forms project type. So you must install .NetFramework if it doesn't show in project templates list.
Here is how to create a project.
Here is how to install .NetFramework in Visual Studio.

Web Deployment Project on VS2019

I've created a blank solution in VS2019. Using the option "add existing web site" I've added a website to the solution which was built in VS2010. Normally, after that, I was used to add a Web Deployment Project to the solution, to compile all the code in one dll, and upload the result to the web server.
But this kind of project does not seem to be compatible anymore with the newer versions of VS.
Is there any way to get a similar compiled result in VS2019?
I found an alternative.
It is to convert the [asp.net web site] to an [asp.net application]. The asp.net application has a publish feature, which can be used to generate an output folder with the compiled application inside, with the aspx pages and a single dll.
I suggest to follow the steps described here to convert the asp.net web site to asp.net application:
https://learn.microsoft.com/en-us/previous-versions/aa983476(v=vs.140)

How to publish the website with DevExpress in asp.net

I created an asp.net web site using DevExpress in Visual studio 2013. Now I want to publish the website in server. I copy the necessary dll in bin folder and delete all DevExpress in web.config. But give me below error in server:
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
Help me please.
Refer this - How to deploy ASP.NET 4.0 Web application with DevExpress DLLs?
Devexpress supports the standard delivery model and it is possible to
simply include the DLL files in the Bin folder of the distributed
application:
Redistribution and Deployment
You can find the list of required and optional libraries for each
DevExpress package in the following link:
Deployment - General Information
Note: you do not require to delete devexpress reference from config file if they are correct with you DevExpress version. If not then delete all references and then all correct references. Use Copy local flag to reference from the bin folder then may be it will solve your issue.
References:
Setup Project Deployment of an ASP.NET Application
Hope this help.. If it does not work then explain the issue in brief.

How to get the Silverlight XAP copied to the clientbin on build

I am just getting started with Silverlight and have recently added a Silverlight project to an established solution. In this particular scenario my solution included an existing ASP.NET web site (not application) which Visual Studio kindly offered to integrated my Silverlight application into, which I accepted.
So everything is fine and all, and the Silverlight XAP is being copied to the web site's ClientBin directory. Now I have decided to start a new ASP.NET MVC web application that will eventually replace the older (non-MVC) web site. But I cannot for the life of me figure out what Visual Studio modified to get the XAP to automatically appear in the web site's ClientBin on build, so that I can reproduce that on my MVC site.
So my question is essentially, what are the manually steps for getting Visual Studio to autocopy a Silverlight application's XAP to a newly added ASP.NET MVC web application?
You can do this through the properties of your web project. The Silverlight tools for visual studio add a new tab to the properties of web projects named "Silverlight Links".
Add a reference to your Silverlight project here, with the folder where you want it, and visual studio will make the copy for you.
The copying of the XAP to the ClientBin is a MSBuild task. If you're using a standard ASP.NET project template it can be found under the Silverlight Link section.
For everything else you might be able to figure out the name of the MSBuild task and add it to your ASP.NET MVC project. The easier solution would probably be to use a custom post-build event on the APS.NET project to copy the file.
There is no "magic" happening, oter than copying the XAP file from the BIN directory of your Silverlight project to the ClientBin of your web application. It doesn't even have to live inside the ClientBin directory - you can copy it to any directory, or the root of your site.
Update: The recently released Beta 1 of ASP.NET MVC includes support for Silverlight projects, so you can link it to your ASP.NET MVC application the same way you do for regular ASP.NET applications.
Go to the property pages of your Silverlight application, Choose Build Events Tab, Enter following line in Post-Build events command line:
copy $(TargetDir)*.xap $(SolutionDir)<youar web solution folder name such as app.web>\ClientBin
Now onwards, on each successful build, the xap file will be copied automatically.
This is a somewhat older post so it probably has changed... in my Visual Studio under the web project there is a tab called "Silverlight Applications". There is an add button there for existing projects that you import into the solution and you can add them and choose to place the xap in the ClientBin or anywhere else. Not sure if you have to have the SDK installed to have this tab. I have it installed so you may have to. I don't do MVC, so it may be different for MVC projects, I don't know.

Getting started with AJAX with ASP.NET 3.5, what do I need on the server

I have the .net framework 3.5 on my development machine and also am using the AJAX toolkit in my code. In order to publish this code to a server for my users, do I need anything on the server in order for my AJAX code to operate correctly?
You need only the .NET framework 3.5.
If you publish your project, the AJAX Toolkit used will be also copied over. If you only reference the AJAX Toolkit via file, not via project, then be sure you set the dll to "Copy always" in the properties window.
.NET 3.5 needs to be installed on the server. The Ajax Control Toolkit assembly does not need to be actually loaded on the server, but needs to be at least in the Bin Folder, with references in the web.config.
Of course, you will need to install the .NET Framework on your server. If you are using the AJAX Toolkit you will want to copy over the AjaxControlToolkit.dll to the bin folder of your web application on your server.
Also want to make sure that you set your web application to use .NET Framework 2.0. In IIS you go to the properties of your web site, then the ASP.NET tab and make sure ASP.NET version is set to 2.0.

Resources