I have a data grid and in that grid its making this call:
<ItemTemplate>
<%#GroupSelectorRoleListControlExtender.GenerateGroupActuator(((GroupListItem)Container.DataItem).Id, ((GroupListItem)Container.DataItem).Name)%>
</ItemTemplate>
I would like to do something like this:
<% if (((SingleAccountGroup)Container.DataItem).N...
I'm new to lisp and I am simply trying to have two functions called at once if a conditional returns true.
(cond
((equals (first expression) "+")
(function1 parameter)
(function2 parameter)))
In the above code, I just want function1 and function2 to be called. Any thoughts?
...
Hi, I'm trying to have a function compare the first argument of a passed in argument to a value, then if it is true, perform some function, then recursively call the same function.
(defun function (expression)
(cond
((equal (first expression) "+")
(progn (print "addition")
(function (rest expression))))))
For so...
I have a watch range with certain cells highlighted yellow. For each of these cells, there is a corresponding reference value all located within one column. I want to highlight all cells in my target range red for which the value in the corresponding reference cell matches the value in the target cells. The code I've come up with is a...
How do I get IE6 to display inline base64 encoded images?
<img src="data:image/png;base64,....." />
This works in Firefox/Chrome/Safari but not IE6.
...
bool stop = false;
int f1 = 1;
int f2 = 2;
int f3 = 0;
int sum = 2;
while (!stop)
{
f3 = f1 + f2;
sum += f3 % 2 == 0 ? f3 : 0; //THIS ONE
stop = f3 > 4000000 ? true : false;//AND THIS ONE.
f1 = f2;
...
I've got the following scenario:
There are three ("pseudo" randomly chosen) int or float values which represent indices of an array. Now I'd like to compare the appropriate values from that array. After having compared them I'd like to know the middle value of the three and use this specific element for some further array operations.
T...
It's pretty straight forward. If a certain cell, such as A1, is the value "0", I would like A2 to contain an arbitrary value. Otherwise, I would like the user to be able to enter their own value. The first part is easy:
A2=IF(A1 = "0", "value", "")
However, if A2 is empty, and the user goes to edit the value, Excel presents the formula...
The code below checks for GET params. There are two selects on the page which filter a list by type and age group.
I'm looking for a way to refactor the conditional which test the type/age combinations. Is there a more clear/concise way to write it?
if ( isset($_REQUEST['type']) || isset($_REQUEST['age']) )
{
// we need to do somethi...
Hi,
Is it possible to make the DirectoryIndex value in a .htaccess file conditional based on IP, so that - for example - my IP see's DirectoryIndex as index.html and everyone else sees DirectoryIndex as index.php?
Is there a solution other than mod_rewrite?
...
I have some code like this:
if ($(event.target).is('.class1') || $(event.target).is('.blab') || $(event.target).is('.foo') || $(event.target).is('.cbncvbn') || $(event.target).is('.dfghdfgh') || $(event.target).is('.tryrty')) {
// Do something
}
Is there a more succinct way to write this?
PS: I know there are better ways to do t...
Hello all,
On my application Setup Project, I'm trying to setup a Registry key either under HKLM/Software or HKCU/Software depending on whether the user checked "All Users" or "Just Me" during the setup.
For that effect, I've been trying to use the ALLUSERS property and check it against either 1 or "", respectively.:
ALLUSERS = 1
ALL...
Okay, I am new to PHP/Oracle connectors. What I am trying to do is call a simple stored procedure which accepts a id number and returns a value. It works fine if there is a match, but I can't for the life of me figure out how to add conditional logic if there isn't a match. Basically, if there is a match, set $strategy to it, if there ...
I have values in column c that i want averaged if they occurred in the last seven days (corresponding dates in column a). i can't get the averageif function to work properly, as I need each individual piece of data to be evaluated separately if it falls within the last seven days. this seems like a function that would be used all the tim...
Hi, I'm trying to simply do a conditional in prolog like this:
((Life==dead)->Trans=no).
I thought the above code would evaluate as if Life == dead, then Trans = no, but for some reason its not? Thanks.
...
Hi
I want to have an image bound to a boolean and have the source of the image to depend on the boolean value
i.e. true source="image1" false source="image2"
I was wondering if there is a way to do it inline without need for a converter.
...
In an effort to make my enums more typesafe, I've been using macro-generated overloaded operators to disallow comparing enums against anything but an identically typed enum:
#include <boost/static_assert.hpp>
#define MAKE_ENUM_OPERATOR_TYPESAFE(enumtype, op) \
template<typename T> \
inline bool operator op(enumtype lhs, T rhs) \
...
I'm trying to use the IE specific conditional statements to alter class settings based on browser type. I was under the impression they could do this but I can't seem to get it working.
Below is a simple example, if the browser is IE the text should be blue, otherwise text should remain red.
"The browser is IE" statement in the body w...
Hi. I have a Rails app where I was doing a general delete dialog with "are you sure" before it gets deleted. That's all fine, but I also have a small ajax on click to remove the block containing all the information. The block gets removed no matter what which makes things confusing. I couldn't seem to find any documentation online on how...
This should be easy, but after several hours I’m coming up blank. ;(
I do a Registry Search (actually 2), because I need to check for either of 2 previous installs and then install my new files to the location of the prior install that was found.
Only one of these prior installs will actually exist.
I then need to install my new f...