value

Getting the return value of an exec process.

I want the process running to exec. When the command exec runs finishes, I want the process that called the process calling exec to recieve as a return value the value that the function called by exec returned. How is this possible? I'm sorry. I understand the process is a bit confusing. So let me give an example I am in a bash script...

Using variables as value and not as reference

Hi, I'm having some troubles using Session Variables as they are being used as Reference and I want to use them as value. I got to this debuging my solution and I created something like: DataTable dt = (DataTable)HttpContext.Current.Session[ "SearchReturn-DataTableSchema"]; // Adding Rows of Data to DataTa...

Textbox Value set using javascript can't be accessed using c#

I have a gridview with three textboxes txtOpeningAdv , TxtAdvanceDeducted , TxtClosingAdvance..... Using a KeyUp function on TxtAdvanceDeducted i calculated TxtClosingAdvance... My page Shows value in TxtClosingAdvance textbox... But when i accessed it using c# it gives me error Input String was not in a correct format... When i inspect...

Display value in Charfield for foreign key in django on error

Let's say I've got a model and it has a foreign key to another one. class ModelA(models.Model): field = models.CharField(max_length=100) class ModelB(models.Model): model_a = models.ForeignKey(ModelA) Than I've got this form: class FormB(models.ModelForm): model_a = forms.CharField(required=True) def clean(self): ...

input type=image name and value not being sent by ie and opera

There are some similiar questions posted here, but they are too specific. When a form has multiple image inputs and the server side uses their names and/or values to distinguish which one was clicked it works perfectly in FF and people often write the whole thing before finding out taht HTML specifies nothing has to be sent and some bro...

How do i edit Values in Visual Studio 2008?

hello im making a application and i need to know how to change the values of address's for example : Memory Address : 0xB7CE50 Value : 100000 Is there a wiki page or a function for this? if so what is it? ...

Store a reference to a single SecureRandom in Java?

Coming from the C++ world here, thus the nature of the question... I want to use a single SecureRandom generator in a Java application, but I need several instances of a class to store a reference to it in the constructor, rather than copies. So, public class MyClass { private SecureRandom random; public MyClass(SecureRandom _...

select rows from dataTable - Issue with the values which have singlequote

Hi, I have a .net datatable...from which I am filtering rows using datatable' select function Assume the datatable as below Id | Name | Description | 1 | Anish| "sachin's centuary" | If I search my datatable as... datatable.select("Description = 'sachin's centuary'")...it is not returning any rows because of the "sin...

What should be done to have 'Value' in the enumeration ?

This code does not compile: object Token extends Enumeration { type ID = Value val Key, Value = Value } error: recursive value Value needs type What should be done to have 'Value' in the enumeration ? ...

Jquery - replace text in Val()

Hey, I'm trying to replace parts of a Val() in jquery with some text but am not sure how to do this. $(this).val() returns "# number of...." - I would like to replace # with custom text, but Val doesn't seem to have a replace() function. I'm quite new to JQuery, so I might be missing something obvious. Thanks for any help ...

Is YAML suitable for storing records in a key value store?

I need to store records in a key value store, and I have considered XML, JSON, or YAML, and pretty much decided on YAML. However, I am wondering how this will perform when searching through millions of records as alot of text processing is needed. Would it be better to use individual keys for differents columns or use YAML. For example,...

Get value of inputs with Jquery

I have 100 inputs with name - table[]. How to get their value with jQuery,like $_POST['table'] ,as I do in PHP. I tryed Code: $("input[name='table[]']").each(function() { document.write($(this).val()); }); but I want to get them as an array. ...

Issue with selected Value Combo box, Listbox

Hi, I am binding same data Table to Combo box and List Box on the WindowsForm Load. When I select a value in Combo box automatically that value is also getting selected in List Box and same thing when I select a value in List Box that value is also getting selected in Combo Box. Selection should be only for that particular control, ho...

Inserting value into Excel cell instead of formula

Hi, I have a VBA script that inserts long strings into Excel cells. In some cases, the string begins with a '='. It seems like Excel interprets this as a formula and I get an 'Out of Memory' error due to the memory limitations of formulas. How do I tell Excel that I am writing a value, not a formula? Currently, I am doing this: ws.Ran...

What are the differences between value types and reference types in C#?

I know a few differences, Value types are stored on the stack where as reference types are stored on the managed heap. Value type variables directly contain their values where as reference variables holds only a reference to the location of the object that is created on the managed heap. Is there any other difference i missed... If s...

Change the value of variable PHP

I have input fields ,which I process with AJAX and send it on another file. The value of the inputs is always different. How in the file ,where I get the data from AJAX ,to change the variable id always when I get the data from AJAX. Example: I get the data from AJAX in this file: <?php $id=1; echo '<div id="$id"></div>'; ?> Then I d...

MySQL: Counting most occurrences of a field's value

Given the following query, how do I return the p_name with the most transactions? And similarly, how do I return the t_amount with the most transactions. I'd like to do it all in this one query of course. SELECT t.*, p.* FROM transactions t LEFT JOIN partners p ON p.id=t.partner_id which can return something like: t_amount t_pla...

PHP form values after POST

I have a form on which I POST the data with PHP. When the data is send I want to show the new values. Doing this on textfields is easy, but how can I set the new values on the radioboxes. My default value is Male here. PHP if (isset($_POST['Submit'])) { update_user($_POST['name'], $_POST['sex']); // the update method } HTML <for...

PHP contact form overwrite fields issue repeating value

H I'm using php contact form from http://phpfmg.sourceforge.net/home.php. I thought I'd add an onfocus effect so when i click in the fields the value dissappears automatically. But when I submit say if haven't filled in my requried fields I get this the values appearing again like <input type="text" class="text_box" onfocus="if(this.v...

Default values of parametrs for own functions in jquery

Is it possible to set default values of parametrs for own functions in jquery? ...