How to Learn k2.net
Hi I would like to learn k2.net what is the simplest way and is knowledge of sharepoint is mandatory? Any suggations body suggest me the easy approach.Thanks in advance. ...
Hi I would like to learn k2.net what is the simplest way and is knowledge of sharepoint is mandatory? Any suggations body suggest me the easy approach.Thanks in advance. ...
I'm writing some of my own data structures, such as binary and quad trees, and kD-trees. Is it possible to write them in such a way that allows for any number of dimensions? Something like: KDTree<2, string> twoDTree = new KDTree<2, string>(); twoDTree[3,4] = "X,Y = (3,4)"; KDTree<4, string> fourDTree = new KDTree<4, string>(); fourDT...
I'm trying to translate some C# LINQ code into VB.NET and am stuck on how to declare an anonymous type in VB.NET. .Select(ci => new { CartItem = ci, Discount = DiscountItems.FirstOrDefault(di => di.SKU == ci.SKU) }) How do you translate C#'s new { ... } syntax into VB.NET? ...
Does anybody know of a good library out there for taking a string of text and using regex (or whatever you want) to parse out any urls to links? For example: Input: I found this great site called google.com. You can e-mail the webmaster at [email protected]. Output: I found this great site called <a href="http://google.com">...
Possible Duplicate: C#: Xml-documentation for a namespace Where do I add comments for a namespace? A quick google led me to believe that it's not possible to add comments for a namespace without external tools. Is this true? ...
Hi, I'm getting this error: Invoke or BeginInvoke cannot be called on a control until the window handle has been created. On these lines: m_SplashForm.Invoke( new SplashStatusChangedHandle(delegate(string str) { m_SplashInterface.SetStatusInfo(str); }), new object[] { value } ); I'...
I'm trying to use a nested multi-line lambda Function in VB.NET and am getting an error. Here's what my code looks like: cartItems = cartItems.Select(Function(ci) New With {.CartItem = ci, .Discount = discountItems.FirstOrDefault(Function(di) di.SKU = ci.SKU)}) .Select(Function(k) If k.Discount Is Not Nothing Then ...
Facts: I'm working under Visual Studio .NET 2008 I'm using Cufon-yui.js as a font replacement tool. The link is inside of a Table (as it handle much more info) The command I use is: <asp:HyperLink ID="thisistheID" runat="server" NavigateUrl="#"> <h3 style="width:250px;">Title of the Link</h3> </asp:HyperLink> In Firefox and IE,...
Hello ; I am very new to C#, and i am trying to use a help package for my project. The package is written in c and has 1) /bin/ several .dll files 2) /include/ has a header file 3) /lib/msvc/ .lib file my question is how can i use those files in my C# WPF project? i know there is no "#include" in C#, and the .dll can not be imported ...
I have a Dictionary<string, List<string>> I want to do a check that all Keys in the dictionary have at least 1 item in its corresponding list ...
Is there possible to use sql-injection code while invoking DataTable.Select? How can I restrict such vulnerability or get rid of it at all? ...
Random r = new Random(); int sayi = r.Next(1, 49); textBox1.Text = sayi.ToString(); This code shows the first random number in textbox1, but I also need to get the output for the other textboxes as well: (first click)--->Textbox1: 3 (second click)--->textbox2: 24 (third click)---> textbox3: 32 ...
I am using Wix 3.0 and developed a managed custom action which dotnet framework version is 2.0. Now, I faced a problem. This custom action can not be run in dot net 4.0 only machine, say WinXP SP2 + dotNet 4.0. (For a managed EXE application, I can add app.config to indicate the supportedruntime with 2.0 and 4.0. But for Wix 3.0, I do ...
I'm using the following code in an attempt to programatically allow the NetworkService account to have access to a key: var RSA = new RSACryptoServiceProvider( new CspParameters() { KeyContainerName = "MyEncryptionKey", Flags = CspProviderFlags.UseExistingKey | CspProviderFlags.UseMachineKeyStore }); RSA.CspKeyContainer...
my class - Class GenericNameValueCollection(Of valueT) inherits from NameObjectCollectionBase, but when I iterate a collection of this class it lets me use any object in the for each loop , I want it to check the type of object and make sure that the object is the same type as the collection, but the NameObjectCollectionBase GetEnumera...
Hello, So, I have a base class which has a private locking object like so: class A { private object mLock = new object(); public virtual void myMethod() { lock(mLock) { // CS } } } This locking object is used for most of A's operations... because they need to be thread safe. Now, ...
I'm writing a game in which a character moves around on a randomly generated map in real time (as it's revealed.) This leads me an interesting data structures problem. The map is generated as it comes into view, in a circle around the character (probably 20-60 tiles) so where there is data, it is very dense, and all in a grid. Where ther...
I have a DataGridView databound to BindingSource which is in turn connected to a list of objects. After the data bindings are set up I'm populating the list from the background thread (using Form.Invoke of course). The problem is that the Grid is not updated. I can see in the debugger that the BindingSource contains items and DataGridVie...
Whenever I assign Id's to some elements via HtmlElement.Id, and then read the WebBrowser.DocumentText property, the Id of the element doesn't have the Id I assigned to it. Seems to me that the DocumentText is the IExplorer 'interpretation' of the web page, discarding everything that doesn't consider relevant to the visual aspects of the ...
Perhaps I'm overlooking something, but can client WCF not handle a server response that isn't a 200? For example, I'm trying to consume a service that returns a 400 when you asked for something naughty, but the body of the response is still a perfectly good and consumable SOAP message. It does the same for requested data that doesn't exi...