.net

Communicate/Send Image to a VB.Net App

I am writing a VB.Net application wherein I would like to be able to communicate with it from a remote computer. Specifically, I would like to be able to send (from a remote computer) both text data and also images (jpg, png, etc.) and then have the application use the sent information by displaying it to the user. How would I code th...

Windows Service cannot access Castle Windsor config data in app.config

Hi all I use Castle Windsor in a couple of web apps just fine by putting the config data in web.config. So when I decided to use it in a Windows Service I thought it would be a cinch. My app.config file looks like the following: <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="castle" type=...

CellValueChanged vs CellValidating Events for DataGridView

Hello, What's the best place to implement validation logic code and conditional formatting code for a DataGridView? In a lot of books and articles that I've read on this control, it seems to suggest that the appropriate event to handle for this is the CellValidating one. Well, the name more than implies this as well. However, this eve...

get type IRepo<T> when i have the string name for T

basically I have string s = "Foo" I need to obtain Type t = IRepo<Foo> but from string ...

Having problems analyzing a .dmp with WinDBG

Hi All, I will start by saying this is the first time I have done anything with WinDbg so excuse my silly mistakes if that is the issue. My website has been using a lot of memory and after reading blogs and watching videos by Tess Fernandez I am trying to use WinDBG to analyze my dump file. The setup: My web server is a Windows 2008 6...

Subclassing C#'s object?

For a program I'm making I'm using object to hold the value of HTML attributes. There's a bunch if things I do with these values in the whole program. So I would basically like to create an alias for object whenever is used to hold values of HTML attributes to something like AttrValue just to make the program more clear, and to be able t...

.NET database calls slow when using COM Interop, fast via query analyser

I have an Sql query that looks up a person based on SSN and returns the PersonID (identity column). There is a index on the SSN column in the persons table. I have an old VB 6 application that uses COM/.NET interop to call this query. When it does it runs relatively slow. I set up a trace using SQL Profiler and each call has a duration ...

Interface/Inheritance/Delegate design issue

I have a set of messages, that all derive from Message, and implement the interface IMessage: class Message : IMessage { public string example1; } class LogOnMessage : Message { public string password; } class LogOffMessage : Message { public string anotherExample; } I have a messaging system, in which a proxy is able to de...

.NET: Way to determine if object has any references to it?

Q. Is there a way to find out if an object has any "strong references" to it? Raymond Chen hinted that a solution might be possible: You want to know whether the reference count is zero or nonzero. For that, use WeakReference. Notes i have a "weak reference" to the object (using a WeakReference). If i had a strong referenc...

Is there a free spreadsheet or spreadsheet-like control for Visual C++/ VB.Net?

I've been wanting to put together a simple little app that'll let me create simple spreadsheets; just entering data into a grid, maybe with a little basic font/cell/border formatting in there for good measure if possible. In other words, I want to just slap together the spreadsheet equivalent of Notepad. Looking around, I can't seem to...

Customize WCF Add Service Reference Behavior ?

Is there any way to customize or control which type of collection class types are created in the WCF client Side interface Types when using the default "Add Service Reference" menu option in Visual Studio? Our WCF service is such that when the automated "Add Service Reference" runs, it creates DataSets for all the server side types tha...

How to substitute placeholders in word documents w/o office installed?

...title says it all p.s. it might be acceptable to use rtf and just rename extension to doc/docx/whatever. ...

Looking for .Net training for advanced topics

Looking for advanced training in following topics for experienced .net developers. MVC 2.0 nHibernate C# .Net 4.0 Visual Studio 2010 Linq This is for a group of 5 developers. Training can be on-site or off-site. Location: NYC When: immediate ...

DotNetNuke 5 - How do I dynamically create a Page, select a Skin, and assign Modules to it?

In DNN 5, I need to: Dynamically create a page (programmatically) select a skin assign modules to the page How do I do this? Thanks ...

Security vulnerability testing tool for .NET web applications?

Hi, I am planning to check my website against all common security vulnerabilities like cross site scripting ,sql injection etc. Can somebody tell me is there any automated tool which I can run for my .net web app and find all security flaws exist. I tried CAt.net but it is not able to support big apps. i saw abt owsap but againt it is a...

Custom validation that checks if email already exists in DB. HELP!

Hi, I'm new to .net MVC but am making heads way. I'm trying to make a custom DataAnnotation validator that checks to see if an email address is already registered. I am using LINQ to SQL. My Model is below: // Model public class UsersRepository { private DigitalentDataContext db = new DigitalentDataContext(); BaseController base...

Disabling Visual Studio Development Server - Any way to do this per project?

When debugging my website project I usually go to start options in the web project's properties and select 'Don't open a page' and 'Use custom server' with a url that's in my host file pointing to my local IIS. Even when I do this though visual studio still spawns it's own Development Server instance every time I hit f5. Is there any w...

Ordered execute threads

Hello everybody I have an console application which interact another user interface. Interface sends commands and my application should to process them. It is important to keep listening my console application while processing and execute commands in ordered. So i listen interface on main thread and execute commands in another thread. ...

How to make Google crawlable AJAX pagination in .NET

I have searched a lot and have found enough about it but I am unable to apply it. I have an Ajaxhandler to request as: ..test.ashx?pagenumber=1 And I want to make it crawlable. ...

ASP ListView Formatting

I have a item in a listView control like this <asp:Label ID="Label2" runat="server" Text='<%#Eval("Open") %>' /> The 'open' is coming from a database via linq to sql. The open can either have a value of Y, or N. I want it to say instead 'Open' or 'Closed'. What is the best way to do this? Can I do it in the mark up? ...