.net

MySQL .NET Connector issue with stored procedures

I have a VB.NET application that has been accessing MySQL stored procedures using .NET Connector 5.0.7. We recently upgraded to .NET Connector 5.2.6 and I now receive the following error: "Procedure or function 'proc_scheduleProcess' cannot be found in database 'ProjectMgr'." The following code has been running without issue until the...

Plugin Framework - can there be too many addin assemblies?

Hi, The product I'm working on needs to be built in such a way that we have a quote engine driven by a pluggable framework. We are currently thinking of using MAF, so we can leverage separation of the host and addin interfaces for versioning. However, I'm concerned that we'd have lots of assemblies, it's likely that we'd have one for ...

How do you get the original control instance from a staticpartialcachingcontrol?

I'm output caching a usercontrol and it wraps it into a staticpartialcachingcontrol class. I somehow need some way to walk backwards and grab the original control instance, either through a strongly typed usercontrol or virtual name/path. Any ideas? ...

EntitySet<T>.Where(myPredicate) throws NotSupportedException

EDIT: Let's try this again. This time I've used the AdventureWorks sample database so you can all play along. This will rule out anything crazy I've done in my own database. Here's a new example demonstrating what works and what I would expect to work (but doesn't). Can anyone explain why it doesn't work or suggest a different way of...

LINQ WPF Binding with Cross-Thread Collection Changed Notification

So, I've spent a good amount of time using ContinuousLinq to bind collections to WPF using LINQ in my client app. Now I get to testing and find out that ComboBoxes do not support collection change notifications cross-thread. Does anyone know of a Bindable LINQ solution that has an option to force change event to be raised on a given UIT...

What pattern could help to keep track of Session["objectName"] within a Web App ASP.NET MVC?

I want to keep track of User Sessions within my MVC webapp. I know I am doing something wrong because the flow of the programming seems kind of chaotic. Any suggestions? At this point I am trying to verify Session every time I hit a different controller. private void VerifiedUserSession() { int? userID = (int?)Session...

smooth scrolling .net forms

Hi I am using forms in .net and i am adding lots of linked labels dynamically during runtime, I am adding these linklabels to panel and adding that panel to the winform. When the no of linklabels increases the form puts out an auto scrollbar(vertical)... Now when i scroll down using that autoscroll the form is not updating its view as i...

C# - Layout problem on Windows XP professional

I am developing a C# application with .NET Framework 2.0. The problem is, that on my client's PC, the controls get expanded, layout changes (positions of the controls gets changed), sometimes buttons get missed entirely. It happens even on Forms with 2-3 TextBoxes, 2-3 Buttons and some Labels. I tried a lot of investigations. I tried to...

How do I use the DataType property on a WPF DataTemplate?

So obviously I am doing something wrong, but I just cannot seem to get the HierarchicalDataTemplate (or even just DataTemplate) to work when using the DataType property. I have created the shortest possible WPF application to demonstrate the problem. XAML: <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.c...

"Binding" to a TreeView?

I'm trying to build the server/network settings system for my IRC client. Because of the relational nature of the networks and servers I opted to use SQLite to store everything. My first step is making the settings dialog, which is like you might expect; a TreeView that holds the networks and server, and a space on the side to edit thei...

Parse string to enum type

I have an enum type like this as an example: public Enum MyEnum { enum1, enum2, enum3 }; I'll read a string from config file. What I need it to parse the string to MyEnum type or null o not defined. Not sure if the following codes will work (sorry for not having access to my VS right now): // example: ParseEnum<MyEnum>("ENUM1", r...

Preserve data in .net mvc

I am implementing a search module with result page support paging. The example provided by NerdDinner passes pagenumber as a parameter for the Index action, and the action uses the pagenumber to perform a query each time the user hit a different page number. My problem is that my search take many more criteria such as price, material, ...

Inserting data into C# Datasets

I am using C#.Net application in which i created a dataset.Now i want to create a method in which i will enter a record in one table which will return a value ie primary key.Now by using that primary key i have to insert records in 5 tables and i have to use that primary key as a foreign key for this 5 tables using dataset. ...

WCF security: looking for a very specific example

Hi there, I'm having a problem where i want to get the users windows login information sent to IIS then from there sent to a WCF service hosted in a console application and then that service uses the credentials to go to a database and retrieve results. i'm looking for an example on the web that does EXACTLY this but for the life of me...

flagsattribute - negative values?

Hi, I have a enum with a flagsattribute, which i use to represent permissions. I use it to compare if (CurrentPermissions & Permission1 == Permission1) etc... [FlagsAttribute] enum MyPermission { None = 0, Permission1 = 1, Permission2 = 2, Permission3 = 4, Permission4 = 8,... .................. and so on } However, we r...

what is flexigrid ?

in .net we use something called datagrid and there is what we call flexigrid . what is the difference in between ? ...

WPF - How Combobox knows when to close the drop down menu

Hi Friends. I am a little new to wpf. I wanna write a control similar to ComboBox and I'm wondering if anybody knows how to get noticed when a user clicks not inside the combobox boundries. Because combobox closes it's dropdown in this situation. ...

Any real-world, enterprise-grade experience with Transactional NTFS (TxF)?

Background: I am aware of this SO question about Transactional NTFS (TxF) and this article describing how to use it, but I am looking for real-world experience with a reasonably high-volume enterprise system where lots of blob data (say documents and/or photos) need to be persisted once transactionally and read many times. We are expe...

Auto implemented properties in C#

Is there a way to continue to utilise auto-implemented properties while still raising a change event, such as INotifyPropertyChanged, when Set is called? Instead of: private string _value; public string Value { get { return this._value; } set { this._value = value; this.ValueChanged(this,EventArgs.Empty); } } ...

app.config for unit test assembly: how to make the appsettings 'file' attribute work?

I need to read a setting from the appsettings section (defined in app.config) in a unit test. We're using mstest in this project. Say this is the app.config: <configuration> <appSettings> <add key="MyAppSetting" value="MyAppSettingValue"/> </appSettings> </configuration> Here's the corresponding test, which passes in this setup:...