I created a typed data set in one project, and moved it to another. The orginal connectionstring it created in the settings file was something like "myconnectionstring2". When I moved it to the new project I went into the project settings file and created a connection string called "myconnectionstring". I'm trying to get the typed datase...
Are .NET collections with large number of items apt to be stored in the LOH?
I'm curious about List and Dictionary specifically. In my code, I store a large number (40k+) of relatively small objects (lets say 1k) in temporary Lists and Dictionarys for processing. Does the number of items in these collections increase the likelihood of b...
What's the difference between the WebConfigurationManager and the ConfigurationManager?
When should I use one over the other?
UPDATED
I just looked at the WebConfigurationManager, and for some reason, you can't access the connection strings as you do in the ConfigurationManager (like an array). Can anyone tell me why MS made it like ...
I have created a text area that allows users to enter html code. When I attempt to post this code back to the server, I get a popup window that says "Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occured while processing the request on the server. The status code returned from the server was: 500".
I believe this...
I'm rewriting an in-house client-server application as a .NET MVC application. It needs to send and receive files via secure FTP. The original application was client-server and used MOVEit Freely to do SFTP. Is there a library or product I can use to do it from within .NET?
...
Just starting out using model view controller design pattern in a mobile application and
I have a quick query.
Basically if I have a listview control on my view and my controller needs to access properties on the listview when an action is performed, like the items checked and the listviewitem vales, do I just expose on my view interfac...
I have a really simple WPF ListBox with SelectionMode set to Multiple.
<ListBox SelectionMode="Multiple" />
When the ListBox loses focus it's really hard to tell what's been selected because the selection colour changes from blue to a light grey colour. What's the easiest way of changing this behaviour so that it stays blue?
I know i...
I would like to use a Validator to guarantee that a given textbox's submitted content is unique. I want to make sure that the name put into the box is not the same as any other text box.
The catch is I don't know at compile time how many other text boxes it will be compared to. It could be anywhere from 0 - n other name text boxes.
Tha...
This question seems to have been asked before, but I feel like my situation is slightly different.
I have a page that contains a gridview. When a button is pressed to edit one of the records in the gridview, the button first executes some client script that pops up a modal window for the purposes of editing (set using .onClientClick)...
There is a debate going on at my company. Some are advocating moving business, data and business entities in one assembly for
Discoverability purposes. make it easy to find what you're looking for.
Reduce the number of dll's we need to add to a project for development
Others citing the application architecture guide want each layer...
The description is bit on the longer side please bear with me. I would like to process and validate a huge XML file and log the node which triggered the validation error and continue with processing the next node. A simplified version of the XML file is shown below.
What I would like to perform is on encountering any validation error...
Is there any way to determine the PID of a process that was started by instantiating a COM coclass?
For example:
MyApp.ApplicationClass anApp = new MyApp.ApplicationClass();
would start the process myapp. Potentially there are already a lot of myapp processes running when this code is executed.
My current solution to acquire the la...
I'm looking for a template engine for .NET/C# to generate email notifications in my application. I read about NVelocity in the past and think it would fit my needs, but it seems this project is dead.
Would you still recommended to use NVelocity for that purpose or can you suggest any alternatives?
Note: I found some other templating en...
Hi,
Is there a built in function in C# / .net that will take a variable and describe / output it's contents? In PHP there are the print_r and var_dump functions which achieve this (I realise the inherent difference between C# and PHP, just providing a example of output)
As this is for a logging script it needs to be as lightweight an...
Hi,
I have my web site with a blog (created in blogengine), but i need to integrate a comment system to the site away from the blog.
for example i have different modules to manage news and events and i want visitors to leave their comments for the modules (for difreent news and events). Is there any system (.net 2.0) to do this or i ne...
What is the most prohibitive aspect of having a universal comment identifier for all .net languages?
For example, in each language the symbol "??" would identify a comment. (I'm not saying that it should be "??"... just an example.)
...
Can you explain to me why I should inherit from ICloneable and implement the Clone() method?
If I want to do a deep copy, can't I just implement my method? Let's say MyClone()?
Why should I inherit from ICloneable? What are the advantages? Is it just a matter of making code "more readable"?
...
Can mod_mono's AutoHosting be modified to support ASP.NET? ATM it doesn't really work: Link. / works, but the runtime ignores Global.asax altogether and doesn't follow the routing conventions.
...
I'm using ServicedComponent from EnterpriseServices AKA Com+ for
Distributed transactions
Simple transaction programming by using attributes
Object pooling
Things that I find lacking in com+
The lack of dll versioning
Pain of having to gac & reg every time I change a component
Having to attach debugger
I'm aware that WCF solves ...
I've added a Web Deployment Project to my solution to create a clean deployment of my web application. This works mostly as expected... i.e. builds the source & then copies the files to be deployed to a /Release folder (and excludes things like source files and my .svn folders, etc).
But now I want to explicitly exclude some other files...