dynamic

How to find number of elements when adding and deleting elemnts dynamically using jQuery?

Hi, I'm working on a web application (with ASP.NET 2.0 (C#) and jQuery) In my application we have an interface using which our employees are able to enter records of a comany. We provided the interface with basic fields, Company Name, Contact Person, phone, etc. Now as you know some companies have thier branches, some have few (1 to 10...

Dynamic gridview delete button not showing

I have an ASPX page that is dynamically creating a gridview from a database table. Each time the gridview is created on postback, I set the AutoGenerateDeleteButton attribute to true. However, the first time the gridview is created the delete button isn't displaying. I wrote the value of AutoGenerateDeleteButton and it is True. When ...

Regarding JavaScript function unorthodoxy...

I've been programming for the Web for quite some time now, but have only just recently discovered a few new intricacies regarding the use of functions and the weird (or so I view them as) things you can do with them. However, they seem at this point only to be syntactically pretty things. I was hoping somebody might enlighten me as to ho...

How to do dynamic object creation and method invocation in .NET 3.5

How does the code looks that would create an object of class: string myClass = "MyClass"; Of the above type, and then call string myMethod = "MyMethod"; On that object? ...

How to send something from Dynamics CRM

I would like to develop a way for sending text messages (SMS) from Microsoft Dynamics CRM 4.0. For example: clicking a button will open a window where I can enter my message. Clicking send will send a request to the SOAP XML Web Service I'm working with containing the contact's cell number and my text. I also want to be able to install ...

calling methods on an instance with getattr [ python ]

I was trying to write some code that would check if an item has some attributes , and to call them . I tried to do that with getattr , but the modifications wouldn't be permanent . I made a "dummy" class to check upon this . Here is the code I used for the class : class X: def __init__(self):...

Uses for both static strong typed languages like Haskell and dynamic (strong) languages like Common LIsp

I was working with a Lisp dialect but also learning some Haskell as well. They share some similarities but the main difference in Common Lisp seems to be that you don't have to define a type for each function, argument, etc. whereas in Haskell you do. Also, Haskell is mostly a compiled language. Run the compiler to generate the execu...

Why is dynamically modifying a JavaScript function's code mid-execution a bad thing?

A few days ago, I asked a question regarding dynamically modifying a function's code midway through the outerlying script's execution and I was told to completely forget ever coming upon the notion. I'm not sure I understand why that is. Let me give an example: <script> var display = function(msg) { alert(msg); } // Now, at the momen...

Is this a suitable case in which using dynamic function creation would be justified?

I'm currently developing a tutorial site for teaching the fundamentals of Web development (HTML, CSS, and JavaScript, for starters). I'd like a setup where I could give in-depth coverage of all sorts of topics and then provide a basic sandbox environment where the user could write code which solves the question asked at the end of each t...

How can I get the values of the parameters of a calling method?

Question I'm writing some code that needs to be able to get the values of the parameters from the method that called into the class. I know how to get all the way to the ParameterInfo[] array, but I don't know how to then get the values. Is this even possible? If it is, I think it has something to do with using the MethodBody property ...

How do you create python methods(signature and content) in code?

I've created a method that generates a new class and adds some methods into the class, but there is a strange bug, and I'm not sure what's happening: def make_image_form(image_fields): ''' Takes a list of image_fields to generate images ''' images = SortedDict() for image_name in image_fields: images[image_name] = fo...

Dynamic Properties for object instances?

Hi After the previous question "What are the important rules in Object Model Design", now I want to ask this: Is there any way to have dynamic properties for class instances? Suppose that we have this schematic object model: http://www.freeimagehosting.net/>http://www.freeimagehosting.net/uploads/d3a08e6c83.gif border=0 alt="Free Im...

Is there a way to dynamically execute a string in .net, similar to eval() in javascript or dynamic sql in sql?

Is there a way to dynamically execute code contained in a string using .net 2.0, in a similar way to eval() in javascript or using sp_executeSQL in tsql? I have a string value in a variable that I want to manipulate at some point in my application - so the code would essentially be string manipulation. I don't know what different manipu...

Naming Generic DataContracts in WCF

I am using a Generic Class as a Response Data Contract. All is good and this is streamlining the design of my WCF service significantly. Each request is given a standard response object with the following signature: Status (Enum) Message (String) Result (T) Below is the Response Class: [DataContract] public class Response<T> ...

aspx.vb - How to dynamically create and access RadioButtonLists from code-behind

The answer I'm looking for could be simple, I'm pretty much a beginner in this. Problem is, I barely know the methods and parameters of the RadioButtonList class at all. So perhaps I should be using some other method? If so, please tell me. Here's the situation: I have a stripped down default.aspx page. Aside from a element, almost ALL...

What tool can suggest index and covering indexes for dynamicly created queries?

Our web application basically dynamically generates tables and relations. It also generate indexes on the basic level. We are looking for a MySQL profiler that will be able to suggest indexes. We have come across this two profilers : MYSQL JET PROFILER : will not tell use what index or covering index will do the job. ROT : will not ...

Dynamically Loaded ListButton's and PostBack Event

Hi, I am trying to get a dynamically loaded LinkButton to fire a postback event, which I then handle. I have across Command, CommandName and CommandArgument - which looked real useful.. So I started messing with that, but currently cannot get to work as desired. The links are rendered within a table that is created on the fly, here is ...

Checking, at runtime, for existence of a function in a program

I am writing a program that is meant to be extended by some function definitions. One of the way of compiling the program is to create a single executable linking your code to the main code. The problem is: one of the function to define is optional and I need to test for that. On Linux, here is what I am doing: Compile the program with...

Dynamic Include

What would be the safest way to include pages with $_GET without puttingt allowed pages in an array/use switch etc. I have many pages so no thank you. $content = addslashes($_GET['content']); if (file_exists(PAGE_PATH."$content.html")) { include(PAGE_PATH."$content.html"); } How safe is that? Thanks. ...

Dynamic xsd and Biztalk 2006

Hi all, I'm sort of a biztalk newbie and we run 2006 here with plans to migrate to 2006 R2 in the future. I have a schema that I need to work with called Siri, which is public at: link text or link text for the root xsd document. I have successfully imported this schema into my biztalk project, however, I am finding it difficult to ge...