What is datetime2?
I´ve got this in a INSERT statment to MSSQL 2008 System.Data.SqlClient.SqlException: The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value. ...
I´ve got this in a INSERT statment to MSSQL 2008 System.Data.SqlClient.SqlException: The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value. ...
We have an FBA SharePoint implementation using a .NET Membership database. We would like to use this same database and collection of users for a new application. Has anyone tried this? I know in theory that it should work, but SharePoint can be finicky. ...
Hi I have a SharePoint WebPart that I made and I override the Render method. My question is how long does an object live before the GC cleans it up? I created a StringReader object in the Render function, I am just wondering will it be disposed of once the page has rendered or will I have to explicitly call the .Close method. Could ...
I've edited and trimmed this to try and get it closed because the site is prompting me to accept an answer or add a bounty. I did an experiment which had calls to GetUserStoreForAssembly and GetUserStoreForDomain in a library referenced by a console app but didn't understand why I was getting more stores than I expected in one case and...
Can someone tell me how to create to a "Please Wait" page. When the pageload is complete, the default.aspx page shows up. Is there a way to do that? I do not want processing images or anything like that. The actual page would be what I would want. ...
I'm using LINQ-to-XML to query a file for a list of objects. They all have the same structure (a set number of options, a list of parameters of indeterminate length). Based on their name in the XML file, I want to use the parameters for entirely different things - so I made subclasses of this object. My question is - how do I invoke th...
This seems like a fundamentally simple question. I have a WinForms dialog box with a listbox. This control is not populated via data-binding but is filled with calls to listBox.Items.Add (obj); It is possible that this call can be made asynchronously from various places and I would like to hook the listbox and watch for changes in it...
Are lambda expressions multi-threaded? Say when you write a mathematical formula as a lambda method, when you pass it to another method, would it be multi-threaded? ...
When you write an application in C#, and then run it, will it not be compiled again next time it's run, or everything that's used is gonna be recompiled every time the application starts up? How does JIT compiling works for caching? ...
Is everything under the GAC precompiled (ngened)? If so, then all of .NET is precompiled, so it's not possible for the CLR to optimize them at runtime? Like if you use List in your application then CLR will not be able to optimize the List itself, but only how it's used in your app? Doesn't this defeat the purpose of JIT, to get lots of...
BeforeNavigate2 event or any other similar event don't catch XMLHTTP requests in a WebBrowser Control. Is there anyway to solve this problem? This is a .NET project. Edit: I've found this C++ application which apparently can be used to solve this problem, but porting it to managed code doesn't look possible. Maybe I should change the...
I am wondering why, when in C#, if a use the set accessor to change a static class member, I get a Stack Overflow error. I am not disputing this as a bug, I just want to know what exactly is going on in the internals of the machine. EDIT :The question was a little unclear, sorry about that. ...
We have a web application on our server in a directory c:\inetpub\wwwroot\myapp Inside the myapp directory we have a sub directory called mysubapp. mysubapp has its own bin directory, and requires DLLs in the myapp\bin directory So the directories are as follows: c:\inetpub\wwwroot\myapp c:\inetpub\wwwroot\myapp\bin c:\inetpub\...
I have a datagrid that I need to get a value out of after it has been populated. I'd prefer it not be dynamic (no clicking). The datagrids final product is a set of headers and one row Header1| Header2| Header3 Value1 | Value1 | Value1 I'd like to be able to get any value regardless of its position but right now I only need to ge...
How do I disable the context menu in the IE WebBrowser control and instead perform custom handling of the right-click event in C#? ...
I'm curious to know if any basic CMS code has been written for ASP.NET MVC. The reason I ask is, I'm making a data-driven website for a client, and I've already spent a significant amount of time building it from the ground-up in MVC, but now the client wants content management facilities. Basically they want to be able to add/edit/rem...
I have a state machine workflow hosted in SharePoint with a delay activity in one state. When the timer fires the delay activity, I get a serialization error: "Engine RunWorkflow: System.Runtime.Serialization.SerializationException: Cannot get the member 'SendEmail_MethodInvoking'". The method this error references is not in the same s...
Consider this: public class interface Person : IPerson { int ID { get; protected set; } string FirstName { get; set; } string LastName { get; set; } string FullName { get { return FirstName + " " + LastName; } } } And this: public class StubPerson : IPerson { int ID { get { return 0; protected set { } } string FirstNa...
Hi, my question is as is:How to detect if a scrollbar is at or not at the end of a richtextbox? edit: when I say at the end I mean completely scrolled to the bottom, not anywhere else. ...
(EDIT: Made it a community wiki as it is more suited to a collaborative format) There are a plethora of ways to access SQL Server and other databases from .Net. All have their pros and cons and it will never be a simple question of which is "best" - the answer will always be "it depends". However, I am looking for a comparison at a...