visual-studio-2010

JavaScript is not able to convince the mouse to change its cursor

I have an ASP.NET page with an Infragistics webgrid on it. I handle the mouseover, mouseout events over the rows of the grid in a couple methods in Javascript to change the mouse cursor to the pointer and back to the default as they mouse over rows. I also toggle the color of the mouse-over'd row. When I run the page in debug locally, i...

XNA Game Studio 4.0 in VS2010 Express Installation Issues

I am try to get the 4.0 up and running in VS 2010, I downloaded, I installed, I launched VS2010 following the instructions at this link: http://msdn.microsoft.com/en-us/library/bb203893.aspx. I click file new project and look under C# and lo and behold there is nothing what-so-ever to do with XNA listed there. Can someone tell me how t...

Visual Studio 2010 Code Metrics at Function Level

I ran the code metrics calculation on a project of mine, and am seeing results for each namespace/class in the project. I'd like to see results at the function level. Even the filter still works at the class level. Is there any way to do this? For example, I want to see any functions where the cyclomatic complexity is over 10, or one...

Visual Studio 2010 - copying only one table definition from .mdf file to SQL Server

I'm wondering if is it possible to copy one table definition from .mdf file to create it in SQL Server and could it be done in Visual Studio 2010? It doesn't matter if I'll do it by some kind of wizard or retrieve a SQL query with a command like "Create Table...". I just want to have one table which I created in mdf file in database on ...

No intellisense on aspx.cs page?

For some reason, VS2010 refuses to do automatic code completion on ASPX.CS files. Any other file works just fine, but not these. I can do CTRL+SPACE, that works, but it should be automatic. Is there a setting to control this? ...

EntityDataModel and Association table

Hi All, I have an authors -> authorsbooks <- books in my database. I created an entity data model from this and I noticed that the association entity didn't show up in the model(I think it's inferred). I want to drag 2 EntityDataSources onto the designer, a gridview of authors, and when a user clicks to select an author another gridvie...

VS2010 Project Template + VMSDK

For the life of me, I can't get my DSL project to be exported as a template, other than the default ItemTemplate (as in Add New Item) Does anyone happen to have a summary of what has to be done to be able to create a new project? VSTemplate follows. Have tried adding the zip to the VSIX as Content (ProjTemplate) to no avail. <!--DSL To...

ADO.Net DataService Performance Issue

We are using ADO.Net DataService ( .Net Framework 4.0, Visual Studio 2010). We have Select, Insert, Update and Delete operations. For Selecting we have queries like School school = _context.School.Expand("Address, ContactPerson, ContactPerson/Details......").Where(S => S.Name == "xxx").SingleOrDefault(); For Inserting _context.Ad...

how to search and replace big chunks of text in files, with VS or with another text editor?

Hello, I have a bunch of old .asp files to refactor, and the first thing I have to do is to replace a bulky <table> wich is repeated in every file (it's a menu) with a server side include. the table has no id, but its container has it: <td id="leftColumn" > <table> manually going through the files and replacing the t...

VS 2010 to show custom web controls from other projects

I have a solution with 2 web applications projects and a project with some shared custom controls. The custom controls project is referenced by both web applications. What I'd like to see is the controls in the custom project automatically show up in the toolbox for the two web apps. I've tried the autopopulate toolbox, but that didn't ...

Missing msvcr100.dll

I made a program in Visual Studio 2010 on Windows 7 64-bit. When I try to run it on Windows XP 32-bit I got message that msvcr100.dll is missing. When I try to copy that file from Win7 to WInXP I got message that msvcr100.dll is wrong. How to set biulding in VS so msvcr100.dll would not be necessary? ...

VS2010 Deployment package MSBUILD

The VS2010 Deployment package feature creates the package with a directory structure like: Package\Archive\Content\C_C\Sources\Website1\Web\obj\Debug\Package\PackageTmp I want to have the contents of the last PackageTmp in the root and not the whole directory structure. What is the best way to do this, create a custom task which copies...

How do I make a system call and reload a file in a Visual Studio 2010 macro?

As you read this, though I have pretty good experience in C++ and Java, please keep in mind that I am a complete beginner when it comes to VB. :) Here is one idea of what I want to do: Option Strict Off Option Explicit Off Imports System Imports EnvDTE Imports EnvDTE80 Imports EnvDTE90 Imports EnvDTE90a Imports EnvDTE100 Imports Syste...

Issue with VS2010 and .Net framework 3.5

I am working on an application in VS2010 with target platform 3.5. I am refering to some third party .Net 2.0 assemblies in my application. These third party assemblies are dependent on some other assemblies which are available in both 2.0 and 4.0 GACs. It seems that VS2010 resolves these dependencies from GAC 4.0 even though my applicat...

Read csv file client side

Hi, I have to read the first couple of lines of a csv file client side to present the user with a preview before uploading a large file. I'm using c# with ASP.Net (VS2010) Does anyone know how this can be done? Also that it works in all browsers!?! (It's not possible to use activeX or so, we do not want our clients to install somethi...

[Visual Studion 2010] How to run unit tests while building the solution locally ?

Hello everyone When i do Build>Build Solution, i'd like VS to run the unit tests, without having to manually do it, because if the unit tests won't pass, then the project is not 'built'. Is this possible ? How could i do that ? Thanks :) ...

Connecting to Oracle on Windows 7

Hi everyonoe, I have installed Oracle Client 10g 32 bit and ODAC 11g R2 on my Windows 7 machine, but I cannot see any Oracle Providers in MS ODBC Administration or when I try to created a linked server to Oralce in SQL Server Management Studio or in Visual Studio 2010. Can anyone please help me out as what to do? I can connect to Oracle...

Visual Studio 2010 Deployment package

I want to use this task in the VS2010 Web Application package deployment process to compress the javascript files: <Target Name="CompressJS"> <ItemGroup> <_JSFilesToCompress Include="*.js" /> </ItemGroup> <Message Text="Compresing Javascript files $(_PackageTempDir)" Importance="high" /> <JSCompress Files="@(_JSF...

How do you reset the Zoom in Visual Studio 2010

How do you reset the "Zoom" in VS 2010 back to normal? CTRL+SCROLL WHEEL lets you zoom in/out with Visual Studio 2010, but I'd like to get back to the initial 100%. ...

developing office 2003 and office 2007 add-ons with VS2010

I need to develop an Outlook add-on. I must support Office 2003 and office 2007 (not 2010). Can I do the work on Visual Studio 2010? is it equipped to handle older outlook versions like 2003? or would I have to do the work on VS2005 or VS2008? ...