dynamic

.NET 4.0 Dynamic object used statically?

I've asked another related question to this here: casting dynamic to static problem I've gotten quite sick of XML configuration files in .NET and want to replace them with a format that is more sane. Therefore, I'm writing a config file parser for C# applications that will take a custom config file format, parse it, and create a Python ...

C# 4.0: casting dynamic to static

This is an offshoot question that's related to another I asked here. I'm splitting it off because it's really a sub-question: I'm having difficulties casting an object of type dynamic to another (known) static type. I have an ironPython script that is doing this: import clr clr.AddReference("System") from System import * def GetBclUr...

are runtime linking library globals shared among plugins loaded with dlopen?

I've a C++ program that links at runtime with, lets say, mylib.so. then, the same program uses dlopen()/dlsym() to load a function from myplugin.so, dynamic library that in turn has dependencies to mylib.so. My question is: will the program AND the function in the plugin access the same globals defined in mydlib.so in the same memory ar...

What is the most simple implementation of IDynamicMetaObjectProvider?

Hi, I have this scenario... 1.- I'm providing a "Dynamic Table" for wich users can define Fields. Each Dynamic Table will have as many rows/records as needed, but the Field definitions are centralized. 2.- My Dynamic Row/Record class was inherited from the .NET DLR DynamicObject class, and the underlying storage was a List appropriatel...

Asp.net Wizard Control with Dynamic Steps gets stuck

I have a wizard control which must use dynamic steps in. I have the following code which loads the dynamic steps (this all works fine). I have 7 static steps. protected override LoadViewState(object savedState) { base.LoadViewState(savedState); int offset = 4; foreach(string stepName in this.ViewState["Steps"]) { ...

.Net generate dropdowns that affect other dropdowns

Anyone know if the following is possible in .Net, I've commented on how difficult I would consider each element to do. An online shop that allows users to dynamically add products (easy) Within each product they can create options - dropdowns (relatively easy) These dynamically generated dropdowns can affect the product price (difficu...

Javascript: Dynamic Check box (Fieldset with Father/Child Checkboxes)

I have a problem here, when I select any of the 'father' checkboxes all the child checkboxes are getting enabled or disabled. So I need each father checkbox to affect it own child fieldset. Could someone help me with this. Thank you <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html lang...

Dynamic table in Asp.Net

Hi guys, i hav just created a dynmic table by clicking d button. Here I've one problem, tat s. I want to insert the dynamic table in the bottom of view1 in multiview. how can i do this? ...

How to create several records in only one dynamic form?

Hi experts, please help me with a simple PHP doubt. I have a simple form: < form action="foo" > < label >Person:< /label > < input type="text" id="name" > < input type="text" id="last_name" > < a href="javascript:addmore();">Add More < /form > Every time the user clicks Add More two new input fields will be dynamically created ...

How long is too long for a script to execute?

What is the max time do you think is acceptable for a web script (PHP for example) to execute before it starts to become an annoyance for the user (on average)? I always thought that if the user has to wait more than 1 second for the page to load (this of course after images and css have been cached..this rule really only applies for sub...

Dynamic name of NSMutableDictionary?

Hi everyone I load from a txt file many info, and I would like, if possible, to dynamically create NSmutable dictionary with the elements of the txt. For example, each is like that: id of element | date | text What I'm asking is the equivalent of the NSString stringWithFormat:. Can we do the same for an Mutable Dictionary? To be more...

Possible to Dynamic Form Generation Using PHP global variables

Apparently there was confusion as to my original post so let me start over: I am essentially creating an online shopping cart which gives a manager the ability to enroll his/her employees for training services which we provide. We charge $49 for the services for every employee enrolled. The primary difference between this and a traditio...

How to transform one list to another semi-aggregated list via LINQ?

I'm a Linq beginner so just looking for someone to let me know if following is possible to implement with Linq and if so some pointers how it could be achieved. I want to transform one financial time series list into another where the second series list will be same length or shorter than the first list (usually it will be shorter, i.e....

How to dynamically show/hide rows in a table

I'm working on a website where I need to show/hide table rows. I got the feature working, but the CSS gets bad when I do show. I'm providing a working link; click the 'More...' link and see the action for an example. I'm using jQuery's toggle(slow) for hiding and showing hi, i have a page built using tables . http://ratingscorner.c...

Adding and removing inputs via jQuery's remove(), but page gets slow, how to free memory?

I'm dynamically adding a lot of input fields through jQuery but the page gets really slow when reaching 200+ inputs (think of the page like a html excel sheet). This is fine really because this scenario is not very common. However, when I dynamically remove the input fields from the page using jQuery's htmlObj.remove() function, the page...

XAML Parser cannot find resource within dynamically loaded XAP when creating form instance

I've followed Tim Heuer's video for dynamically loading other XAP's (into a 'master' Silverlight application), as well as some other links to tweak the loading of resources and am stuck on the particular issue of loading style resources from within the dynamically loaded XAP (i.e. the contents of Assets\Styles.xaml). When I run the maste...

Programmatically Add Controls to WPF Form

I am trying to add controls to a UserControl dynamically (programatically). I get a generic List of objects from my Business Layer (retrieved from the database), and for each object, I want to add a Label, and a TextBox to the WPF UserControl and set the Position and widths to make look nice, and hopefully take advantage of the WPF Vali...

retrieving background image from div when dynamically set

I am having an issue with setting the background-image of a #x to the background image of #y. Correct me if I am wrong but I think you would do this in a simple case by saying $('#x').css('background-image',$('#y').css('background-image')); The problem is that when y was initially set up, it was set up like this: <div id='y' style...

ASP.NET- forcing child/container events to fire before parent onload?

I'm working on a questionnaire type application in which questions are stored in a database. Therefore, I create my controls dynamically on every Page.OnLoad. This works like a charm and ViewState is persisted between postbacks because I ensure that my dynamic controls always have the same generated Control.ID. In addition to the user ...

Making dynamic images have static filenames

My website currently has various links to a php script that generates the images dynamically. For example, the link may say "img source="/dynamic_images.php?type=pie-chart&color=red" Obviously, this is not great for SEO. I'd like to somehow make the filenames of these links appear to be static, and use a solution (like Mod-Rewrite) t...