dynamic

How can I store the actual control in a list?

Long story short, I would like to take my usercontrols that are loaded dynamically and stick them into a list that references the actual object that has been loaded. So I can go into the list and pull results from the usercontrol. I would like to use mycontrol.GetResult() and it will then reference the control and grab the results from t...

SilkTest: how to define expression for dynamic drop down list

How do I define an expression (or any other alternative method) when I want to select a value from a dynamic drop down list? ex: drop down list has these values: Plan A (X) Plan B (Y) Plan C (Z) where, X, Y and Z are all random numbers. Is there a way where I can define my selection to select the text up to "Plan #" and ignore the "(X)...

Dynamic Subdomain PHP

Okay, this might have been answered before but apparently up until now I still haven't found the answer. You may notice there are some websites that may allow users to register to instantly get a subdomain of their own in the website. For example, the domain is www.domain.com. If I register a new user as henson, I will get my own page ...

Parse string into int32 using expressions in C#.

Hey, Basically I've wrote my own parser and I'm parsing a string into and expression and then compiling and storing to be reused later on. For (an odd) example the type of string I'm parsing is this:- if #name == 'max' and #legs > 5 and #ears > 5 then shoot() The hash parts in the string are telling my parser to look at the properti...

Expanding a dynamically allocated array

I have allocated an array as follows. #include <iostream> int main() { const int first_dim = 3; const int second_dim = 2; // Allocate array and populate with dummy data int** myArray = new int*[first_dim]; for (int i = 0; i < first_dim; i++) { myArray[i] = new int[second_dim]; for (int j = 0; j < se...

How would I write this dynamic linq query?

Hi all, Basically I want to write a linq query to order the number of days they were present. But I have got these six time filters- Today,Yesterday,current month,previous month,current year,previous year.So now I have this queries which I have simplified but before these queries below, I actually order these employees on different aspe...

Is Reflection the best way to determine the presense/absense of property/method on a dynamic object?

I have a number of data access methods that accept a dynamic object parameter (i.e., dynamic foo). I can't use an interface to define to type the input parameter due to existing code. I am setting properties in the data access methods, but using dynamic without checking to see if the properties/methods exist makes me nervous. So I am lo...

Dynamic LINQ help for sorting problem

I have a simple IEnumerable collection of Order objects. I want to write a generic sort function that accepts the collection and a sortkey that corresponds to a property on an Order object. I don't want to hardcode the sort instructions for every property. How can I build a dynamic LINQ string that automatically generates the LINQ for me...

dynamic Linq queries with Entity Framework

I am aware of few efforts in constructing Linq queries dynamically, such as this, and this. None seem to be ideal as I would like to avoid putting expressions in a string, and omitting a where if it is not needed. My main concern is that the query is optimized for the database, and dynamically omits unnecessary clauses whenever possi...

On the fly zip or tar creation?

I may NOT bother with this but if its very simple i may consider it. The site i am working on by design is to hold hundreds of thousands of files. I dont know if we'll have only one download or multiple. Right now the choices are A) Just the file B) An archive that has the file + license and conditions. I am trying to figure out it can ...

Is JCarousel Circular Dynamic Content still supported?

It seems as though legacy versions supported this feature but the latest version appears to only have examples for circular static content. Has anybody figured out a way to set up circular action with dynamic content (e.g. loaded from a PHP file) without too many hacks? I've searched a number of different forums and haven't even found ...

how to dynamically add the data to html file

i hav a tabular forms used to generate reports which are html files and i want to save these files by filling with data dynamically using obj-c.. any ideas how to do .. Thanks in advance ...

generating and displaying dynamic tables in adobe flex / flash / AIR

All, I have a adobe AIR application. In the app, I need to be able to create dynamic tables where I can display images and text. Dynamic in the sense that data in the table can be added, removed, modified, and table that is displayed changes to reflect the modifications. For example, the table contains 3 rows and columns, where there is...

How do I Dynamically adding a new Collapsed Panel to an Accordion in Ext?

I have an Accordion in ExtJS and I want to add new Panels to it dynamically. The Panels need to be collapsed when they appear. The code that I have now will create the Panels, but the HTML in each panel won't show. var loadoutput = new Ext.Panel({ title: 'Log', renderTo: 'logout', layout: 'accordion', defaults: { bodyStyle: 'padd...

dynamic variable names using Ruby's instance_variable_set

I'm trying to create a set of instances that have different instance names using instance_variable_set to change the instance name and I can't seem to get it to work. for i in 0..3 do username_str = String.new username_str = 'user_' + i.to_s username_new = User.new username_new.instance_variable_set("@#{WHAT_DO_I_PUT...

Dynamically generating a dropdown using json data?

I have developed a script that receives json data from a php script using $.getJSON. The JSON data looks like '[{"options":"smart_exp"},{"options":"user_intf"},{"options":"blahblah"}] ' <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt;/script&gt; <script type="text...

Call jquery function from c# to dynamically load textboxes

I have a form with multiple rows of text boxes. I use jquery .show() and .hide() to dynamically add or remove a textbox. In my codebehind, I retrieve a myReport object and based on the number of entries, I want to display or hide the right number of text boxes. I can use .visible = true / false but that removes the element from the pa...

calling trygetmember on chained null references

Is it possible to have a DynamicObject implementation that can be called in chain keeping a null reference to end if anywhere in the path a null reference is encountered, without throwing any exceptions? a.b.c.e for example: if a is null then a.b.c.e is null, or if c is null c.e is null etc.? Very much like the Maybe monad from Haske...

Want checkbox values out of while() dynamic list results - Need php code logic

I have a working dynamic image and text list page that shows results in table form. I've added check boxes (name = "select") to each item in the list results with the (relevant) code below. I want to filter the corresponding art_id's from just the ones with select ="1" echo "<tr align=\"left\" padding=\"1\"> <td align=\...

how to clone content of a div to another div

HI I want to copy the content of a selected div to another div with jquery clone. but I dont want to append it anywhere what I mean is when we make a clone of a div with jquery (correct me if i am wrong) we have to set its position and it will dynamically create a new division which is displayed. but I want to get the content of a se...