File upload only pictures
I am using the fileupload control in asp.net. I want the browser to only show pictures. I am currently using validation to ensure they only select images but how can I make the browser only search for images? ...
I am using the fileupload control in asp.net. I want the browser to only show pictures. I am currently using validation to ensure they only select images but how can I make the browser only search for images? ...
I have some web application projects in my solution that are set with the web tab in the project properties to use the local IIS server and create the web there. This works fine for windows XP, windows 2003. I want to open the project on Windows 2008 but the project gets the following popup when loading each of the projects with this t...
Hi -- This may be a stupid question, but I'll feel stupider if I don't ask and find out in 12 months that it was possible (this happened when I realized I could do what I'm requesting below with .aspx files). Is it possible to change my project files (c# classes, which predominate in an asp.net mvc environment) without recompiling whil...
Hi, I'm tring to migrate my code from VCpp 6 to VCpp 2008 express but when I build the solution I receive this error message: icl: warning: problem with Microsoft compilation of 'c:\Desenvolvimento\DFF\Base\\version.cpp' 1>C:\Arquivos de programas\Microsoft Visual Studio 9.0\VC\include\string.h(69): error: expected a ";" 1> __DEFINE...
I'm debugging issues from some CrystalReports documents through Visual Studio '08 (please, kill me now). In addition to the CrystalReports .NET libraries containing some of the worst interfaces I've ever seen, the web viewer for CrystalReports seems to behave strangely while debugging. Unlike regular .aspx pages, the CrystalReports docum...
There is the first time I'm going to do a particular control in C#. The control is a ListBox of items that will have an up arrow and a down arrow on the side. When you select an item in the ListBox, you can use the up and down arrow arrows to reposition that item in the ListBox. My two questions are: (1) Is there a prebuilt control for...
When I add an existing test project, my solution lacks the vsdmi and the testrunconfig files. How to create it? ...
I'm using a DLL with the following function in C# Visual Studio 2008: [DllImport("slpapi62", EntryPoint = "_SlpGetPrinterName@12")] public static extern int SlpGetPrinterName(int nIndex, string strPrinterName, int nMaxChars); Calling this function, strPrinterName is suppose to return a string. string name = ""; SlpGetPrinterName(0, n...
Specifically, I am always hitting Ctrl-A instead of Ctrl-S which is really annoying because it loses your place in the code. I very rarely actually want to select all of a file in Visual Studio, so I'd like to remove the keyboard shortcut so that Ctrl-A does nothing. Any way to do this? ...
Hi, I've been learning JQuery and I am writing my custom jquery codes in Custom.js file. Actually what I am trying to do is, activate intellisense for Jquery in visual studio but it's not working and I want intellisense to also work in custom.js file where actually I'm writing my custom logic and codes. I thought it could be solved by ...
How do I begin to troubleshoot Visual Studio 2008's WebDev.WebServer.EXE? I'm trying to run the default ASP.NET MVC project. And I keep getting this message from Firefox: Unable to connect Firefox can't establish a connection to the server at 127.0.0.1:52589. * The site could be temporarily unavailable or too busy. Try again in a...
I'm running Visual Studio 2008 sp1 on Windows 7 Build 7100 32bit. I've never had this problem before, even on different installs of Windows 7 RC. when I finish a statement with a ';' or '}' or something, normally VS will auto format that line or block of code. It hasn't been for me. I checked Tools->Options->Text Editor->C#->Formattin...
Wondering why "DCOM Server Process Luancher" starts up IIS Admin even when it's set to manual. Is this a factor of my Visual Studio 2008, SQL Server 2005, or something more nefarious involved? ...
Hi I have an .MSI file created using VS2008. This .MSI is composed of a collection of merge modules, each of which basically installs one component of our application to its own folder. When I try and uninstall the .MSI one of the subfolders created by a particular merge module is not removed, even if the application has not been run. ...
Terribly worded question above (trying to be short). Lets try that again: In Microsoft SQL Server Management Studio, when you are editing an SP and execute the sp in the same window, errors show up at the bottom of the screen you can double click to highlight the code causing the error. However, this never lines up, usually being anywh...
Our coding standards have us putting each attribute within a tag on a separate line. However, when I have VS (2008) format the markup is lumps all the attributes together. Is there a way to change this behavior?? Thanks ...
Sometimes I would like to undock a source file and slide it over to another monitor while editing another file. How do you do this in Visual Studio 2008? ...
Problem: Trying to reference a .NET 2.0 web service project from my VS unit testing project. Right click on the References folder in the unit test project -> Add Reference. The .NET 2.0 web service is NOT listed in the listbox of projects available to reference. I know this usecase is possible; I have previously successfully reference...
hi, is it possible from c# to add some groups, buttons,... to excel-2007's print preview ribbon... why? i wanted to put some images on that ribbon so that user by selecting the image will be able to put it on a sheet (where ever on that sheet by dragging it) and print it with that sheet... many thanks! ...
Hello! I'm having a little problem with Photoshop CS4 automation. When I want to add a reference to the COM API in my Visual Studio 2008 project, the Adobe Photoshop Object Library doesn't show up in the "Add References" panel under the "COM" tab. However, the Illustrator CS4 Type library show up just fine. Photoshop itself run perfectl...