visual-studio-2008

Implementing modalpopups as default alert in entire project

Hi, right now I have a huge Solution in which we use javascript alerts via RegisterStartupScript for all messages and errors.. We were willing to modify all this to making something similar to the modalPopupExtender, or the extender itself in a way that doesn't require too much effort... I mean, to show a modalpopup on a single page I ne...

How do I enable file editing in Visual Studio's debug mode?

Is there a way to enable file editing while debugging in Visual Studio? I have unchecked the "Require the source file to exactly match the original version" checkbox. It makes no difference. I have to stop debugging to edit files. Very annoying. I enabled Edit and Continue. Same result. I disabled Edit and Continue - Same result. ...

Gridview Filtering built in function?

Does .NET have some type of built in function that allows filtering on Gridviews? I've always programmed my filters by using a datasource generated by a dynamic stored procedure that takes parameters. But in order to keep the filter row always present I have to place the code to create the controls that are used to filter in three differ...

How to disable Region collapsing or expand ALL regions in Visual Studio VB.NET?

In Visual Studio C# (2008) ctl-M-L expand all the regions. There's also a setting in Text Editor->C# ->Advanced to not collapse during file open. I see no equivalents in VB.NET. Is there a way to expand all the regions, not just the one which has focus in VB.NET. Or a macro or add-in that does it? I just hate not being able to see all ...

sqlmetal.exe not found

Whenever i try to run sqlmetal, i get this: 'sqlmetal' is not recognized as an internal or external command, operable program or batch file this is from both CMD and the Visual Studio Command Prompt I've used sql metal many times on other machines, however it doesn't seem to work on this machine... Am i missing something? ...

Handle HTMLElementEvents2 when DWebBrowserEvents2 has been handled using ATL's macros

I'm creating a Browser Helper Object using VS2008, C++. My class has been derived from IDispEventImpl among many others class ATL_NO_VTABLE CHelloWorldBHO : public CComObjectRootEx<CComSingleThreadModel>, public CComCoClass<CHelloWorldBHO, &CLSID_HelloWorldBHO>, public IObjectWithSiteImpl<CHelloWorldBHO>, public IDispatc...

ASP.NET Server Control - Reuse Type/Objects in Web References

Hello, I was wondering if it's possible to reuse objects in web references in an ASP.NET Server control? (basically keeping the same web reference name) I have a few web services (.asmx) that I want to group with the same web reference name, however when I consume them using the same name they append a 1 at the end and with all object ...

Project wide "Remove and Sort Usings"

Has anyone written a macro that will remove and sort your usings in an entire project? I would like to accomplish this without any third part add-in like ReSharper. ...

Configuration error after deploying asp.net files into iis server alternative

I am getting the following error which deploying my code in the production server. Code is working fine in development. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file app...

I want to collate ID of Login ID and Pass with a table with Visual Web Developer 2008

I'm very beginner for developping. environment is .. Windows XP Professional SP3 Microsoft Visual Web Developer 2008 Express Edition Microsoft SQL Server 2008 [table_name:LOGIN] login_id ->  char(5) login_name ->nchar(20) password  -> char(10) My Question is following. How to develop login program ? with the table I want to ...

Build problem for v.s 2008 project

I'm using v.s 2008 with c#. I have a windows service. I stoped that service and do some changes in the codes. I want to build my project but the visual studio open "save as" window. How can i build my project again? ...

Include folder in setup project

I want to include a folder in a setup project so when i deploy that setup the complete folder is also deployed to the install location ...

How do I make this template class compiling in both VC6 and VC9.

I have a template class compiling fine in VC6. But it is not compiling in VC9. For that I have added "typename" keyword in front of one type. After this it is compiling in vc9 but not in VC6. How do I make it compiling with both the compilers. #include <map> #include <vector> template <class T1, class T2> class A { public: std::pa...

How to tag important code regions in Visual Studio?

We all sometimes have to write potentially dangerous, unsafe or just poorly written piece of code. Usually it is done in a hurry and needs to be rewritten later. My question is: How can I easily and visually mark this code in VS 2008? For example, I'm using Mindjet MindManager for planning and I love how easily I can put a predefined g...

Regular expression problem

I have the following regular expression in a asp.net email test box: ([a-zA-Z0-9_\-\.]+)\@((base\.co\.uk)|(base\.com)|(group\.com)|(arg\.co\.uk)|(arggroup\.com)) This regular expression only works for [email protected] [email protected] [email protected] It's not working for: [email protected] [email protected] Please help me ...

Regular expression not working after debugging

I have an ASP.NET website with a regular expression validator text box. I have changed the expression in the regular expression validation property "validator expression" and after compiling (rebuild) and running, the validation CHANGEs are not reflecting. The previous validation is working fine but the changed validation is not workin...

Task failed because AL.exe was not found,...

Hi, I'm getting the following error when compiling my project: Task failed because "AL.exe" was not found, or the correct Microsoft Windows SDK is not installed. The task is looking for "AL.exe" in the "bin" subdirectory beneath the location specified in the InstallationFolder value of the registry key HKEY_LOCAL_MACHI...

Regular expression for numeric range 0000 to 9999

I need a regular expression for a text field in my asp.net website which should lie in between 0000 to 9999 it is not be 0 to 9999 ...

RegEx help - finding / returning a code

I must admit it's been a few years since my RegEx class and since then, I have done little with them. So I turn to the brain power of SO. . . I have an Excel spreadsheet (2007) with some data. I want to search one of the columns for a pattern (here's the RegEx part). When I find a match I want to copy a portion of the found match to an...

VS2008 automaticly add usings disable

Hi togehter, I have a compoment developed by myself. E.g.: Logger.Charts.Exchart() is the constructor. Now I use "using" in my Form: Using Logger.Charts; Exchart x = Exchart(); But every time I click on my component on the designer, it automaticly edit the constructor to: Exchart x = Logger.Charts.Exchart(); How can I disable tha...