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...
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=...
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...
basically
I have
string s = "Foo"
I need to obtain
Type t = IRepo<Foo>
but from string
...
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...
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...
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 ...
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...
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...
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...
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...
...title says it all
p.s. it might be acceptable to use rtf and just rename extension to doc/docx/whatever.
...
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
...
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
...
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...
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...
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...
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.
...
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.
...
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?
...