.net

when i press the button combobox value is not displaying

Using C# & Mysql I have combobox & button in my webpage, if i select a value from the combobox, then i click the button the page is refreshing, combobox value is changing. For Example Combobox value: 1, 2, 3, 4 ..... If i selected 2 then i press the button, webpage is refreshing, combobox values is display from: 1, 2, 3, 4.... Combo...

do we need to lock this queue?

If there is only one thread to add to queue and only one thread to retrieve from the queue, it is not necessary to lock the queue for those access actions, I think. Usually the retrieve will be in a loop. If it missed one item, it will get it in next try. only concern is getting a partially data. if it is value type queue and the value...

FxCop + command line execution?

does anyone know how to or can provide the syntax for running FxCop via command line. i want to set a task to run a defined rules.fxcop file (this is a empty project that i made with only a select set of rules enabled to reduce noise and check for things i am interested in) can someone explain how i can accomplish this... i am guessin...

Why can't i get much info from this compiler error?

I have developed an aspx in .net 3.5 sp1 in my local system. But my server doesn't have .net 3.5 sp1 but it does has 3.5. Error in this page. ANy suggestion. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and mod...

Capitalization/Naming Convention for Controls

Hello, What is the best and recommended practice regarding capitalization for naming controls in, for example, WinForms? StyleCop says that instances of classes should start with a lower case letter. I respect this convention in my code. In previous languages that I have used, for example VB6, I have been used to name my UI controls d...

How do I cleanup .NET stuff when a C++/CLI DLL unloads?

I'm new to C++/CLI, so please bear with me... I'm working on a mixed C++/CLI DLL, which should act as a bridge between a Win32 process and a .NET assembly. In the DLL, I need some .NET stuff to be present during the lifespan of the DLL. Initializing is not that big a problem, but I couldn't figure out when can I safely cleanup the .NET ...

ssis Derive update

Im trying to merger data together based upon a primary key that will be the same in two record sets. I have the first record set with a primary key and 5 coloums of data and then I have a second record set with the primary key and 5 new colums. I want to be able to merge both record sets together so I can see one primary key and 10 colo...

Sort XML file based on XSD format in .Net

I have a requirement to generate XML, validate against an XSD and (if valid), send the XML to a third party. My problem is that generating the nodes of the XML file in the correct order (as the XSD defines it) is very difficult with my current scenario. Writing the code to manually add the nodes in the correct order would mean a lot of ...

How to filter on a constantly updated collection displayed in grid?

Hi, Let's say I have a WPF application that shows "questions". Questions can have different statuses, such as "open", and "answered". The questions are stored in an ObservableCollection and displayed on a DataGrid. I want to have a toggle button at the top that switches between "open" and "answered" questions. When a user clicks the "...

What questions should be asked before making a .Net application ready for communicating with SAP?

Hi, In one of the projects I work for we are asked for to investigate the possibilities of our application's communication with SAP applications. As a person who does not have any experience with SAP, what steps should I follow and what questions should I ask to come out with a useful report? Can you recommend me a road map to achiev...

Recommendations on a backend scheduling app?

We currently use SQL Server, a BPM engine, win services, and even the Windows Task Scheduler to fire off scheduled items. Most are web service invocations, but some are FTP pull downs and whatnot. I know there are good back-end scheduling apps out there that financial companies, and other process heavy industries use for things like th...

How do you implement the equivalent of SQL IN() using .net

In .net (c# or vb) expressions, how would you implement SQL's handy IN() functionality? i.e. value in (1, 2, 4, 7) rather than: value = 1 or value = 2 or value = 4 or value = 7 There are obviously many ways, I'm looking for the most clean and simple! ...

Can a MEF application built on .NET 4 import types built against .NET 3.5?

I am developing a host application using Managed Extensibility Framework and it's built against .NET 4 and the System.ComponentModel.Composition assembly that is built into the framework. I would like to support the ability to develop parts using .NET 3.5 and export them declaratively. Since the export attributes are new in .NET 4 and t...

Own extensibility layer or MEF/MAF?

For those that work with application extensibility in .NET, what do you prefer doing - creating your own extensibility layer or using MEF (Managed Extensibility Framework) or MAF (Managed Add-in Framework)? So far, I've used both ways of implementing application extensibility and I like MEF for the fact that it makes it easier to load e...

What is the maximum amount of characters or length for a Directory?

What is the maximum amount of characters that a typical path can contain for a directory when using C#? For example C:\test\ has 7 characters in length , what is the maximum length? ...

Child webpages help

Using C#, ASP.Net In my webpage i have the link for the another web page, if i click the link that should display a another page inside the main page like child page. Another webpage should display like a popup window in my webpage. And also size of the another webpage should be small. How to do this. Need Help. ...

Simple app with timer is eating memory away ?

Hi, Can anybody explain why this tiny app's memory usage keeps increasing ? static class Program { private static System.Timers.Timer _TestTimer; [STAThread] static void Main() { _TestTimer = new System.Timers.Timer(); _TestTimer.Interval = 30; _TestTimer.Elapsed += new System.Timers.ElapsedEven...

Creating ToolTip for Sub String of richbox .

Creating ToolTip for Sub String of RichTextbox. for example I used this text in RichTextbox: 'this is a sample text' when user hover on 'sample', a tooltip show you have selected 'sample riched'. ...

Are applications with many Dlls a "bad thing?"

We have an enterpise web application that did consist of 4 compiled components(dlls). Over a year ago, we began implementing more granular components in an attempt to isolate functionality, reduce coupling and reduce the risk of recompiling and deploying massive chunks of code. While no one argues that this approach has given us MUCH i...

Measure text with Siberix Report Writer

I'm using the Report Writer from Siberix to generate PDF reports, but I can't figure out how to measure the text I'm about to write when using a canvas. So if I have an IGroup and code like this: var canvas = group.AddCanvas(); canvas.Font = new Siberix.Graphics.Fonts.Arial(26); canvas.Brush = Brushes.Black; canvas.DrawString(0, 0, "s...