dynamic

What is the best approach for this CRUD search page in ASP.NET

I'm building a heavily CRUD based ASP.NET website and I've got to the phase of the project where I'm trying to build a search webpage that shows the user different subsets of a certain important table based on parameters they enter such as dates and different text fields. I can't use a fixed SQL statement, because depending on whether t...

Using LINQ to SQL with Dynamic tables

...

How can I manipulate text through an iframe?

I have two questions. This is core component of a project I'm currently working on. I'm looking for a way to manipulate/edit the source code of an iFrame whose "src" will always be changing: a dynamic iFrame. Is this possible? I know that it's really not recommended because of the potential security issues. And my other question is: ...

dynamic enum in C#

How do I create a dynamic enum (and subsequently use the enum choices) in C# based on values in a database lookup table? (using enterprise library data layer) e.g. If I add a new lookup value in the database, I don't want to have to add the extra static enum value declaration in code. Is there such a thing as this? I don't want to creat...

tomcat connection pooling

Hi, I have a simple servlet running in Tomcat. Because the servlet connects to a database, I need to use connection pooling. However, all the examples on the internet assume that (the developer) will never change which database the servlet is connecting to. For example, here is a sample context.xml file. <?xml version="1.0" encoding="U...

ASP.NET - Can you use Dynamic Data without Linq to SQL?

I have an application that creates database tables on the fly. I'd like to create an interface to CRUD this data. But because the tables are created as the application runs, I can’t create the Linq to SQL classes by dragging them onto the designer. However, I do know in my code what the tables I want to edit are. Can anyone tell me if ...

Dynamic selection of dataset in SSRS

Hi, Please clarify me with this. I am going to design a report using SSRS 2005. Is it possible to have the selection of dataset done dynamically. Lets say i am going to have two tables, first one is the summary and second one is the detail data. One of my parameter (with values 'Summary' and 'Detail')is deciding which version of the r...

How to know if an object is dynamic in AS3

In Action Script 3, you can write a class that defines a dynamic object (MovieClip and Object are two examples), this objects can be modified in run-time. What I want to know if is there some way (in run-time, of course) to know if certain object is dynamic or not. PS: Without making something like this: function isDynamic(object) { ...

Is there an alternative way to free dynamically allocated memory in C - not using the free() function?

I am studying for a test, and I was wondering if any of these are equivalent to free(ptr): malloc(NULL); calloc(ptr); realloc(NULL, ptr); calloc(ptr, 0); realloc(ptr, 0); From what I understand, none of these will work because the free() function actually tells C that the memory after ptr is available again for it to use....

Delphi Win32: Speed up dynamically created controls (Parent property)

We have a GUI of several frames that build their contents dynamically. Each frame creates panels, labels, edits, comboboxes etc to be used as input fields. This is working very well and we are also planning to let each frame build its content in separate threads. However there is one big problem: it is rather slow! Creating the control...

ASP.net Delphi dynamic imagebutton onclick event

I'm having a bit of trouble with an old delphi.net application. I need to show some thumbnail images on a specific location on the page, and when the user clicks the image show the image. The images are rather small so I havn't bothered with thumbnail generation. The problem is that I can't get the onclick event working. Here is m...

Is there an equivalent to Groovy in C#?

What is the closest thing to groovy/java combo in the C# .net world? If I am writing an app with static and dynamic parts, what's the dynamic part like groovy on the .NET runtime? ...

Print complete control flow through gdb

The idea is that given a specific input to the program, somehow I want to automatically step-in through the complete program and dump its control flow along with all the data being used like classes and their variables. Is their a straightforward way to do this? Or can this be done by some scripting over gdb or does it require modificati...

Automate tracing in GDB

Hi, I have been trying to find a way for some time to automate the progress in GDB of tracing the control flow of a program. Even just a simple way of automating the 'n' command so you can see what order routines are called. I realise that you can issues 'n x' where x is the number of times GDB steps through, but the trouble with that...

Dynamic binding implementations in OO languages

What are the two ways that are used to implement dynamic binding in OO languages. Like how is dynamic binding implemented for a pure OOL like Smalltalk versus mixed OOL such as C++? ...

User-adjustable data structures

Hi all, assume a data structure Person used for a contact database. The fields of the structure should be configurable, so that users can add user defined fields to the structure and even change existing fields. So basically there should be a configuration file like FieldNo FieldName DataType DefaultValue 0 ...

Dynamic Loading of Python Modules

I'm trying to dynamically load modules I've created. Right now this works properly: import structures.index But if I try the same thing by importing it dynamically, it fails. struct = __import__("structures.index") Error supplied is: Error ('No module named structures.index',) Any ideas why? Edit: When using full scope (it s...

Silverlight 2 dynamic data binding Converter

In Silverlight 2.... I have a RadioButton in my xaml code as follows: <RadioButton GroupName="Gender" Content="Male" IsChecked="{Binding Path=Gender, ConverterParameter=1, Mode=TwoWay, Converter={StaticResource RadioStringConverter}}" Width="49" HorizontalAlignment="Left"/> This works great. My issue is in trying to duplicate this f...

Add an array of buttons to a GridView in an Android application

I have an application that will have 5-15 buttons depending on what is available from a backend. How do I define the proper GridView layout files to include an array of buttons that will each have different text and other attributes? Each button will essentially add an item to a cart, so the onClick code will be the same except for the...

HTML template for ASP controls

I am writing an application that requires that my customer can layout their input forms in which ever way they choose. I would like to use an HTML template with placeholders, and then replace these with secified .NET controls at runtime: <table style="width: 100%;"> <tr> <td colspan="2"> <fieldset title="Customers Template...