.net

ClickOnce - Client Requirements

Hello, I am currently working with some users that do not have the .NET Framework installed. I have a ClickOnce application I am attempting to deploy. This has lead me to arrive at two questions: What is the minimum version of the .NET Framework required on these users machines? I have heard .NET 2.0 and .NET 3.5. If a user has .NET ...

Sqlserver2008 & Virtual Earth

Hi All, I am using sqlserver2008 to display information on top of virtual earth.I have written one genericHandler to retrieve data from Sqlserver2008.I am calling handler through javascript.The problem here is when i run handler through broser it is giving me coorect feed.But when i try to load call from javascript i am getting the erro...

Can I Deserialize a JSON string into an object if I only know the parameters of the objects' constructor?

This is like a follow-up question to this one. Basically what I'm doing is exposing some fields on some UI to some user. These fields are established based on the parameter list of a given objects constructor. The user has the options to choose which object the UI is displaying by, oh I don't know, let's say picking an object from a dr...

Convert TLB file to assembly with custom assembly information

I am using tlbimp.exe to generate an assembly from a TLB file. I know that I can use the "asmversion" command line switch to set a custom version number, but how do I set the other information? I would like to set the fields like "Product Name" and "Company", but I don't see a way to do this. Can it be done with tlbimp, or any other tool...

Fixed Panel Height in a SplitContainer

I have a WinForm containing a bindingNavigator at the top and a splitContainer with two horisontal panels below it. The splitContainer fills the space not occupied by the bindingNavigator. I would like to set the bottom panel to a fixed height of, say 100 pixels, and have the top panel fill the rest of the space. This is my current cod...

In-house Frameworks vs New C# Technologies

If we have developed our own ORM framework and the framework is working fine over the years then why should we learn and use brand new .net technologies like LINQ or Entity Framework or NHibernate or CSLA.NET for our upcoming software projects? Note : New frameworks need new effort to learn and teach. Note : This is just an analogy. ...

FileUpload in .NET not saving image

Hi guys Here's my code Dim amPhotoPath As String = "\graphics\Profiles\" & ViewState("fileName") personalPhotoUpload.SaveAs(Server.MapPath("~") & amPhotoPath) For some reason the image is not saving.. if I debug the code, and get the URL in Quickwatch, the folder opens, so the path is correct, but it just doesnt save! I have just set...

.Net MVC: Bind route value to a session value

Hi I want to do the following: The user should have his own sub site on my web site. Therefor I've added a new route: routes.MapRoute( "ShopEntered", "{username}/{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" } ); When the site gets called for the first time I want to store the username...

Example of Dependency Injection with only base class

Is it possible to do DI without any third party tools? I've read about people doing it with an abstract class and interface before they discovered some DI framework. How is ID done in that very basic form? ...

How can I validate a JSON string against a schema programmatically?

Are there simple libraries out there (.NET and Java) that are able to validate a JSON string given a schema definition? It should work similar to how XML can be validated using XSD. EDIT: I need .NET and Java libraries. Thanks to darin for the .NET link! ...

How to format the result set of parent child records?

All, I have a result set coming from several SQL Server tables, and I need to know what the best way to get the sorted records I need would be. I have the following records; a user name and module number as parent records, and then for each of these modules there are multiple sub-module child records. The problem I'm having is that the...

Is there a production quality Google Protocol Buffers implementation in .NET

The title says it! I know that Jon Skeet was working on an implementation and I heard an interview (Dot net Rocks?) where he implied it was w.i.p. The latest page just shows a version number. So, is it now production ready? thanks ...

How to get user info from Google Contact API?

How to get user's data from the user that I'm authenticating with using Google Contact API? ...

.NET regular expression - ? isn't working (like I think it should)

I have an HTML page (it's out of an internal address book application) and I'm trying to match both the field name and field value out of a table. The regular expression I've cooked up so far is "href.*?>(.*?)<\\/a.*>(.*?)<\\/span" which matches most of the keys and values just fine. The problem is that some of the values are also l...

.NET Tab Control Not Scrolling

I have a regular old tab control sitting on a form. I have a user control dropped inside of the tab pages and it is definitely larger than the viewable area of the tab page. For some reason, though, the tab page will not show scrollbars even with AutoScroll set to true. Does anyone know a way around this? I'm pretty sure I'm thinking...

Why would DATA_TYPE for column schema be negative in ODBC?

I am trying to allow a user to select a table a 2 columns from that table for use in a query. They define the provider and the connection string to choose the database. This is done using the DBProviderFactory and the DBConnectionStringBuilder. The problem seems to be when using the ODBC provider, other providers (OLEDB, Sql) seem ok....

Available off-the-shelf .net Frameworks

OK, I was just gathering some experience from Gurus in this post. I am still a student and an Intermediate as well. Now the question is, what ORM and Business Objects framework should I choose from off-the-shelf products available today(like LINQ, Entity Framework, CSLA.net, Spring.net, NHibernate, Enterprise Lib) and why? Should I go ...

.Net Remoting Events - How to prevent Multiple registrations

I have written a winforms client app that uses remoting to monitor and control a .Net Windows Service. The Service fires events for which the client registers to a handler, using this (simplified) code... Server creates Server-side instance of Message Manager and registers it with Remoting using this code: // MessageManager is si...

how to make a ListBox change the text of an item?

I have a .net winforms ListBox and I've added items to it using .Add(). I change one of the objects in the list, such that it's ToString() method now returns a different value, but the display value of the item doesn't update. What do I need to call to tell the ListBox to re-read the ToString values? ...

.Net Namespace Question

Hi, I have two namespaces: 1) Foo.Bar 2) Another.Foo.Bar From a class in namespace 2, how do I reference a class in namespace 1? Using Foo.Bar leaves you in namespace 2 still... I hope this is reasonably clear! Thanks. ...