27,288 questions
3
votes
6
answers
44k
views
Creating Dynamic Tables in Word by C#.NET
I have a C# application where i want to implement a logic for a programm which will open the word document and go to a certain place in the page and create a Table and put values in that. Can any one ...
7
votes
4
answers
4k
views
How to create dynamic and safe queries
A "static" query is one that remains the same at all times. For example, the "Tags" button on Stackoverflow, or the "7 days" button on Digg. In short, they always map to a specific database query, so ...
1
vote
3
answers
2k
views
Custom datatable with metadata used for binding to a Gridview?
I'm binding a datatable to a gridview control, and when I format each column I need to format the data based on whether that column has a particular custom attribute. In this case, a column can ...
2
votes
6
answers
14k
views
SQL Server dynamic queries
I have 15 stored procedures that return data from a common table and then join that table with a specific table to retrieve inventory.
Example:
Common: tblCommon
Specific: tblSpecific
Is there way I ...
5
votes
3
answers
790
views
Will C#4.0 dynamic objects have some facility for duck typing?
In C#4.0 we're going to get dynamic types, or objects whose "static type is dynamic", according to Anders. This will allow any method invocation resolution to happen at runtime rather than compile ...
20
votes
8
answers
21k
views
Best way to represent a 2-D array in C++ with size determined at run time
In C++ I'd like to do something like:
int n = get_int_from_user();
char* matrix = new char[n][n];
matrix[0][0] = 'c';
//...
matrix[n][n] = 'a';
delete [][] matrix;
but of course this doesn't work. ...
1
vote
1
answer
1k
views
SMTP Relay Limits
We have set up a system where notifications get sent to a user with the following From address format: user-{0}@aol.com (replace {0} with an ID)
This way we can track what user we sent the message ...
0
votes
2
answers
4k
views
Hyperlinks In Sharepoint Webpart
I've been working on a SharePoint project and I have gone the route of loading User Controls through a custom web part.
I have several web controls where I need to dynamically generate hyperlinks (in ...
5
votes
6
answers
7k
views
C++ dynamic class ( dynamic hack )
Is there any way to add a field to a class at runtime ( a field that didn't exist before ) ? Something like this snippet :
Myobject *ob; // create an object
ob->addField("newField",44); // we add ...
15
votes
9
answers
69k
views
Adding dynamic columns to an ASP.NET Gridview
I'm having a problem dynamically adding columns to a GridView. I need to change the layout -- i.e. the included columns -- based on the value in a DropDownList. When the user changes the selection ...
2
votes
4
answers
1k
views
Usercontrol with button - When uc is added dynamically to another page
Usercontrol with button - When uc is added dynamically to another page I loose the button handler.
ie: I have 1 usercontrol with 1 button - the button has an event handler in the code behind. When i ...
16
votes
3
answers
29k
views
Interface is not visible from ClassLoader when using a proxy?
I am seeing following exception when I try to use dynamic proxy
com.intellij.rt.execution.application.AppMain DynamicProxy.DynamicProxy
Exception in thread "main" java.lang.IllegalArgumentException:...
7
votes
3
answers
7k
views
Are Dynamic Prepared Statements Bad? (with php + mysqli)
I like the flexibility of Dynamic SQL and I like the security + improved performance of Prepared Statements. So what I really want is Dynamic Prepared Statements, which is troublesome to make because ...
15
votes
9
answers
13k
views
Problem with dynamic controls in .NET
Problem with dynamic controls
Hello all,
I'm wanting to create some dynamic controls, and have them persist their viewstate across page loads. Easy enough, right? All I have to do is re-create the ...
75
votes
3
answers
154k
views
How To have Dynamic SQL in MySQL Stored Procedure
How do you build and use dynamic sql in a MySQL stored procedure?
1
vote
6
answers
2k
views
Converting a UNION query in MySQL
I have a very large table (8gb) with information about files, and i need to run a report against it that would would look something like this:
(select * from fs_walk_scan where file_path like '\\\\...
0
votes
3
answers
2k
views
Pulling in a dynamic image in a control based on a url using C# and ASP.net
I know this is a dumb question. For some reason my mind is blank on this. Any ideas?
Sorry should have been more clear.
Using a HtmlGenericControl to pull in link description as well as image.
...
94
votes
4
answers
49k
views
How can I dynamically create a selector at runtime with Objective-C?
I know how to create a SEL at compile time using @selector(MyMethodName:) but what I want to do is create a selector dynamically from an NSString. Is this even possible?
What I can do:
SEL selector =...
7
votes
5
answers
6k
views
Data structure for assembly code? [research]
I'm planning to create a data structure optimized to hold assembly code. That way I can be totally responsible for the optimization algorithms that will be working on this structure. If I can compile ...