How To Include Javascript Into Web App Projet In Visual Studio
Mar 9, 2010how to include javascript file as project's resource for aspx.cs files under different folders to use?
View 2 Replieshow to include javascript file as project's resource for aspx.cs files under different folders to use?
View 2 RepliesI excluded a file(i.e . a WorkFlow file) from my project. The file got removed from the Solution Explorer, But it was in the directory where the project was saved. Can anyone please tell me how the file can be included again.
View 1 RepliesI am currently attempting to use Visual Studio 2010 'Publish' and MSDeploy functionality to handle my web deployment needs but have run into a roadblock with regards to customizing the package depending on my build configuration.
I develop in a 32bit environment but need to create a release package for a 64bit environment, so in the 'Release' configuration I have a post build event that copies the 64bit version of a third-party dll into the bin directory overwriting the 32bit version. When I use the 'Publish' functionality, even though the correct 64bit dll is being copied to the bin directory, it doesn't get included in the package.
Is there a way to get the 'Publish' to include files that have been copied into the bin directory during a post build event?
I need to a powerful JavaScript Intellisense for Visual Sudio 2008.
View 1 Repliesis it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project
my current project references
i have a very annoying iis problem
iis server stops working until app pool is recycled
i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem
Anyone know if I can maintain a VS 2008 (.net 3.5) project by using the VS 2010 IDE ?
View 1 RepliesI am using VS2010 and am working on an ASP.NET web application for .net 4.0.
I have created a file called StringUtilities.js and placed it in a subfolder of my application called Scripts.
The entire content of the file is listed here:
[Code]....
In one of my .aspx pages I have the following code:
[Code]....
On a button's "OnClientClick" (for example) I call the method encodeText() and everything works fine.
Today I added the method updateImage() which calls StringUtilities.js - updateAttribute() method, also added today.
If I open that unit in VS2010 and place a break point in the source code for the new method it turns white and says:
"The breakpoint will not currently be hit. No symbols have been loaded for this document.".
What gets even stranger (this is so hard to exaplain)....
Before today I did not have the method updateAttribute() in that .js file. So even though my source editor is showing all of my new source code changes, if I trace the previous method that did exists - htmlEncode(), the trace lines in the editor are highlighting where the lines "used" to be. which is near the top of that file as if my new code was not there.
It just sounds like there must be a different way of tracing javascript and the way I am doing it must not be it. I would have assumed it worked the same way I would trace my c# code.
I'm not sure if this is the correct forum for this but I was just wondering, I'm very new to Javascript programming and was wondering if their is a way to debug embedded JavaScript from Visual Studio, current and old versions?
View 7 RepliesThis is weird: When I try to debug ASP.NET web application, Visual Studio 2010 gives me this message "Script debugging of your application is disabled in Internet Explorer", but in my IE 7 (Internet Options --> Advanced), both "Disable Script Debugging" checkboxes are not checked.
what happens to my Visual Studio 2010?
When I try to set breakpoints in a JavaScript code file, I get the warning, "The breakpoint will not currently be hit. No symbols have been loaded for this document."
This is a fairly large project that was working normally under VS 2008. I just installed VS 2010 Pro Academic, and this is one of the new problems that have appeared. It's running under Win 7 64-bit, IE 8, and both of the IE "disable script debugging" options are turned off. Debugging is enabled in the web.config file. The JavaScript code in question is being executed normally, and inserting "debugger" in the code works as expected. While running under debugging, you can open the corresponding script document from the Solution Explorer, Script Documents, and insert breakpoints just fine. Attaching to the IE process (from the Debug menu) doesn't seem to make any difference.
Basically, everything I can think of looks normal, and yet I can't insert breakpoints into the original source code with VS 2010. The problem is reproducible on more than one JavaScript source file. I rebooted and consults The Great Google, all to no avail.
This is a real headache for development. Has anyone else discovered a fix for this?
(UPDATE: I spent a few hours and created a new project, and copied all of the files from the original to the new one. Now, I can set breakpoints n the new project, but still can't in the original. Something's different between the two, but it isn't clear what it could be.)
I'm running Visual Studio 2010 and IE9 and integrating with facebook and the facebook javascript code keeps resulting in exceptions... 'Error: '__flash__removeCallback' is undefined' which I can't do anything about.
Visual Studio keeps on telling me about each and every one of these exceptions every time I load the webpage that I'm working on which makes doing anything else difficult. I managed to switch off this behavior by enabling Silverlight debugging because apparently the debugger can only work with one of the other.
But now the browser keeps telling me about the same exceptions even though I've disabled script debugging and have de-selected 'Display a notification about every error'.
So how do I stop Visual Studio from telling me about numerous Javascript exceptions that I can't do anything about? Why can one not just configure it to, 'do not debug javascript from the following domains'?
where to find/download visual source safe plug in or visual source safe client for visual studio 2005 IDE?
I do not want to install visual source safe 2005 server.
How To Use JavaScript alert in Visual Studio 2005 in Button?
View 3 RepliesI used to have intellisense for Javascript, including JQuery, in Visual Web Developer 2008. However in 2010 it has disappeared. I have tried resetting my settings,
View 3 RepliesI copied a heap of javascript code to my page. I need to modify it. But the formatting is messed at the same time.The brace brackets don't match. Is the a good way to format it?
View 3 RepliesI have the following Sub Routine in my vb.net project which runs fine, but I constantly get build warnings:
[code]....
I think it would be best if I used the correct method. I have followed the instructions here - [URL] but it didn't make a great amount of sense.
[code]....
I am using VS 2008 for development of a web application and IE 7.
The website as usually has some java script and some server side code files (different layers).
For some reason when I start the application in the debug mode (by hitting F5), the break points in the JS are not hit. I get the usual error as no symbols are loaded. But the break points in the CS files in the layers are hit.
If I use (CTLR + F5) and then attach the IE process to debug, then I am able to hit the break points in the JS file. But in this scenario I cant debug the CS files (I presume this is the expected bahaviour).
EDIT: In the IE (properties dialog), 'disable debugging' are unchecked.
why in the F5 mode I am not able to hit the debug points. The same used to work in the different machine not sure what is wrong in this one.
How can I enable AutoIndenting for javascript code in Visual Studio 2008?
View 3 RepliesI'm using visual studio 2010 professional. I have my javascript files in a subdirectory called javascripts where I am holding all those files respectively. I am constantly having to remove (from the head section) the external javascript link. Then rename the javascript file in the javascript's folder, then re-add the external file back to the head section again. The reason of having to do this is somethimes when I am editing the js file, and then go to test it, the aspx page doesnt seem to see the code anymore. I've tried different browsers, closing the window and reopening, deleting temp int files, but all to no success. Has anyone else had this happen, is there a better workaround??if i open the js file in the browser, the functions are showing properly.
View 2 RepliesIs it possible to migrate the application which is in visual studio 2003 to visual studio 2010. provide me details about how to migrate.
View 2 RepliesI have a site in production developed in 2005 and i am planning to migrate to Visual studio 2010. Is there an easy way to do it?
View 1 RepliesIn my company we have setup an architecture where all applications share the js scripts to avoid duplicate files and update hundred of files everytime we do an update to the javascripts functions.
The issue that I am having is when I create a reference to those scripts from website A to a function in website B, the intellisense doesn't work. Copy the javascript to website B is not an option. What I am asking if there is a way to make the intellisense work when i am working with projects in this architecture.
I want to use a source control in VS2010, I know my best bet is TFS, but at the moment TFS(can't afford ). As i understand TFS is the new VSS_2005(can afford)Can VSS 2005 be use as a source control for VS 2010 solutions/projects?
View 2 RepliesI am using VS2008, SP1. I am unable to put breakpoints in my client side javascript code. Wherever I try to put the breakpoint, I am getting the message: "This is not a valid location to put the breakpoint". I have the js intellisense working fine. I also unchecked the two "Disable Debugging" checkboxes on IE. Due to this problem, I am unable to debug the js in VS 2008.
View 3 RepliesI have a JavaScript wrapper that I initialize on body load and set to a global variable.
Just after creating the object, I have full intellisense, but when referring to it later, from another function, the intellisense is lost. I presume this is because of dynamic typing:
var myWrapper;
function onload() {
myWrapper = new Wrapper(args);
myWrapper. //intellisense here.
}
function whatever() {
myWrapper. //intellisense lost.
}
I get round this by pretending to create the object again before my code, and then deleting the line:
function whatever() {
myWrapper = new Wrapper(); //pretend to create object again.
myWrapper. //intellisense returns!
}
Has the inference been improved in vs 2010, or is there any way to tell Javascript about the type of object I'm currently working on?