.net

case insensetive order by in SQLite in .net

I'm using SQLite from a C# program using SQLite.net ( http://sqlite.phxsoftware.com ). By default SQLite select order by clause sort is case sensitive, I want the result to sort case insensitive, I found "COLLATE NOCASE" but the documentation says it will only handle English characters in the ascii range, I want true linguistic internat...

MetaData.cs Where is it? Dynamic Data Entities?

There are Two kind of template in asp.net 3.5 1) Dynamic Data Web App. 2) Dynamic Data Web App. Entities My SQL database has got Customer Table ; Columns : ID, Name,Surname vs. if you use first one(Dynamic Data Web App); you can not see ID column(Customer Table) (Linq to Sql) But if you use second one(Dynamic Data Web App. Entities)...

Security Exception on WindowsIdentity.GetCurrent()

Click Once deplyment. Application runs fine in VS2008. When running the deployed app throws exception on: WindowsIdentity.GetCurrent() Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Click Once security settings: f...

Deployed .net app on new machine and getting "The system cannot execute the specified program"

I have a .net console app that launches excel. I have it working on my development enviornment, but I can't get it running on my production environment. When I try to run it I receive the following error "The system cannot execute the specified program". I have installed .net 2.0 sp2 on my production server. Any ideas? Thank you, C...

"Activation context generation failed" complaint trying to add an application manifest

I'm trying to add an application manifest that requires elevation to my .NET 2.0 EXE. I've done that for a simple EXE and it worked without any problems, but on this more complex EXE it's not working. My EXE has a config file and a lot of dependencies of other DLLs in my solution. When I start the EXE, I get a SideBySide error saying "...

How can I constrain a generic parameter to implement basic math operators ?

Is there a way you can do this ? I would like to have a collection class of T that would be able to do addition, substraction on the T type. I would like to keep T generic instead of having couple collections with the same code, but different types. How would you constrain the generic T ? Example: I would like to define a Collection...

Self learning regular expression or xpath query?

Hi! Is it possible to write code which generates a regular expression or xpath that parses links based on some html document? What i want is to parse a page for some links. The only thing i know is that the majority of the links on the page is those links. For a simple example, take a google search engine results page, for example th...

VS 2008 Toolbox shows multiple instances of the same control

I have VS 2008 Team Suite on my notebook, when i create a web page and open the toolbox, i see multiple instances of the same control. Is there any way to fix this? Similar question here . I tried the only solution posted, it did not work ...

.Net Regex match grouping and repetition question

I have the following VB.Net 2.0 in an ASP.Net app: output = Regex.Replace(output, "<p>(?:(?:\<\!\-\-.*?\-\-\>)|&(?:nbsp|\#0*160|x0*A0);|<br\s*/?>|[\s\u00A0]+)*</p>", String.Empty, RegexOptions.Compiled Or RegexOptions.CultureInvariant Or RegexOptions.IgnoreCase Or RegexOptions.Singleline) Example stuff it matches well: <p></p> <p> ...

.net UrlEncode - lowercase problem

Hi, I'm working on a data transfer for a gateway which requires me to send data in UrlEncoded form. However, .net's UrlEncode creates lowercase tags, and it breaks the transfer (Java creates uppercase). Any thoughts how can I force .net to do uppercase UrlEncoding? update1: .net out: dltz7UK2pzzdCWJ6QOvWXyvnIJwihPdmAioZ%2fENVuAlDQGRN...

What are the three top Blogs for WPF?

I have several bookmarked, but only have so much time in a day to read/study blogs. If I were to pick three blogs to read on a daily basis for deep understanding of WPF what should I read? ...

.Net Use Reflection To Define OfType

I am using System.Reflection to load a type that I cannot otherwise load during design time. I need to pull all controls within a collection of this type, however, i the OfType command doesn't seem to like the reflection Syntax. here is "close to" what I got. Dim ControlType As Type = System.Reflection.Assembly.GetAssembly( _ ...

Adding database in a sample project .zip or svn repository

Hello, I often want to send sample apps to friends & colleages that work with a database. For real projects I'd like to include something in the repository that allows people to recreate the database quickly, to avoid having to depend on server X still being there in a few years. I'm not really good with MS SQL server management stud...

The request could not be submitted for background processing??

I am getting the following error using Crystal Reports 10.5 on my development machine. The report was working fine this morning in my testing and now I get this error Error in File C:\DOCUME~1\UserNameHere\LOCALS~1\Temp\BarLabel {052E0DE7-59FA-4C55-B293-316F7DFE8531}.rpt: The request could not be submitted for background processing I ...

Speed and XML Parsing in .NET - Serialization vs XML DOM vs ?

I have done XML parsing before but never on a massive scale. If I'm working with many documents similar to this format: <?xml version="1.0" ?> <items comment="something..."> <uid>6523453</uid> <uid>94593453</uid> </items> What is the fastest way to parse these documents? 1) XML DOM 2) XML Serialize - Rehydrate to a .NET Object 3) ...

IPostbackEventHandler VS IPostbackDataHandler

hi 1) User selecting an item in DropDownList is considered to be postback data, and for that reason DropDownList implements IPostbackDataHandler. a) But why isn’t user moving ( in Calendar control ) to another month also considered a postback data? Thus, why does Calendar implement IPostbackEventHandler and not IPostbackDataHandler...

Updating <appname>.config file from an Custom Installer Class Action.

I've tried updating my application's .config file during installer (via a .NET Installer Class Action). But, I can't seem to get ConfigurationManager to list any properties or be able to set anything. I learned of this approach from several stackoverflow posts that pointed me to this guide: http://raquila.com/software/configure-app-con...

What kind of situations I'd need to use events of C#

Hi, I am studying events in C# but there are not much articles or information that show me where or what kinda position I'd need to use events in. Could some one give me real world example that makes them more understandable. Thanks in advance. ...

LINQ to SQL Violation of UNIQUE KEY constraint with NULL column

I have the following table. When i try to insert records using LINQ to SQL it works fine until I try to insert a record where the UserId is null. When I try that I get the following error "UNIQUE KEY constraint Cannot insert duplicate key in object" I am only trying to insert 1 record and the table is empty so there is definitely no cl...

String.Format vs "string" + "string" or StringBuilder?

Possible Duplicates: Is String.Format as efficient as StringBuilder C# String output: format or concat? What is the performance priority and what should be the conditions to prefer each of the following: String.Format("{0}, {1}", city, state); or city + ", " + state; or StringBuilder sb = new StringBuilder(); sb.Append(...