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...
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: ...
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...
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...
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 ...
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...
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) {
...
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....
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...
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...
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?
...
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...
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...
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++?
...
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 ...
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...
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...
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...
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...