Modifying AjaxToolkit Source Code - asp.net

I have decided to make some changes in source code of ajaxFileUpload but i don know after making changes how can I use that.
How to build that and add the newly modified file to ajax library.
I have googled about this but dint get any solution.
I need help regarding this.

You can make the change in the .js file but make sure to recomplie and add the newly compiled .dll to your project. I think if you found a problem with browsers and know the problem, I'd suggest submitting the fix on Code Plex so it can be included for everyone vs. creating your own version. This way when a new version comes out you don't have to refix the problem before adding the new features.

Related

Why if you create a project from dotnetCLI doesnt add to source control?

Good day to all,
I´ll explain the "problem":
Imagine this case:
You open VisualStudio and then from the IDE I choose a template and then create it, when its created then you can without problem add that solution to the source control, there´s no problem like this:
But if you create the project template from the CLI, like this:
Then you cannot just add that solution to the source control, just simply does´nt add.
And due to this, it will display the typical error:
How I can fix this? I dont really find to much info pointing to this problem.
Thank you very much as usually.
Create a .gitignore file and add the .vs folder
Follow this similar question

Eclipse CSS Editor "Unknown property" after LESS nature mess

I'm done with googleing, I have to ask you folks...
I have a static web project (not JavaFX, thus no JavaFX toolkits!) in Eclipse Kepler. Now thats the messy road I went:
I created a .less file (for the first time)
Eclipse starts nagging with the "Do you want to add the LESS-project nature?"-popup
I clicked 'no' 10 times (pops up every time I start Eclipse)
then I clicked 'yes' to add the nature for making this stop (could not find ANY workaround for that #$%!+"* !)
Now I face this travesty:
The built in CSS-editor marks every trivial property as unknown. I have no clue how to fix this. I removed the less-nature and restored my old .project file too but the warnings (and even real errors) persist. I found out that rewriting the properties does not summon these warnings!
No, I won't rewrite ~6000 lines of css...
Please help. Please make it stop...
Sorry, found the solution (dumb as can be):
delete project (only!) in Eclipse
re-import project (which completely revalidates the project structure)
errors are gone...
Although this solved my problem, I feel uneasy about the fact that I could not find any possibility to do a complete re-validation without to delete and re-import my project. This is pretty nasty...
Right click project Configure->Remove LESS nature.

How to handle manual .swf caching?

I have a .swf in my rails application, located here:
/public/bin/editor/Editor.swf
It works fine, with one flaw, it gets cached often, so when we release a new version we are usually needing to tell the customers to clear their cache when they experience issues. My question is, how could I force the .swf to break cache when I release a new version? Something like:
/public/bin/editor/Editor.swf?timestamp=124158512132
I tried the above, but it did not seem to work. Any ideas would be great!
if you are using swfobject.js and want the item not be cached you need to add this, to the swf description:
swfobject.embedSWF( 'index.swf ?'+ new Date().getTime()...
of course you can change getTime() to the format you like.
Consider employing a versioning nomenclature to your editor. For example Editor_v1.01.005.swf
Here's a good format
app_major_minor_patch.swf
There are a number of benefits for doing this, and it will also solve your caching issue as well out of coincidence. :)

Support legacy code without access to compiled code behind

I have been asked to support a legacy app and I can't get access to the code behind files. I need to add a new feature that gets a list of items from the database on page_load, what way would adding an "in-page" page_load affect the compiled page_load?
What would be the best approach to take with this?
Since you mentioned that the legacy app has a Page_Load I assume it's .NET. This means that you should be able to decompile it using Reflector from Redgate to get the original source.
The source will likely be much less "pretty" than it was originally, but you should be able to get editable, compilable source out of it.
As for the question of an in-page page load and a compiled page load - You can try it... But I doubt it will work. You're really better off trying to get the source if you can.

How to regenerate service super-class in Flash Builder

So my problem is exactly the same as this guy's here: http://www.pubbs.net/201003/flex/61462-flexcoders-flash-builder-super-class-regeneration.html , but unfortunately, he got no answer.
After initially generating service classes connecting with PHP, I modified the PHP, added new call specifically.
While the Data/Services window successfully made notice of the changes, including new function in the list, the service super-class didn't change whatsoever. Which baffles me, since all super-classes in generated service and valueObject packages contain an annotation like this:
This is a generated class and is not intended for modification. To customize behavior
of this service wrapper you may modify the generated sub-class of this class - SomethingService.as.
And also the sub-class contains something about "regeneration of the super-class". So obviously, my goal is to force the mentioned regeneration. Any thoughts?
Just had a similar problem and it was driving me nuts. In my case, I am using an Eclipse plug-in for Team Foundation Server (a source control repository). In TFS, files are kept read-only until you check them out. Usually when something behind the scenes tries to modify a file that I have open, the plug-in will check out the file automatically and let it make the changes. For some reason, it didn't in this case.
So for me, all I had to do was check out the file and it would then be able to regenerate (which translates to making the file writable for the rest of you who might have the same issue).
I find that most code generators work once to generate classes, but do not work well updating them. It's really hard (I've worked on them).
Can you correct your classes by hand?

Resources