dynamic

C# Return Zero in Corresponding Input Type

I want a function that does this: private static dynamic Zero(Type T) { if (T == typeof(Decimal)) { return Decimal.Zero; } else if (T == typeof(Double)) { return new Double(); } else if (T == typeof(Int64)) { return new Int64(); ...

WiX Dynamically Populated ComboBox

In WiX I have a vbScript for use in a Custom Action that will return ListItems of Network Printers. I want to use these ListItems to populate the ComboBox at Install Time because I won't know the printer names on the users system until after starting the installation. Here is the vbScript. It currently outputs to a text file pending h...

Create dynamic report

Hi all, I need to create a dynamic report. The report needs to allow: Before the report generation * add unknown number of images with text note. After the report generation: * remove image by right click. * edit the text note by clicking on it. Somebody knows about some report for C# that has those options? thanks, Ofir ...

host/role dependent spring configuration

I have a cluster of servers running a spring application. Some of the spring components need to be configured differently depending on the role their server is playing (primary, secondary, etc). I don't want to maintain separate spring config files for each role, rather I want to dynamically detect this when the application is started....

how to handle programmatically added button events? c#

I'm making a windows forms application using C#. I add buttons and other controls programmatically at run time. I'd like to know how to handle those buttons' click events? ...

Dynamic Connection String for a Strongly Typed Dataset

I have an asp.net nTier application. The data access layer is a strongly typed DataSet consisting of multiple DataTables with DataAdapters. When the user logs in, they choose which database to connect to (from a table in the membership database). I need to pass the selected connection string into the DataSet object which will remain the ...

Calling any dll function based on variable arguments

I have the following items in a structure - Dll name (absolute/relative path) - Function name in the dll - number of parameters - Array of parameter types and values With these information, I need to load the dll and call the function. To load the dll - I would use loadlibrary To get the address of the function - I would use GetProcAdd...

Dynamically Changing EventHandlers in Web page

I've got a web form (set in a master page) and want to check to see if the page has any changes before exiting (either by success or redirect). If any changes have been made, a dialog is displayed and the user can click ok or cancel. I've created a panel to act as a dialog box (change z-layer, and apply shading and opacity to background...

How can I create a Dynamic - Interactive image map with jQuery?

So I am using the .Net framework, building with ASP.NET MVC, how do I create a Dynamic, interactive web 2.0 style Image Map? Where say for example, on a world map, if you hover over a country, the selected country will highlight, and a tool tip comes up with various information, and if you click the country it takes you to the said count...

dynamic views stored in xml

So, We are currently looking at creating a web app in MVC with mind to creating a win forms app at a later date. The two will be almost identical in layout and usage. With this in mind we are looking at creating our MVC views by dynamically creating the html controls from an xml file. Such as <Page> <ID>Site</ID> <Object> <I...

Add row to gridview on client side.

Hi, I have asp.net's .aspx page. that have GridView let say GridViewParent and Each row have the another GridView as GridViewChild. Now GridViewChild have button AddRow and another controls like DropDownControl,RadioButtons..etc... I want after click the button AddRow there must add row on client side. How can i do same. Please guide me ...

Dynamic static method call in PHP?

Hi, Please could someone experienced in PHP help out with the following. Somewhere in my code, I have a call to a public static method inside a non-instantiated class: $result = myClassName::myFunctionName(); However, I would like to have many such classes and determine the correct class name on the fly according to the user's langua...

Dynamic google sitemap creation for a asp.net Ektron site

We are planning on using google for our search functionality in an Ektron site. We have to do this because we want pages from a few sites outside of the actual Ektron site to be included in the search results. The problem with this is newly published content won't show up in our sites search results for as long as two weeks unless we c...

Dynamic Treeview PHP

Hello, I want to make a dynamic populated treeview from mysql database in PHP. I have searched a lot for that, but i haven't got the solution yet (jquery treeview seems not working in my context). And i want to realize is that i extend the treeview by clicking the "+" sign. When i click the item of the treeview, it will execute a que...

Can I put an ObjectiveC @selector in a NSDictionary?

[actionMap setObject:@selector(actionNavPop) forKey:@"navPop"]; This doesn't work. NSDictionary can only hold objects, and a SEL type is not an object. For number types you can do [NSNumber numberWithInt:123] but is there any sort of similar object wrapper for selectors? ...

How to populate dynamically generated select boxes with ajax

Hi - I haven't been able to find a solution for the particular problem I'm having with this project. I need to the following: dynamically add rows to a table that contain two select boxes AND use ajax to auto-populate the select options of the 2nd select box, based on the value of the first select box... in the respective table row (that...

Dynamically create in PHP a drop-down list from a range of numbers *with increments*

I need to dynamically create in PHP a drop-down list of numerical choices like so: <select> <option value="120">120 cm</option> <option value="121">121 cm</option> <option value="122">122 cm</option> <option value="123">123 cm</option> <option value="etc... </select> I would like to only specify the starting and ending numbers. Thank...

Dynamic Reporting Tool

Hi, I'am looking for a dynamic reporting tool for Asp.Net. Tool should support drag drop of data fields, simple grouping and simple expressions. Actually end users will use this tool for data listing. Rendering to html and pdf is enough. Any suggestions ? Abbut ...

c++: Dynamically choose which subclass to create

Hello, I am new to c++ and i have a question. Lets say we have a base class Base and two derived classes, Derived1 and Derived2. f.e. Derived1 has a constructor taking a integer and Derived2 a constructor taking a boolean. Is it possible to determine at run time (or at compile time) which of those two subclasses to create and assign i...

Calculate width dynamically (jQuery)

HTML: <div class="parent"> <div class="one"></div> <div class="two"></div> <div class="three"></div> </div> jQuery parentWidth = $(".parent").outerWidth(true); oneWidth = $(".parent .one").outerWidth(true); twoWidth = $(".parent .two").outerWidth(true); $('.parent .three').width( parentWidth - oneWidth - twoWidth); But ...