dynamic

IE Browser related problem

Hi, I am having a weird browser issue - works fine with FF, chrome but not in IE What I am trying to do is dynamically form the html for printing a coupon - and a part of it is a link redirecting to another page onclick = String.Format("javascript:PostBackCoupon123('{0}','{1}');", zipCode, cityName); couponContent.AppendFormat("<a bor...

Is there a library to use Linq to directly query databases, dynamically?

I have a very dynamic SQL Server problem to solve. I am developing a tool that verifies matched data in multiple databases. [NOTE: the requirements on this project are pretty strict] I need to make a C# tool that lets a user select any database from a dynamic list, then lets the user select a table (acting as a source db/table). Once th...

jQuery - Dynamic table rows don't work in IE/Opera

Example (works in firefox): http://progamonth.com/files/tablestestfile.html I can't get select elements to dynamically get added to a table. This works in firefox, but it fails in IE and Opera. What's going on here? DOM code: <table id = "myTable"> <thead> <tr><th>1</th><th>2</th><th>3</th> </thead> <tbody> </tbody> </table> <select i...

How to create a dynamic page title using PHP

Hi I was wondering if anyone can help with this PHP problem. Is it possible to use the text in a H2 tag and use that to populate the page title dynamically. I'd also like to be able to use this same technique to add the H2 text into the meta description - Can anyone help? ...

object_setClass to bigger class

I am changing the class of some objects using object_setClass(id object, Class cls). I am changing the class to a subclass of the original class. Then I set some properties that are only defined on the subclass, and things seem to work fine. I was a bit surprised that this worked, because object_setClass, as far as I understand, doesn't...

Dynamic linking a library - successful when executable is built, same setup fails when another .so is made

I am writing a numerical code, in which I would like to use a third-party-written shared library. I am working on an x86_64 k8 architecture, under CentOS. The desired target that I would like to build would be either a Python or a Matlab extension module, which are, from what I understand, gcc-built dynamically-linked shared libraries, w...

XML navigation and reading using C# 4.0 dynamic?

Is there a DLR-enabled XML navigation and reading class available in .NET 4.0? For example, imagine I have this XML: <foo> <bar>foobar is here</bar> <bar>foobar is also here</bar> <baz>foobar is not here</bar> </foo> Is there an easy way to navigate through this XML like this: var doc = SomeDlrEnabledParser.Parse (xmlStrin...

Duck Typing DynamicObject derivate

I wrote a class that allows a derivate to which of its properties can be lazy loaded. The code is: public abstract class SelfHydratingEntity<T> : DynamicObject where T : class { private readonly Dictionary<string, LoadableBackingField> fields; public SelfHydratingEntity(T original) { this.Original = original; t...

Dynamic CRM 4.0 SOAP exception

Hi All, When I try to develop CRM stuff, using the code below: public static CrmService GetCrmService() { //Standard CRM setup var authenticationToken = new CrmAuthenticationToken(); //Using the active directory authenticationToken.AuthenticationType = 0; authenticat...

MVC 3 (Preview 1) Dynamic ViewModel

I've just taken a look at the new features available in the MVC 3 preview: ScottGu's Blog. There are a lot of good improvements and it's well worth a read to see where MVC is going. The thing that struck me was the addition of a dynamic type ViewModel. The point being that you would not need to reference view data using ViewModel["Messa...

python : read a line, then instantiate a class named in the line

Hi, I'm sorry if I wasn't clear enough in the title, don't hesitate to correct it if you find a better way to express that: I have a file where there are class names, i.e.: classa classb classb classc classc classc Then I want to read it line by line and to dynamically create that class. I would do something like that in php: while...

How do I create / access dynamic form fields in Django from within a View?

Hello, I have a system which keeps lots of "records" and need to integrate a component which will produce reports of any selected records. To the user, it looks like this: Click "Create Report" Select the records to be included in the report. Hit "Submit" and the report is displayed. To me I think: Load all records. Create a Repo...

How to get rid of XmlIgnoreAttribute() when creating proxy dynamically from wsdl?

I am using WebClient to read wsdl from URI. WebClient client = new WebClient(); Stream wsdlStream = client.OpenRead(wsdlURI); ServiceDescription wsdl = ServiceDescription.Read(wsdlStream); Then I set Namespace and CompileUnit and use ServiceDescriptionImporter's GenerateCodeFromCompileUnit method to generate .cs class file. Then I co...

DynamicObject LINQ query does't works with custom class!!!

DynamicObject LINQ query with the List compiles fine: List<string> list = new List<string>(); var query = (from dynamic d in list where d.FirstName == "John" select d); With our own custom class that we use for the "usual" LINQ compiler reports the error "An expression tree may not contain a dynamic operation": DBclass db = new DBcl...

How can I get the Name of current control to dynamically assign control text?

Without going into detail about what I'm trying to achieve, is it possible (and if so how) can I reference an object that I don't know the name of? For example I want to saything like: someButton.Text = someButton.Name; But on the right side I don't want to state the object name. So what I'd really like to do is something like: someB...

Using XAML and Silverlight 4, is there a way to build up a dynamic GRID rows and columns from databinding?

I'm trying to have a regular grid rows and columns defined dynamically using databinding in XAML only. I know I can use code behind for this but I'm looking for a way to do it purely in XAML. Any thoughts? ...

gcc Linkage option -L: Alternative ways how to specify the path to the dynamic library

If I compile my source code with "-L." the dynamic library libmd5.so can be found. gcc main.c -g -O2 -Wall -o main -L. -lmd5 -lcr But if I leave the "-L."-option away, the linker does not find the dynamic library. How can I change that without having to invoke "-L."? (additional info libmd5.so and libmd5.so.1.0.1 are located in /hom...

ReportBuilder 2.0 creating dynamic tables

I was wondering... In C# you can have a checkbox's and foreach checkbox checked you could do something like create a HTML table and populate foreach box checked.... i want to do the same thing in reportbuilder 2.0 on user selection of projects to create tables and fill foreach project (at a more basic level) if i could just create a...

jsf dynamic tag from string

hi all i want to show some data to the user the data maybe represented to user by different JSF tags based on a configuration for example some times it may represented by text and sometimes it may represented by graphical symbol or even chart also i want that this representation be customizable. how could i do this? ...

Dynami table names with Linq to entities?

Hello Wondered if there is a way to provide table name for linq query at runtime. I am interested in simple quert like "select * from @someTableName". I've searched a lot for the answer but couldnt find any help on the net. There was a post on stackOverflow --> link Dave Russel suggested to do: "var p = ctx.GetType.GetProperty(oNam...