Hi,
I am trying to build a dynamic predicate with Entity Framework by mapping an enum to the column field:
In the where clause i have entered ?? as i am not sure what to put there, i want this be dynamic like in this article, although that doesn't work me in EF on;y linq to sql:
http://stackoverflow.com/questions/2497303/how-to-specif...
I'm brand-spanking new to Rails. I've learned how to make static controller actions and corresponding view files. Now I want to make it so that when I go to localhost:3000/hi/anita, the page says "Hi anita", but when I go to localhost:3000/hi/bob, it says "Hi bob". Of course, I don't want to make anita and bob actions. You get the idea. ...
I'm trying to make the selected item the value of an asp:Label if this is possible
I am putting my drop down list in like this
For ddlAdults As Integer = 1 To strNumberSlept
CType(e.Item.FindControl("ddlEditAdults"), dropdownlist).Items.Add(new ListItem(ddlAdults.ToString(), ddlAdults.ToString()))
Next ddlAdults
And I need to add a s...
I have a dynamic select statement thus:
"new(PurchaseOrderID as ID_PK, PContractNo + GoodsSupplier.AssociatedTo.DisplayName as Search_Results)"
As can be seen I wish to concatenate the 'PContractNo' and 'GoodsSupplier.AssociatedTo.DisplayName' fields into one returned field named 'Search_Results'. It is important that these two fields ...
I am exploring the DynamicObject model in .NET 4.0. The application is one where an object will be described through some sort of text/xml file, and the program must create an object upon reading that file.
With DynamicObject, we can add members easily, given that we know the name of the member a priori. But, what if we don't even know ...
Hello
I am calling a method that returns a List variable that contains a c# Anonymous Type objects. For example:
List<object> list = new List<object>();
foreach ( Contact c in allContacts ) {
list.Add( new {
ContactID = c.ContactID,
FullName = c.FullName
});
}
return list;
How do I reference this type propert...
I'm coming from the world of c#.
in C# i am able to use the class dynamic http://msdn.microsoft.com/en-us/library/dd264741.aspx
This allows me to not have to use templated/generic classes but achieve a simliar feel for certian situations.
I'm have been unsuccessfull in internet searchs as unfortunately 'dynamic' and 'java' keywords tu...
Does anyone have a walk through/example/blog of how I can dynamically create the item template of an items control in the code behind?
I have an object that has a dynamic number of properties and I'm needing to vary the output but I'm having difficulty getting started.
I've created a few from XAML but never done it from the code behind...
Before I get chided for not doing my homework, I've been unable to find any clues on the multitude of questions on Java generics and dynamic casting.
The type Scalar is defined as follows:
public class Scalar <T extends Number> {
public final String name;
T value;
...
public T getValue() {
return value;
}
public v...
I'm trying to design a solution in MVC in which a string representation of a class is passed to the controller which should then build a grid with all the data belonging to that class in the DB. (I'm using an ORM to map classes to tables).
//A method in the Model that populates the Item Property
foreach (MethodInfo method in...
To make a long story short...
I'm building a web app in which the user can select any combination of about 40 parameters. However, for one of the results they want(investment experience), I have to extract information from a different table and compare the values in six different columns(stock exp, mutual funds exp, etc) and return only...
i'm trying to use htmlText on a dynamic text field with embedded fonts. i've searched for an hour for an answer and i still don't have one.
on stage, there is a dynamic text field with no text. i've embedded both regular and bold versions of Myraid Pro. the text field on stage is set to regular (have to choose something). "Render Te...
This is a quiet trival question. Here goes:
Trying to use AJAX / JQUERY to create a text field. As soon as I start writting on the text field, it should dynamically link to a new page with the text field (and its values) on top that page without reloading the page.
So, for instance, as soon as I type "S" (for "StackOverFlow") in the te...
I have two dimensional data with varying number of rows and columns and must display it to the user for editing. The format of the data itself is essentially described by a list of row and column descriptors with a header text for each row or column.
I derived a control from Grid that has two properties for the row and column descriptor...
My problem is, that I have simple Pojos or simply objects that contain data. These can vary and new types of these can be added during runtime.
So I need a Swing GUI to input text to them. Is there a framework that dynamically creates a Swing GUI from a POJO during runtime? Technically, it should be possible using reflection and/or ann...
I have a dynamic table layout created in OnCreate(). Everytime the activity resumes, the data in the table rows can change, so I would like to destroy the table rows and create new ones.
How can I do that? Thanks!!!
Here is what the OnCreate table creation portion looks like:
tableLayout tl = new TableLayout(this);
for (i = 0;...
Using NHibernate, I am trying to set the value of a class contained within another class. For example:
public class Object
{
public virtual string CODE { get; set; }
public virtual string INFO { get; set; }
public virtual int ID { get; set; }
public virtual Location location { get; set; }
}
public class Location
...
I am trying to figure out a way to move two points, X and Y, independently of one another along the edges of an equilateral triangle with vertices A, B, and C. There are also some collision rules that need to be taken into account:
(1) If X is at a vertex, say vertex A, then Y cannot be on A or on the edges adjacent to it. i.e., Y ca...
Hi there, I am working on a project for my college where I need to bind data from database into the combobox. I need to store the roll no / enrollment no in the "value" field of combobox and name of the student in the "text" property of the combobox.
My code is :
#region Fill Combo Box
//Fill Combo Box.
public static vo...
Hello,
I have two applications, one acting as client and the other as server. In server application I generate ObjectFactory and classes using xjc from Eclipse. As a result, one of this classes is called widgetEvenCall. From the xsd:
...
<xs:element name="widgetEventCall">
<xs:complexType>
<xs:sequence>
<xs:elem...