.net

Access Form Members with an integer?

Hello, In theory the whole thing I'm trying to accomplish is stupid from object orientated point of view,but I have to do it. Its an Online game I'm working on.The client has an inventory with items,you know - virtual items. The server sends the items with their corresponding position in the inventory. This is how my inventory looks l...

How to deploy SQL and attach DB: With ClickOnce?

I need to deploy a winform app that uses multiple db's. I need to deploy them with my app as they interact locally. Can I use ClickOnce or should I be considering a different approach? I found a couple of examples for ClickOnce but they all assumed that the DB is included in the Solution, which isn't the case here. THis app used ...

What's the quickest path for a DotNet developer to start using Java?

In my particular neck of the woods, .NET development is a little dry and low-paying, while is appears Java development is still pretty hot. Contracts are going for very good rates as well. What avenues should I take to parallel my development expertise in DotNet with Java? I'm a senior developer/architect/dba. ...

This java technology stack in .net?

Hi, Having worked for Java for 7 years I'm now moving into a project in .net. The team I'm working in have recently used a technology stack that we are fairly happy with in the business layer and below: Spring for dependency injection, transaction management, security and for adding interceptors and for getting the possibility to injec...

What happens if you close a SqlConnection before the SqlDataReader?

What would happen if you call Close() on a SqlConnection object before you call Close() on a SqlDataReader using that connection? Actually, what I really want to know is whether or not the order in which you Close them matters. Does calling SqlConnection.Close() completely close the connection, or will it remain open if you do not call...

Do Fluent NHibernate and migratordotnet play nicely together?

I love Fluent NHibernate for building my DBs and so far haven't found a restriction that has halted me in my tracks. However on my current project I expect to release to production very early in the product lifecycle and hence expect there to be many small changes in the db schema as we progress. I'd like to track these DDL amd DML cha...

How to downcast a ref variable within the method

I need to downcast a long to an int in a method where the long is passed as a ref variable: public void Foo(ref long l) { // need to consume l as an int } How can I easily do this? ...

Custom Server Control causes full postbacks inside of UpdatePanel

I have a custom server control that seems to work fine until I put it in an UpdatePanel. Once inside the UpdatePanel it continues to work fine but the UpdatePanel now does full postbacks when my custom server control does a postback. Do I need to do anything to make my custom server control do async postbacks while inside an UpdatePa...

Exchange Server - Global Access

Hey everyone, I'm trying to create a web-based app that can interact with Exchange server globally. Meaning, I need it to have the ability to view, change, delete, and create all e-mails, calendars, appointments, tasks, notes, etc... across the domain. I am using .Net, and have been looking into sinks, but wasn't sure if this was the ...

Open File - Security Warning

OS: Vista Business 64-BIT Coding: .NET and 3-rd party EXE Issue: Security I have downloaded curl.exe to assist me in loading Product information from Amazon. Curl.exe has been pre-compiled and is NOT a .NET app, so I do not feel comfortable in making any changes to the build of curl. On to the problem. When I execute CURL I get thi...

Creating and executing a Merge Replication programatically

Let me preface this by saying I now realize how stupid I am and was. I have been developing for 1 year (to the day) and this was the first thing I wrote. I now have come back to it and I can't make heads or tails of it. It worked at one point on a very simple app but that was a while ago. Specifically I am having problems with Local...

How do you get Mobilink to synchronize tables so that the most recent updated table is not overwritten?

Here is the scenario. I have an Oracle consolidated database. I am using Mobilink to synchronize Oracle with a SqlAnywere database that is being used on a handheld. If userA changes a record in the remote DB on their handheld device to "updated first" and then 10 minutes later userB updates the same record on their handheld device to ...

Why isn’t ObjectDataSource’s matching algorithm as flexible as…?

Hello, Even though UpdateNames stored procedure only takes one parameter named @First, we are still able to define additional parameter named Last, and the update will still be successful: <asp:SqlDataSource ... UpdateCommand="UpdateNames" UpdateCommandType="StoredProcedure"> <UpdateParameters> <asp:Pa...

I assume SqlParameter.IsNullable only makes sense when…?

1) When SqlParameter.IsNullable is set to true, received null value is converted to DBNull.Value and sent to database. Thus I would assume setting IsNullable to true only makes sense when GridView’s Parameter.ConvertEmptyStringToNull is also set to true? 2) Both GridView’s and ObjectDataSource’s parameters have a ConvertEmptyStringToNul...

.NET for a legacy VC++ 6.0 developer

What are some of the best books/approaches to learn .NET for a legacy VC++ 6.0 developer? I am hesitant to learn a new language like C# or VB.NET for various reasons. I am experienced in C++/Win32 programming. I am more inclined towards learning C++/CLI to get hands on .NET development experience. Is this a good approach? What did you do...

.Net: Reference System.Web.UI in Class Library Project

SetFocus I'm trying implement the above Se Focus code in a Class Library that i have. The class that I'm going to implement in is call HtmlHelper class but I can't seem to reference the System.Web.UI class in the Class Library project. How do you reference the System.Web.UI in Class library project? ...

Tracking File-level Versioning in builds using Visual Studio and .NET?

I want a tool or a technique to be able to answer the question "What version of file X was used to build Assembly abc.dll?" I recently moved to a .NET development group, and it seems like this question comes up all the time, in one form or another, and we don't quite have a handle on it. Someone will say something like "Hey, is your la...

Test and Mock framework for Java and .NET

I'd like to know your thoughts about test/mocking frameworks that are widely used and have a good level of compatibility between Java and .NET. I mean, I want to learn those tools to use in a .NET project, but I still wanna be able to apply that knowledge in Java projects. I know there're many questions about test/mocking frameworks to...

Why is there no Tree<T> class in .NET?

The base class library in .NET has some excellent data structures for collections (List, Queue, Stack, Dictionary), but oddly enough it does not contain any data structures for binary trees. This is a terribly useful structure for certain algorithms, such as those that take advantage of different traversal paths. I'm looking for a correc...

Why a simple <% Eval() %> will work in IE and Chrome and not in Firefox?

The code below: <asp:HyperLink ID="Image1_Link" runat="server" Text='<% "< img src=" + PhotoGalleryBaseUrl + Eval("image_file_name") + ">" %>'> </asp:HyperLink> Image Size: <asp:Label ID="image_sizeLabel" runat="server" Text='<%# Eval("image_size") %>'> </asp:Label><br /> Renders like this in Chrome and IE: And renders like this i...