visual-studio-2010

How to add gridview into pop up window ????

Hi All . I want to add my grid view into pop up window. My grid view consist of radio buttons. so i want to select one of radio button and take clicked button's text value to my web page. Any one can tell me to create pop up to my sharepoint web part. cheers !!!! Chinthaka ...

.Net 4 menu output as a flyout

Hi, in .Net 4 i'm using a menu apapter like so: <asp:SiteMapDataSource ID="mainNav" runat="server" ShowStartingNode="false" /> <asp:Menu DataSourceID="mainNav" runat="server" MaximumDynamicDisplayLevels="0" /> But it's outputting a flyout type menu - all the top level links are showing and have arrows next to them. Then when you rollo...

How do I deploy an Asp.net web application to a Sharepoint 2010 site using WSP

Suppose I created a custom web application that consists of: several assembly DLLs: web app, business logic, data services multiple aspx pages and ascx custom controls that use them custom configuration section custom HTTP module More or less the usual stuff. I would like to deploy it to a particular sharepoint site under a certain ...

The file '/index.aspx' has not been pre-compiled, and cannot be requested.

When I publish my website using Visual Studio 2010 I get the following error: I'm also using the following compilation settings: What possible reasons are there for this not working? Thanks, Curt ...

Where to place test files for unit testing

I am writing some units tests and I need to be able to access an external file. I assumed I could just place the file in my solution, mark it to be copied to the output directory, and then access it via a relative path. Unfortunately it seems that unit tests are run in a strange directory. So, instead of running from: "[MyUnitTestProj...

What is a good reference book on how to create custom claims in sharepoint2010 using Visual Studio2010

I have a claims based sharepoint2010 application. It is configured using LDAP role and membership provider and both windows and form logins are working perfectly. Is there a good reference book on how to create custom claims and add to the claims collection? I have followed Steve’s blog on how to write custom claims. I followed every st...

Why won't the Server Explorer properly enumerate or add servers, and access WMI?

I have this problem with the server explorer in Visual Studio 2010, and I have tried reinstalling, repairing, etcetera, but nothing has worked. If I right click and add a new server, it cannot connect by either name, IP, or other. I really need access to SE. ...

What are your thoughts on Visual SourceSafe?

I am considering getting VSS and was wondering what were people's thoughts on it in particular? ...

Visual Studio 2010 - Only View Output of a Specific Category

In Visual Studio 2010, it would be beneficial to only view the output of a given debug category.. I.E. Debug.WriteLine("debugging", "category1"); Debug.WriteLine("debugging2", "category2"); We have numerous developers developing on the same project and theres a lot going on in the output window that we dont need to see... if we could...

Batch Migration of VS 2008 Solutions/Projects to VS 2010?

Does anyone know a fast way of batch migrating VS 2008 Solutions/Projects to VS 2010? A simple test using the Migration Wizard shows that amongst others, the ToolVersion attribute is automatically changed to 4.0, the NoWarn key gets new exceptions added and a couple of other things... If there is no other way, I will have to do it manua...

How do i customize the Text Editor or color tag parts of my code?

How do i customize, extend the Text Editor or color tag parts of my code? I would like visual studio to color code parts of my code can i use #region and give it a color? Is there any way to make the background between two parathesis have a different color? ( i want each code "block" to have it's own color? I've looked here for some ...

Report Viewer 10 Windows Authentication

i've recently updated a few projects to VS2010 that also included updating some RDLC local reports that i use with the MS Report Viewer. My data sources are LinqToSql for each project. One project uses SQL authentication mode and works great after the update to VS2010. However, the two projects that use Windows Authentication have bee...

How to generate an ASP.NET 2.0 (retro) web.config within Visual Studio 2010

Hi all, I'm using VS 2010 Express Edition (VWD) to develop a website project that will be deployed to a Windows 2000 Server (targeting .NET 2.0). BACKGROUND: The website was new, so I chose the 'c# blank website' project template in VS 2010. This (as you may know) gave me an extremely more lean web.config file than VS 2008. I like tha...

Reference issues in .NET 4.0 project to .NET 2.0 dll/project

I just starting to use Visual Studio 2010 and .NET 4.0. I created a new WPF project a DLL built for .NET 2.0. When I build the project, I get a bunch of warnings like this one: The referenced assembly "MicroFour StrataFrame Business...processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version...

Visual studio 2010 Switch statement generation by enum

Is there any way to get generation of switch statements by enum For example if i have big enum and i have method witch has parameter enum then i need to code switch statements for each case, but is there a way to generate this switch statement by enum? If i heve a lot of another enums if my enums wide range and if i have 10-100 method...

ReflectionTypeLoadException for Microsoft.Web.Administration running Test Project in VS2010

We have recently upgraded all our VS2008 projects to VS2010. Our code base is still targeting framework version 3.5, but I'm sure most of you would know that test projects must be upgraded to framework version 4.0. We have one particular set of tests that do not work now that the test project is targeting framework 4.0. These tests al...

Visual Studio Designer: Opening XML files as a Grid (hidden feature)

I once had this Add-In to VS2005 that allowed me to edit XML files in a Excel-Like table view. I would access it by right-clicking an XML file from within Visual Studio, click Open With, and then select the Add-In. I would then be able to read/write my simple XML in a nice table format. The way I remember it, this feature was shipped...

Problems with VS2010, Framework 2.0 and KB979909

Our team has installed VS2010 on Friday afternoon. When I came into work on Monday morning, it appeared the installation of the .Net Framework (specifically the 2.0 part of it) was corrupted. Programs were complaining that they couldn't find 2.0 assemblies, and our main app was failing to start. Reflector wouldn't start because it couldn...

Visual Basic setting a global variable making my code DRY

How do I optimize my code making it DRY approach. I want to make my variable to be on public/general so i can re-use it Public Class BasicForm Dim Product1, Product2, Product3, As Integer Dim firstName, lastName As String Private Sub btn_getValue_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_getValue.Cl...

Visual Studio 2010 Snippet Generator

I'm looking for a good tool to generate snippets for Visual Studio 2010 without having to manually edit XML ...