1)Can I stop VS2008,VS2010 creating automatic style in the VS2008 .aspx source view.e.g .style1{ width=100%"
2) All aligned source view code changes and after certain amount of time,If you could tell me any setting which could stop VS creating automatic styling also fixing the alignment just once.
When I'm building my web project it takes about 20 seconds to compile. Then when I try to browse to a web page in project, asp.net does its runtime compilation(another 20 seconds). I know I can't escape these steps because thats how asp.net works, just want to see if anyone has some kind of optimization to make these builds faster.
I'm going thru an asp.net 4 book, and I'm at a part about classes and their properties and functions. But up to now, all the examples involve a web_site, with controls, code_behind files, CSS, etc. But, I get to places where I don't understand the examples, so I look out on the web for other resources. For example, I found the code below to demonstrate the "ToString" function. My problem is, I'm not sure know how to test a little piece of code like this. Can't I just open up an application or project or something, paste this in and run it?
Module Module1 Class Perl Dim _a As Integer Dim _b As Integer Public Sub New(ByVal a As Integer, ByVal b As Integer) _a = a _b = b End Sub Public Overrides Function ToString() As String Return String.Format("[{0}, {1}]", _a, _b) End Function End Class Sub Main() Dim p As Perl = New Perl(2, 3) Console.WriteLine(p) End Sub End Module
2. I added a WebApplication project to this solution.
3. I clicked Add Web Reference
4. I clicked Web services on the local machine
5. Web Services listed on my local machine:
"There was an error while enumerating services on local machine:
Active Directory Services cannot find the web server. A possible cause for this is an incompatibility between versions of Internet Information Server (IIS) on the client and the server. Another possible cause is that IIS is not installed on the local machine, or the user identity under which you are running may not have permissions to view websites on this machine. To view websites on this machine, make sure that you run Visual Studio as administrator. On Windows Vista computers with IIS installed, make sure that IIS Metabase and IIS 6 configuration compatibility feature is enabled."
I have Visual Studio 2010 beta and Visual Studio 2008 Professional installed on this computer. I do not have any IIS server installed. Do I require a IIS server when coding webservices+webapplications?[URL]
I have a ASP.NET project which relies upon the FreeImage .NET wrapper. This is loaded using a reference to a external directory. The wrapper relies upon the FreeImage.dll being present to work (clearly). How do I get Visual Studio to include a reference to the FreeImage dll. It's not a .NET assembly, i think it was built in something else (so I can't add it as a reference).
I don't really want to have a copy for this project as these files reside in a different SVN repository
In VS2008 I create an empty Solution "CmsWork" with a new Web App Project "CmsWork" and add a Web Form "TestForm1.aspx".
From Toolbox I add a TextBox and then in codebehind try to refer to it in Page_Load. Intellisense and compiler both say TextBox1 does not exist in the current context. Tried referencing the control as TestForm1.TextBox1 and CmsWork.TestForm1.TextBox1 -- same error. wtf?
TextBox1 shows up fine in Design View and is labeled "TextBox1". What does Design View know that Code View and the compiler don't? Adding code to call FindControl and typecast to a TextBox works fine, but shouldn't be necessary. Controls can be referenced by ID in a codebehind in a Website project. Why not in a Web App project? This should just trivially work. I must be missing something EXTREMELY simple. I've tried restarting VS2008 normally and with "devenv /resetsettings" -- no effect. Reboot: no effect.
This is VS2008 Development Edition under Windows Server Enterprise SP2, with no VS add-ons, extensions, etc.
Aspx page:[Code]....
Codebehind:[Code]....
Build output:
Error 82 The name 'TextBox1' does not exist in the current context C:Users...DocumentsVisual Studio 2008ProjectsCmsWorkCmsWorkTestForm1.aspx.cs 14 4 CmsWork
I am looking to create a simple windows program that would allow users to calculate their holiday entitlement based on a few simple rules (length of service, job grade, % full-time). Users would use drop-down lists to select their relevant fields, and the holiday entitlement would be calculated from the values given. For example, someone at job grade '1' with 2 years of service gets 25 days a year, whilst someone else on job grade '1' with 4 years service gets 28 days. Is this sort of program possible in Visual Studio 2008?
This is the content in the master page as you can see there are 4 menu items i tried to form as sidebar and i tried to inherit in home.aspx(one of the content pages) as follows:
But unfortunately the sidebar is not at all getting displayed. I know i'm doing fundamentally wrong some where. My intention is to have web pages to have sidebar like this. It is a screenshot of my intended page.
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?
I just recently upgrade my asp.net web project from visual studio 2005 to visual studio 2010. The upgrade was successful with no problems however im missing some features with this project. The One Click Publish feature(which is greyed out) in the header area of Visual Studio 2010 and the Add Config Transforms feature which is no where to be seen when you right click on web.config. When i create a new web project straight from visual studio 2010, these options work fine.
Visual Studio 2010 Beta 2 locked up, and when I tried to restart it, it wouldn't load, so I did a devenv.exe /resetuserdata to get it going again. It reset everyhing in my options of the web app/ etc, and now some AJAX conrols don't work such as dragpanel. I assume that it is because something got reset that I haven't enabled again, but can't figure it out.
Im working on a website project with Visual Studio 2010 from 2 different computers (home & work). In Dreamweaver Im used to FTP to upload/download files to/from a webserver to syncronice my files on the current computer Im working on.What is best option in Visual Studio 2010 to sync project files between home & work computers? I have seen there is a built in FTP, but seems only it can upload files, limited functionality?
can Visual Studio 2008 be All-In-One tool to integrate source code continuously from team members, build, unit test?
Having used Visual Studio Team Edition 2005, unit testing each method within VS itself. I strongly believe that it is feasible to add-on tools. Example ankhsvn tool to use SVN from Visual studio [URL]
In my investigating i have come across number of tools(shown below) to use with Visual Studio 2008 professional
Development tool:- Visual Studio 2008 professional using Subversion as source control tool. Continuous Integration:- Hudson or Cruise control Build tool:- NAnt Testing:- NUnit, Selinium As Visual Studio 2008 can be used for unit testing I think NUnit is out of consideration.
In the same way i would like to have any other tools/add-ons to Visual studio to implement continuous integration, building and unit testing. This process should be automated such a way source code between team members is continuously integrated, built and unit testing is done as configured.
Objective is to use few number of tools as add-on to Visual Studio or achieve most from Visual studio itself (example unit testing). Visual Studio should be all in one tool.
I am aware that Team Foundation Server best suits my requirement, but it is out of scope due to its cost.
I am building master page in visual studio 2005 and I have placed contentplaceholder into between <head> and </head> tag of master page, but in source view of visual studio 2005, I am getting error that says "unrecognized tag prefix or device filter" how do i get rid of this error or is this bug in visual studio 2005
when i opened my Visual Studio 2010 i noticed that my ajax tab was missing from my toolbox and ajax control kit too.Then i noticed even that when i create new website, there is no web.config in it and it should be.WHAT IS GOIN ON???? :/
i install url rewrite iis module to my computer i want when i press f5 in visual studio my project work with url rewrite how can i this?my web sites is not seeming in iis.
I have VS 2008 Professional Edition.....I want to test a function like this:
public int getIdByName(string name) { var item=from x in DATAB where x.name=name select x.id; . . return idValue; }
now I test end I have:
[TestMethod()] public getIdByNameTest() { string name="Bob" int expected = 1; int actual; actual = ClassGET.getIdByName(name); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
The error in "test run" is:
Failed ......[Class]....... Test method threw exception: System.ArgumentException: The specified named connection is either not found in the configuration that is not for use with the EntityClient provider or thought is invalid