Let's say I have a custom control that looks like this
<cc:MyControl runat="server" ID="myc" LinkControlID="NewParent" />
and, on the same page:
<asp:TextBox runat="server" ID="NewParent" />
What I would like to do is, from MyControl, change NewParent's parent so that it would be part of MyControl's Controls collection. When I try ...
I'm using the following code to insert extra form fields.
function addFormField() {
$("#divTxt").append("<div id='education" + id + "'><input name='name' id='name' type='text' size='20'><a href='#' onClick='removeFormField(\"#education" + id + "\"); return false;'><img src='images/minus.gif' width='10px' border=0></img></a></div>");
}
...
I have a multi page form which uses multiple tables in mysql for the entered values. One of the pages has a form which needs to have the option of enabling the user to click a + to add an extra line if they want to include extra information. There can be any number of lines added.
When the user clicks the +, jquery and php inserts the c...
I have a fairly big asp.net website that use GridView bound to the same object in lots of places. I'm using an item template to customize each row. However to have the same template in all the pages I have to copy & paste the item template to each page. Obviously this is not the best solution. On top of this I want to be able to change t...
Is it possible to perform a postback and have the viewstate remember the selected value on the following code?
It seems placeholder1.controls.clear() is deleting it.
protected void Page_Load(object sender, EventArgs e)
{
bind();
}
protected void bind()
{
PlaceHolder1.Controls.Clear();
DropDownList ddl = new DropDo...
Hello Everyone,
I'm trying to make an Dynamic Menu in GWT, reading it from an XML file. The XML file must have the button name and the action (the composite associated that will be added to an Horizontal Panel).
To make the action, a need to do Reflection of the Class, wish is given me a lot of problems. I've tried 2 different solution,...
The users have requested the option to "download" a csv file representation of GridView contents. Does anyone know how to do this without saving the file to the server but rather just streaming it to the user from memory?
Thanks
...
Hi all,
I am having a few issues with trying to live in a subsonic world and being a subsonic girl when it comes to subsonic expressions....
after reading http://stackoverflow.com/questions/765896/subsonic-query-conditiona-or-conditionb-and-conditionc it would appear i am not the only one with this sort of issue but hopefully someone (...
In python how do you dynamically add modules to a package while your programming is running.
I want to be able to add modules to the package directory from an outside process, and be able to use those new modules in my program:
import package
def doSomething(name):
pkg = __import__("package." + name)
mod = getattr(pkg, name)
...
In a database the data is stored dynamically. That means the metadata defines classes and attributes. The user data is stored in object and object attribute tables.
To simulate how the data is represented, I created a linq query in LinqPAD:
XElement test = XElement.Parse (
@"<DynaDaten>
<CLS ID='99' CODE='T_PERSON' NAME='T_PERSON...
Hi,
I have a situation where I would like to create a dynamic LINQ query where the fields are generated on the fly.
following code snippet show what I am trying to achieve.
First query is a standard LINQ query on objects.
Second query is a Dynamic LINQ query on objects.
Second query fail at "Selected = false", and "(string)rb.User...
Typically, for styles that have to be applied dynamically to HTML objects with JS, we set it as an attribute using "setAttribute()"
What about this "outline" CSS property? How can I set that onto an object with JS? Unless there is a way to dynamically add CSS to the document?
...
Hello,
I had read a ton of articles about that new keyword that will ship with C# v4,but I couldn't make out the difference between a "dynamic" and "var".
This article made me think about it,but I still can't see any difference.
Is it that you can use "var" only as a local variable,but dynamic as both local and global?
I'm sorry for ...
Does anyone know of a way to intercept dynamic method calls (particularly those that are going to raise RuntimeBinderExceptions) with a RealProxy? I was hoping to catch the exception and implement 'method missing' on top of that, but it appears to be thrown before the interceptor gets a look-in.
My test just looks like:
dynamic hello =...
I am working on dynamically creating some Javascript that will be inserted into a web page as it's being constructed.
The Javascript will be used to populate a listbox based on the selection in another listbox. When the selection of one listbox is changed it will call a method name based on the selected value of the listbox.
For examp...
When adding controls to a form at runtime, you can do either of the following:
Button btn = new Button();
//...
this.Controls.Add(btn);
or
Button x = new Button();
//...
btn.Parent = this;
I had assumed that they were the same, and it was just down to personal preference which way to do it, but someone at work mentioned that the se...
Hi all,
I believe I read at some point that due to Android running on the Dalvik VM, that dynamic languages for the JVM (Clojure, Jython, JRuby etc.) would be hard pressed to obtain good performance on Dalvik (and hence on Android). If I recall correctly, the reasoning was that under the hood, in order to achieve the dynamic typing, th...
I'm trying to dynamically create domain objects in Grails and encountered the problem that for any property referencing another domain object the metaproperty tells me its type is "java.lang.Object" and not the expected type.
For example:
class PhysicalSiteAssessment {
// site info
Site site
Date sampleDate
Boolean rain...
Hi, I have an application that loads dlls dynamically. The application and the
dlls use a Functions.dll that can be a diferent version for the application an
for each dll, but in execution the application and the dlls all use the same
dll version (the one used by the EXE) and share the static variables...
How can i force them to use ...
my sql DB contains tables "jobs" and "job_categories."
"job_categories" associates job category strings (i.e. "Software Development") with an integer number (i.e. 7).
I need these associations saved into variables in my job controller for various query functions. How can I use rails to dynamically link changes to the job_categories tab...