.net

.NET Assembly without a Disk Image?

Is this even possible? For example, I would like to read the assembly as a stream of bytes from the network or from a zip archive and run it from RAM itself without having to create an image on the disk. ...

c# and Date Culture Problems

I've written a asp.net app and one of my postback routines simply saves user submitted form data to a sql 2005 db. All runs great on my development machine but when I deploy to the live site I'm getting invalid dates from my parse date checker. Basically it is expecting an american date format on the live machine but this is not what I...

ASMX WebServices issue

Hi, We are sending the following request to a .Net 3.5 ASMX web service. <SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"&gt; <SOAP-ENV:Body SOAP-...

Dynamically Generate Modules in same Assembly Space

Hello, Consider I have a program running, which should do the following- Should read some code from a text file and should execute it in its own Assembly space so that the new code being executed can access all components of the code already running. How is that possible?? Help please. ...

What is the MVC Futures Library ?

On Stack Overflow, I've seen a few people referring to the MVC Futures library What is this project? How do I use it? Where is the documentation? ...

Comparison of available .net controls libraries

Which .net control libraries out there would you recommend as a must have for an enterprise? Can be free/non free Should at least contain a real powerful Datagrid Ajax functionality Are there any comparisons available? ...

C# Delgates and events

I have an assembly with a class which defines a custom event using a delegate and custom event args. Now i have to load this assembly dynamically through my code and create the instance of this class. Till here i'm fine. Now i have to provide a event handler to the event raised by the class object using custom delegate. How can i add a e...

Customizing The DependencyObject Inheritance Tree

I'm struggling to find sufficient information about the property Inheritance Tree (or Inheritence Context) used by DependencyObject and DependencyProperty. I would like to use the value inheritence capability of DependencyProperty outside of a typical WPF page, such that Object A is the logical parent Object B, and thus a value assigned...

How do I add a namespace while doing XmlSerialization with an XmlWriter?

I am using the XmlWriter in conjunction with Xml Serialization. I am able to output the XML fine, but how to include the xmlns attribute with the XmlWriter seems to be escaping me. To write the start of the document I use the following: Writer.WriteStartDocument(); Writer.WriteStartElement("urlset","http://www.sitemaps.org/sch...

Repeat ASP.NET Controls without Databinding

I have an ASP.NET page that requires the ability to have users enter multiple records. What I would like is to display a collection of textboxes with an add button below. Each time a user clicks the add button, a new, identical collection of textboxes will be added to the page. Then, when the user clicks submit, each collection of tex...

Entity Framework - .Include() / .Load()

I have an entity Test. It contains a Navaigation Property Question and Question contains a Navigation Property QuestionLocale. var test = context.Tests .Include("Question") .FirstOrDefault(); works as expected. But how is it possible to include the QuestionLocale? ...

What is the difference between Public, Private, Protected, and Nothing?

All my college years I have been using public, and would like to know the difference between public, private, and protected? Also what does static do as opposed to having nothing? ...

Best approach to separate and re-factor a large number of dependent classes

I have a v-large number of hierarchical structures (or DTO's) that are shared across different business logic, application tiers, web service and WCF contracts. I want to refactor all of my code to split the structures into discreet business domain areas. Two questions: Are there any tools that can help me do this (given that I want c...

Whats the best, most simple ajax file uploader?

I have asp.net 3.5 website, and i want to put an ajax uploader, but i want this ajax uploader to: don't refresh the page while/after uploading easy to integrate free Not swf upload control i will use it in uploading images, so want a simple way to get the uploaded image file name, and be able to tell it in which folder to upload to. ...

Skip .NET Framework 3.5 language pack download

I downloaded the .NET 3.5 SP1 redistributable package (231MB). On my machine I have more than 1 language pack. When trying to install .NET 3.5 SP1, the installer connects to the internet and downlands language packs. If no internet connection exists, the installer has 5 (depending on how many language packs exists on my operating system...

Writing a mini-language

I have an application that needs to allow users to write expressions similar to excel: (H1 + (D1 / C3)) * I8 and more complex things like If(H1 = 'True', D3 * .2, D3 * .5) I can only do so much with regular expressions. Any suggestions as to the right approach to doing this as well as any resources I can learn from would be much app...

CascadingDropDown Error - 'options' is null or not an object

I have five DropDownLists linked together with the CascadingDropDown AJAX control. When it's running locally, they work fine. However when running on the production server over the internet, I get this error every time I select a new item: 'options' is null or not an object Debugging this shows the function that's causing it (it's JS ...

Setting the contents of a textBox to upper-case on CurrentItemChanged

I would like the text in my textBox to be set to upper-case whenever currentItemChanged is triggered. In other words, whenever the text in the box changes I'd like to make the contents upper-case. Here is my code: private void rootBindingSource_CurrentItemChanged(object sender, System.EventArgs e) { toUserTextBox.Text.ToUpper(); ...

How might I use the W3C Markup Validator API in my .NET application?

I found that there's an API for the W3C Markup Validator. I had earlier asked: Is there a .NET library for the W3C Markup Validator API? Assaf's answer: This API is SOAP based. If you want to use it in a .net application you can just add the web reference and code against it. Seems simple enough as it's basically a one-met...

in .NET when you pass a class instance/interface as a parameter do you pass one object or the full vtable

If you are passing an interface or an instance of a class as a parameter, are we passing many objects or the full vtable, because once you call a method on the instance it need to recurse the vtable and call the appropriate one right? How does this work? ...