dynamic

How will you use the C# 4 dynamic type ?

C# 4 will contain a new dynamic keyword that will bring dynamic language features into C#. How do you plan to use it in your own code, what pattern would you propose ? In which part of your current project will it make your code cleaner or simpler, or enable things you could simply not do (outside of the obvious interop with dynamic lan...

Building Dynamic UI with C#?

I need to expose some input fields based on what properties I find for particular types in an assembly. I'm not sure how common an approach like that is. Perhaps there are easier ways. Maybe on the client side instead of server. If anyone knows of a good way of doing something like this, I would appreciate the help. Create input contr...

Creating subdomains dynamically for an application

I want to create subdomains dynamically through a PHP script or something similar. I've seen lots of sites that create subdomains for individual users, or for new forum spaces. I'm just wondering how that works, and how I can implement it in my system. Thanks for your help! ...

Building which properties to select with LINQ To Object

I am trying to build a LINQ query at runtime so that only certain properties are selected. I have thought of something along the lines of being able to build a query by appending additional .Select() calls to my query or using the dynamic LINQ extensions to pass a string of columns (would like to stay away from a string built query). H...

JFreeChart for dynamic xy plots in java swing gui application

Has anyone worked with JFreeChart-open source library for plotting xy plots? Could someone post an example of how to create an xy plot dynamically with the x and y values generated from the program? And where can i get a turorial doc or something of that kind to know about how to use the JFreeChart for developing applications? Thanks ...

Curious: is it possible to have dynamic Ajax data variable names?

Some background: On a recent project, I tried to write a streamlined jQuery plugin that would handle some Ajax calls made when various inputs were updated. I wrote the JavaScript function as a plugin so that I could just call it on various inputs, like so: $("#email").updateChanges(); Then, from within the plugin, I collected the inp...

Is this possible to invoke a constructor dynamically using relfection if there is no empty default constructor?

I'm using GetParameter to determine what parameters the constructor needs. I can get a list of them. Now I want to invoke the ctor. Is this possible if there is no empty one? ...

Create navigation menu dynamicly based on deployed jars.

Hi, I am just investigating the idea of this so have no example code. I've been digging around on the web but I'm not really sure what I should actually be looking for so I'm not finding much. So I thought I'd ask and see if anyone knew if a) This is possible. b) How I should do it. (Or at least what I should be looking to learn about t...

Redirect dynamic subdomain to same subdomain with subpage. How?

Hello, I'm a little stuck in here. I need to get some help with this subdomain-situation. I need to redirect http://dynamicsubdomain.example.com/ to http://dynamicsubdomain.example.com/account/welcome.html. How do I do this? I tried several things but all without result. The main problem is that I can't fetch the entered dynamic subdom...

how to use my own dynamic library in linux (Makefile)

Hi, all, I have a c++ project (g++/raw Makefile) designed for linux, I used to statically link everything which worked fine for ages. Now I want to build binaries both statically and dynamically linked. The following command is used in my Makefile to build the dynamic library (say libtest): $(CXX) -shared -Wl,-soname,libtest.so.1 -o l...

IE not rendering change in element display after changing it with javascript

Situation: I have a check box and a div container inside another div container. When the check box or the label for the check box is clicked, the inner div's display style should change. If the display is set to block, then it should change to none and vice versa. Code: HTML: <input id="oper_sale" type="checkbox" name="oper_sale" onc...

LoadControl vs Construct ASP.Net Control

Hi Guys, I have a question why we can only add dynamic control using LoadControl. For example: public partial class wucReportParam : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { wucDate() ctrl = new wucDate(); pnl.Controls.Add(ctrl); } } When in the page_load meth...

ASP.NET Dynamic GridView Creation

How can I add an Edit column in this GridView dynamically? I have been able to create this GridView dynamically with the following code. The aspx file: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="GridView___Test._Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "htt...

How can I re-instantiate dynamic ASP.NET user controls without using a database?

I'm currently working with a part of my application that uses Dynamic Web User Controls and I'm having a bit of trouble figuring out the best way to re-instantiate the controls on postback by using ViewState or some other method that doesn't require me to query a database on each postback. Basically what I have on my page is a user cont...

python: How to add property to a class dynamically?

The goal is to create a mock class which behaves like a db resultset. So for example, if a database query returns, using a dict expression, {'ab':100, 'cd':200}, then I would to see >>> dummy.ab 100 So, at the beginning I thought I maybe able to do it this way ks = ['ab', 'cd'] vs = [12, 34] class C(dict): def __init__(self, ks...

Loading of controls outside of Page_Load is a no-no?

My apologies in advance for posting such a lengthy question. Believe it or not, what you see here actually represents a fairly condensed version of the problem/code at hand. And while I would appreciate any pointers on a better or different approach, I would also very much like to get the bottom of this so that I can sleep at night :)...

Dynamic including javascript with jquery

Hello people! I'm facing a problem using IE here. I need to insert a form on distinct web pages in distinct servers and domains. I'm doing this through a javascript include like this: <script type="text/javascript" src="http://www.sisgol.com.br/teste/write_js.php?content=form_content"&gt;&lt;/script&gt; <div id="form_hypescience"> </div...

problems with postbacks events from dynamic controls in ASP.Net

I am currently working on a page that has a user control that builds a dynamic table. The control is originally loaded on the Page_Init event, and any time that an event is raised that changes the dynamic control the table is reloaded. The problem here is that if the control is changed between between loads, the events from the control d...

Render a string[] as a series of editable controls?

I have a string[] containing individual words parsed out of a paragraph of text. I need to display each word in its own cell, and have each cell be assigned a dynamic width based on the word's length. I want to be able to have as many words as possible within the maximum width of each row. In short, I'm trying to take a given parag...

Dynamic interception of calls in .NET

I am curious to learn if .NET supports any form of dynamic interception of method calls (or properties invoctions) at runtime. That is, can you intercept a call to an object without static compilation information such as an interface (along the lines of the CORBA DII (link text) or COM's IDispatch). If not, would the new 'Dynamic Typed ...