hello everybody,
i'm trying to creat a form which contain textboxs, and i want to use one to fill in date by clicking in that zone
i use asp.net/vb
thks for all yr support
I thought they could be, but as I'm not putting my money where my mouth was (so to speak) setting the readonly attribute doesn't actually seem to do anything.
I'd rather not use Disabled, since I want the checked check boxes to be submitted with the rest of the form, I just don't want the client to be able to change them under certain circumstances.
Im using c#.net windows form application. I have a xml file whose name is hello.xml and it goes like this
-
-
abc
hello how ru
-
def
i m fine
-
ghi
how abt u
How can i get the root node i.e into a text box. At this time I will have the xml file name. i.e hello.xml. Using this I should get the root node
Hi, im traversing through the registry, taking the values of the keys and storing them as strings. I have discovered there are many different types. Some of these types are causing my filestream writer to fail. Is it possible to convert all of the below into a string form. The actual data value is not important, just the ability to differentiate between different values.
DWORD
ExpandString
Binary (is this just the same as byte[] ?)
MultiString
When I am concatenating object values together to form a string in VB.NET, is there a difference in performance or a recommended best practice between using the & concat or the + concat with calls to .ToString() on each object?
Example (which is faster or best practice):
Dim result1 As String = 10 & "em"
Dim result2 As String = 10.ToString() & "em"
Any recommendation on libraries to do audio processing in Ruby. I need to do the following two tasks:
Find silences, for which I'm happy to just be able to iterate over each sample in the wave.
Cut and paste pieces of wav files to form a new wav file.
Convert wav to mp3, which I will probably leave to lame anyway.
I'm looking for the equivalent of NAudio, a C# library.
Is there any practical difference between these two extension methods?
class Extensions
{
public static void Foo<T>(this T obj) where T : class { ... }
public static void Foo(this object obj) { ... }
}
I was poking around in Extension Overflow and I came across the first form, which I haven't used before. Curious what the difference is.
<?php
function register_template(){
print_r(func_get_args());
# the result was an array ( [0] => my template [1] => screenshot.png [2] => nice template .. )
}
register_template( # unkown number of arguments
$name = "my template",
$screenshot = "screenshot.png",
$description = "nice template .. "
)
?>
BUT , I want the result array as $key = $value form , $key represents the parameter name.
What's Sinatra's equivalent of Rails' redirect_to method? I need to follow a Post/Redirect/Get flow for a form submission whilst preserving the instance variables that are passed to my view.
Does the redirect method preserve them? (I'm at work at the moment and don't have access to Sinatra to try for myself.)
Hi! Im trying to call some windows forms code (like setting label.visible = true in some event code, everything compiles ok, but form does not react to change! What could be the problem?
Problem is in lines:
labelNewCall.Visible = true;
timerNewCall.Enabled = true;
code : http://pastebin.com/gV28PN4P
also other code did not work, until i reordered some of if (order is not important but it did not work otherwise... )
i make a textbox,enter some data, store it into string format,there are some values as numbers,can i change these string numbers into integer format
the problrm is for visual c++ in visual studio in the windows form
hi, sorry for maybe this is stupid question, I just want download source code form the link as follows: http://argouml.tigris.org/source/browse/argouml/trunk/src/
I try to use the command :
svn checkout http://argouml.tigris.org/source/browse/argouml/trunk/
but it throw error :
svn: OPTIONS of 'http://argouml.tigris.org/source/browse/argouml/trunk': 200 OK (http://argouml.tigris.org)
I am strange that , how to checkout the source code from the url ?
many thanks for your help !
Regards
I've got the following in my view:
echo $form->input('Category', array('multiple' => 'checkbox', 'disabled' => true));
But, the checkboxes aren't disabled...
Is this iteration the best?
(Pi^2)/12 = 1 - 1/4 + 1/9 - 1/16 + 1/25 etc.
-For converging faster?
If not please answer with the iteration -preferably in the form above (an example) -not a splat of algebra ...
I'm doing this to find Pi to 1,000,000,000 places online.
http://www.zombiewrath.com/superpi.php
or my 10,000 one:
http://www.zombiewrath.com/pi.php
i have many textboxes on a form and all textboxes require to have a character limit / character countdown (50 character left of 150), what is the best way to achieve this and can anyone please provide code to implement.
Much Grateful
Thanks
I wrote a code to insert data .When ,i enter the value in the form and click submit ,the data is getting into database.
Now,i should make all those data to edit from from end and,if i click update button,it should be updated in database.
Give a snippet for performing this task.
Adding a validator to my form:
jQuery.validator.addMethod('whatever', function(val, el) {
// whatever goes here
}, 'A maximum of ' + $('#my_id_here').val() + ' categories can be selected.');
This doesn't fly. I always get undefined. Is this a good, simple way to do this?
Thanks
Hi All,
I've been doing this for years. But now it's just not working.
private void Form1_Deactivate(object sender, EventArgs e)
{
this.Size = new Size(30, 29);
txt.Visible = false;
lbl.Visible = false;
}
The form just does not change Width. But, as above, the 3 controls DO become invisible.
Any suggestions?
In Codeigniter, I have a login/registration form all set up, working perfectly, however how can I output the current users username, i.e. When the user has logged in it would say "Welcome, [username]".
I also need to know this, to be able to output from the database the record based on the current users ID, how can I do that? I've browsed the docs on codeigniter but couldn't find what i was looking for. I'm using active record btw.
Thanks
I want to make preview button as usual form button next to submit button(as it made in most cases of "Post new topic" forms). How can I programmatically simulate toolbar's preview button click ?
I tried $('#article_body_preview').click() but it didn't work. (I use jQuery lib and #article_body_preview is toolbar's preview button element )
I am having a very hard time with this code. I have been working on it for days and cannot seem to figure it out. Please help!!
Here are the specific I need for the code:
Many companies normally charge a shipping and handling charge for purchases. Create a Web page that allows a user to enter a purchase price into a text box and includes a JavaScript function that calculates shipping and handling. Add functionality to the script that adds a minimum shipping and handling charge of $1.50 for any purchase that is less than or equal to $25.00. For any orders over $25.00, add 10% to the total purchase price for shipping and handling, but do not include the $1.50 minimum shipping and handling charge. The formula for calculating a percentage is price * percent / 100. For example, the formula for calculating 10% of a $50.00 purchase price is 50 * 10 / 100, which results in a shipping and handling charge of $5.00. After you determine the total cost of the order (purchase plus shipping and handling), display it in an alert dialog box.
Here is the code I have:
<!DOCTYPE>
<head>
<title>Calculate Shipping</title>
<script type="text/javascript">
function parseInt() {
var salesPrice = document.salesForm.Price.value;
var minCharge = salesPrice + 1.50;
var shipping = salesPrice * 10/100;
if (salesPrice <= 25)
window.alert('Your sales total including shipping is $' + minCharge);
else
window.alert('Your sales total including shipping is $' + salesPrice + shipping);
}
</script>
</head>
<body>
<form name="salesForm">
<div >
<p>Enter Your Purchase Price</p>
<input type="text" name="Price" /><br /><br />
<input type="button" name="Calculate" value="Calculate Shipping"
onclick="parseInt ()" />
</div>
</form>
</body>
</html>
Everything works except for the math in the alert box. It will show an incorrect total...
So I get a set of form elements that I want to extract the values from, by using
var inputs = $("input.row_2");
inputs[0].val()
When I run this, I get told that val is not a valid method.
What am I doing wrong?
Should be an easy one..
Thanks!
I have a html form where visitors can fill and send me some information, as an e-mail. It sends like this:
$body = print_r($_POST, true);
mail ($to, $subject, $body, $headers);
When they write abc'def I get abc\'def
What is this additional \? How I can prevent it?
i am clicking a button on a form in access:
Private Sub Command29_Click()
some_variable = 2
stDocName = "test"
DoCmd.OpenQuery stDocName
End Sub
my query looks like this:
SELECT *
FROM [some_table]
WHERE [Occurrence Number]=some_variable;
is this possible to do?