I'm trying to understand a little about the relationship of server-side code to client side code in Silverlight.
I would anticipate that you can't simply 'eval' a string and have new code, but could you load an assembly on the server side and include it with the Silverlight code that is sent down to the client?
I'm a complete 'noob' wh...
Looking for a scalable, flexible and fast database design for 'Build your own form' style website - e.g Wufoo.
Rules:
User has only 1 Form they can build
User can create their own fields or choose from 'standard' fields
User's 1 Form has as many fields as the user wants
Values can be the sibling of another value E.g A photo value coul...
I have an app that uses some code scripts to generate dll's at run-time and invoke them as needed and have run into some questions before i go ahead and code it !
Is it possible to unload them from memory when not needed ?
If not - what would be the performance impact of loading them into separate appdomains and invoking the calls using...
Hello.. Please I have a class in c# whose main function is to return the types and objects as dictionary Over a service .
Is it possible to cast the Object sents over the WCF service in the front end.
I.e using reflection to get the type of an object from the types.ToString() and using the type to cast the objects.
NB the Class that ...
I'm having a real nightmare trying to do what should be a very simple task. If I embed a static or independent SWF file, it shows up fine on our ModX powered website. However, when it comes to a dynamic SWF (one that references an XML file and image files etc) I just can't get the thing to show up at all.
According to the Flash Menu prog...
Is it possible? div "menu" and "submenu" needs to be 50px tall. "top" and "bottom" needs to be 60% and 40%. The behinde-the-scene-calculation would be 60% - 50px for "top".
<div id="menu"></div>
<div id="top">
</div>
<div id="submenu"></div>
<div id="bottom">
</div>
...
I have an issue using the Dynamic Expression API. I cannot seem to compare a DataTable field against DBNull.Value. The API is supposed to be able to "support static field or static property access. Any public field or property can be accessed.". However given the following query:
var whatever = table1.AsEnumerable()
...
I'm dynamically creating UIButton's in my app. When I show the buttons I want to animate them. I can't seem to get the buttons to animate with this code:
UIImage *buttonBackground = [UIImage imageNamed:@"ButtonRed.png"];
for (NSInteger x = 0; x < 4; x++) {
CGRect btnFrame = CGRectMake(x * (buttonBackground.size.width+2),
...
Is this possible? Here's what I'm trying:
public ActionResult Index()
{
dynamic p = new { Name = "Test", Phone = "111-2222" };
return View(p);
}
And then my view inherits from System.Web.Mvc.ViewPage<dynamic> and tries to print out Model.Name.
I'm getting an error: '<>f__AnonymousType1.Name' is inaccessib...
I know this should be real simple, but I have googled this problem and I do not see the same available properties for my button. What I have googled says I should be able to change an HTML button's location with the Location property. However, this is not an option for me. How do I change the button's location dynamically in C#?
Here ...
Hi everyone,
I've successfully been able to add controls (labels, images, buttons, etc) to a panel control (using VB/ASP). This panel control, I refer to it as "insertpanel". Then I add this panel to the main panel on my webpage which I made during design time. The problem I run into is that when I add multiple controls of any type to t...
Hi All,
I have Dynamic dataWebsite which uses a SQL SP to do update operations..I have a problem here, my delete functionality is also a update(setting IsDeleted=1) operations. I am currently using LINQ query and calling datacontext.SubmitChanges() for deleting. The problem is, the update LINQ query(that sets IsDeleted=1) when i call Su...
In the C# 4.0 demos, I'm seeing lots of code that uses the dynamic type. For example, the following code sets the value of an Excel cell:
excel.Cells[1, 1].Value = ...
However, you can also access the cell in an early bound manner with a cast:
((Range)excel.Cells[1, 1]).Value = ...;
Why don't the Excel COM library just describe the C...
In dynamic languages such as Ruby and Python, the concept of a formal IOC pattern with a traditional (for us static guys) interface-driven implementation doesn't exist.
Will C#'s upcoming Dynamic type cause or at least enable the need for static IOC patterns to be eliminated? That MS's P&P Unity project takes 231 pages of documentation ...
Let's say that I need to generate variables to hold some input from the user (I don't know how many they are). Without using Array, ArrayList (and other kind of lists and maps) can my code generate (lets say) String variables X times with names like (String var001, String var002, String var003, etc)? If yes, please provide sample code.
...
Is there a way to dynamically create unittest test cases? I have tried the following..
class test_filenames(unittest.TestCase):
def setUp(self):
for category, testcases in files.items():
for testindex, curtest in enumerate(testcases):
def thetest():
parser = FileParser(curtest...
Situation: Currently we have type safe static code that represents commands we can send to units out in the field. In addition we have another development team who does development on the units, they implement commands on a different release cycle then us and management is asking for our side to be more flexible as in create code that wi...
Hi,
Does anyone know how to create an animated gif using c#?
Ideally I would have some control over the color reduction used.
Is using imagemagick (as an external started process) the best choice?
thanks!
...
What is the best way to dynamically P/Invoke unmanaged code from .NET?
For example, I have a number of unmanaged DLL's with common C-style exports between them. I would like to take the path to a DLL and then P/Invoke a function based on the exported name. I would not know the DLL name until runtime.
Basically, what is the equivalent...
Good afternoon! I've spent half my day trying to figure this out; hopefully one of you can help.
I have written a limited CMS and am working on allowing content from the CMS to be displayed as interstitial pages within external sites. To do this, I wanted to create a WCF service that would render the appropriate content and return it as...