visual-studio-2010

Another way to pass a value across WebForms

If I use a Server.Transfer command with a true value passed for the "PreserveForm" 2nd param's value: Default.aspx: Server.Transfer("WebForm1.aspx", True) ...I can access the value of the textbox "TextBox1" control on the first page, Default.aspx, from "WebForm1.aspx" as follows: lblPassedValue.Text = Request.Form("ctl00$MainCont...

Trying to get a DataRow[] Debugger Visualizer to work in Visual Studio 2010

I'm trying to get a DataRow[] DebuggerVisualizer working for VisualStudio 2010 and unfortunately I can't get it work work. I'm able to get the DataRow one working but not the DataRow[], I would love any please? The meat of the code is here. [assembly: DebuggerVisualizer( typeof( PCHenry.DR ), typeof( PCHenry.DRObjectS...

Expression is always true (when it isn't)

Hi all, I have a query in the form: var fruits = (from p in fruitDB where (p.Fruit.FruitID == fruitID && p.Color.ColorID != null ) select p.Color).Distinct(); VS 2010 gives me a blue underline and informs me "Expression is always true". Now granted I agree if the data in the database wasn't stuffed up, but...

How to get visual studio to forget about an old tfs?

We moved to a new tfs, with a new name, the old one doesn't exist anymore. When I create a new blank solution and select file|source control|change source control and click on 'Bind' Visual Studio tries to connect to the old tfs. Under Team|Connect to tfs|.servers I removed the old one and connected to the new one only. Also my workspac...

How to remove VS2010 "File modification detected" dialog?

Every time i switch branch in git, visual studio pisses me off with those popups asking me if I want to reload project or ignore changes. How to automatically reload solution? ...

Howto remote debug a vs2010 project on iis6?

Hi, i made a asp.net project in VS2010 with .net 4.0 everythink works fine. but when i copyed it to the server (IIS6 MS server 2003) it throws some exceptions and i dont know why, so i want to remote debug it, but i dont know how! so how can i remote debug? ...

Strange Silverlight Problem

I have a method that generates XML for a class I have created -getXML(). This is called from the following methods: private void send_Response() { String xmlUrl = ((App)Application.Current).Resources["xmlUrl"].ToString(); HttpWebRequest request = (HttpWebRequest)WebRequest.Create(new Uri(xmlUrl, UriKind....

How to run the VS2010 Sql Server project's deployment script

I'm confused, if I select the "Create a deployment script" option and 'deploy' the project, i get a SQL file that uses non-SQL syntax for variables like $database. How can I execute that deployment script? I'm pretty sure SQL Server management Studio doesn't understand the syntax. It seems to me the only way to actually deploy, is to...

How to solve build errors using VS 2010 Ultimate on 32bit XP Sp3.

Installed VS2010 Ultimate on my desktop workstation - Dell Precision T3500 (Windows 7 64bit OS), and on my IBM ThinkPad R51 (Windows XP Sp3 32bit). I am having problems building solutions on the StinkPad, and cannot figure out why. As listed below, the build output for a compiler built ADO library lists the following errors: c:\wpds\de...

Edit contained label dynamically based on which tab is selected

Hello, pretty new to vb and I want to get a tab control working. so far I have the form with a tab control on it, there are 5 tabs each with a label contained in the tab-page. I want to have a button outside of the tab that changes on the form. when clicked the button will change the text of the label based on which tab is currently sel...

Spurious dialogs "Project exists, overwrite from source control" when opening solution

Just recently, when I open a solution in VS2010, I get modal dialog boxes in the form "Project c:\XXXX\YYY\ZZZZ.csproj, which you are getting from the source control store, already exists. Would you like to overwrite it with the store version, or leave your local copy?" With the options Overwrite, Overwrite All, Leave and...

Visual Studio Makefile Project Synchronization

I've inherited some C99 code that I'm planing on reusing in a C++-centric solution. Unfortunately, even Microsoft's latest compiler has virtually no support for non-trivial C99 features. The code in question has been tested to death and I'd rather not go through the trouble of rewriting it in C++. This means that in order for me to reus...

vs 2010 and Crystal Report

Hi all, A few days ago, I have migrated from vs2005 pro to vs2010 pro. To do this I have setup a new pc with installed win7 pro 32 bit With my surprise I have understand that CrystalReport is not shipped with VisualStudio 2010. So I have downloaded, like required from visual studio, two file from sap site, the runtime and the Cr Ide....

VB Calling Parent form's Methods in a usercontrol

Hi I have a user-control that contains a button. the user control is placed on my main form. when the button on the user control is clicked I need to to call a method that is located in the mainform.vb ...

Visual Studio plugin for automating nunit test creation?

You know how they say, "There's an app for that"? Well, is there a VS plugin for this ................. ? I want to be able to right click on a method and select "Create unit test method ..." and have it generate an nunit stub in a particular place in my project tree. So for example. I have a TheNextBigThing library with an Idea class ...

How to know the source code project of a referred web service?

A project, called P, of my solution refers to some web services whose source codes are in other projects in the same solution. Those web services are coded by other colleagues not me. From within1 project P, I can see these web services in Services References. What I want to know: The source code projects of each of those web services....

overriding a User-Control method VB

I'm making a windows form, I have a user-control which I made with a number of methods. On my main form I have an instance of this user control, I need to override one of the methods in the mainform.vb to change functionality of one of the methods. ...

How to cache static background images in ASP.NET MVC 2 web site?

Hi, I would like to cache static background images in my APS.NET MVC 2 web page. What's the best way to do this? ...

"My" namespace has disappeared, and other weirdness.

Hi, I'm currently having to use someone else's login on this PC, basically because I'm the guy who replaced him at the company, and he's now living somewhere on another continent, and nobody can get this project he was working on to set up on any other machine... Anyway, I'm trying to access the "My" namespace, and it's missing everyth...

How to make visual studio intellisense member description not disappear after ~10 seconds?

I have Visual Studio 2010 and Windows XP. ...