64,152 Solved Topics
Remove Filter ![]() | |
[CODE] <script language="javascript" type="text/javascript"> function Calcaulate() { if(document.getElementById("drpPhoneList").value=="Home Phone Lite") { var txtRegular= document.getElementById("txtRegularRs").value; document.getElementById("txtTotalRegularRs").value=parseFloat(txtRegular); document.getElementById("TotalRsTaxes").value=parseFloat(txtRegular)+parseFloat(3.63); } </script> <input type="button" value="CALCULATE" onclick="Calcaulate()" class="button" /> <asp:Button ID="btnAdd" runat="server" Text="ADD" OnClientClick="return Validations()" OnClick="btnAdd_Click" class="button"/> [/CODE] as i have two buttons one is html and other is aps.net button what i want to … | |
(VS2008 SP1)building my 1st website but having a problem...need to have the contents of the page to always be centered with respect to the window size, so that is to change to flow layout | |
Hey all, stuck on abit of a problem. I am outputting afew strings to a text file. However when I check the text file it has been automatically split into 2 lines. Is there anyway to force the output to remain in one line or what is the reason for … | |
![]() | Hi all, I'm currently having an issue with an array, which when i loop through it, it returns random results, or only 1 result even though it should contain more. What i doing atm is calling some information from a database and displaying it. im outputting a hidden field with … ![]() |
Hello everyone I have a hard time making this work.. I have some data that i wish to sort by date , and i would like to sort them asc and desc using a jump menu. I know that within the jump menu i have to call 2 queries to … | |
Hi, i am trying to read the contents of a text file containing a single line into a string. i'm doing this in a while loop. the text file gets updated in each run of the loop and therefore the string should contain a new value in each run. but … | |
I'm a newbie so please forgive me if this is a stupid question. I don't understand what I've missed in the code below and how I can get it to work. I have a few lines of code that works fine. It makes a * show as an error message … | |
Hello Is there a recommended way to drag a table from netbeans pallet and use ResultSetMetaData or any class to have the table change automatically for any table being displayed? thanks | |
How do i call a vb subroutine from a javascript function? in my code i want to verify if the field is filled or not.if its left black a message pops up but if it is filled it should proceed to submit the form or run the background vb subroutine. … | |
Hello, I want to create an XML file Containing 3 tables say Table 1 : Under this i have one column :Data which has 3 rows of data say 1, 2 ,3. Similarly i want to create more two tables which will have similar structure. All these 3 tables should … | |
hi i want to redirect python compiler messages to a file. for example if i run a python which has a line [CODE=python]a=;2[/CODE] python compiler will give me an error message saying 'syntax error' how i can fetch this error and write it to a file? i run it with … | |
how to create thumbnail dynamic image which store in sqlserver2005 databse.. it will be display in datalist component with thumbnail.. i'm using this function for asp.net vb thank for advance best regards hiks | |
I really like your forum here and I just want to know: How to make your home page shows a small part of your post with the title and "read more.." button, so once you click on the "read more.." button you will be taken into page with the entire … | |
This should be simple, but I think I am missing up the syntax. I am trying to make a list of the letters that appear in a string. import string values=[] values[5]="12234.7B" holder=[] holder.append(values[5].letters) This code gives me an error on the letters function. Any idea why? Many thanks. | |
Ok, guys I know that I'm asking too much questions, it's just that I really want to understand how things work. So I have a little project: Make a program in C which runs three processes (A,B,C), which use a common memory (buffer). Process A generates 50 random numbers and … | |
Hi, I'm writing a program that totals how long someone has worked by the starting time and the ending time. It DOES work if the times entered are both AM or PM. Like if they worked from 2:00 to 9:10, it tells me the right answer of 7 hours and … | |
I am a relatively inexperienced coder so please excuse my ignorance. I am attempting to write a code to iterate rotations of functional groups in a molecule. The number of groups that need to rotate and the step size is based on user input. I know i can generate the … | |
hi all! i have a table layout panel with lots of controls in it. side to it i have a combobox with 5 options "system A" and "system B" ect. when i pick one system, i clear all the controls one by one (checkboxes to check=falsa , textboxes.text = "" … | |
Hello guys, I'm making an application for myself and I need to get the coordinates of the mouse when left click was pressed. I managed to get the coordinates when I click on the form by using[CODE]MouseUp += new MouseEventHandler(KeyCaptured); void KeyCaptured(object sender, MouseEventArgs e)[/CODE] but when I click inside … | |
I have a problem working out how to return users data when the user logs in. It needs to work so that when any user logs in only their data is shown. This is the current table structure; I have three tables set up; 'Users' 'Profile' 'Linkingtbl' The 'Users' table … ![]() | |
All the add/remove/modify/display functions are now working for my little Customer Call Tracker web app thanks to the help of a few others on this site. Currently to manipulate the data after it has been entered I have 3 separate form fields to paste/type in a work order number which … | |
Hi, I was wondering if the compiler Visual C++ is smart enough to optimize code like this: [CODE=C++]string temp = "abcd"; string temp2 = "hahaha"; string temp3 = temp + temp2;[/CODE] "temp + temp2" can be replaced by "abcdhahaha" [CODE=C++]vector<char> alphabet; for (char i = 'a'; i <= 'z'; i++) … | |
Hey guys, I have been looking for hours, and I can't find the correct solution or know where to even start... I got this script, and when I click on a radiobutton from the part of the website, it needs to change the reasons (other radiobuttons). Can anyone help me … | |
I've been working on an applet that gets all the links from a webpage. So far, I have it getting the source. I have found some regular expressions that supposedly will parse out the source, but it doesn't make any change to the original source. I also found some example … | |
The aim of the program is to add ten numbers then output their sum. I can do this but in a very basic way. for instance the only way I know how to do this is by adding each array and thats quite tedious and long is there any way … | |
Hi. I don't know what is wrong with the following attachment, actually I have two drop down list on my html form, and which is one retrieving the value from MySQL table, and the second is dependent to the first one, and that one also gets its value from another … | |
I've been developing console applications using C/C++. I now want to move on and create some GUI applications. For that i saw some libraries to create GUI. I think those libraries are OS dependent. How can we create GUI applications compatible with Linux, Windows and Mac, or is it even … | |
Hi , I am trying to insert chinese characters in database using sql statement but they appear as '????????' in the databse.Can anyone help me with this . Thanks | |
Hello everyone, I quite new at JAVA and one assignment is on my nose and I am going crazy.. My task is: "[I]Create a solution for the following scenario: A local community mobile college unit holds 2 different classes in literacy and numeracy for mature students. A student can join … | |
I can not figure out how to get data from the model to the GUI in the view. If the user logs in successfully all the users personal data is stored into the bean including the userUid. of the user. also, if login is successful the app will build many … | |
Hi all! My first post in Daniweb. I'm making a invoice script with textfield to input some numbers (Belopp_1 , Belopp_2, Belopp_3 and Belopp_4) among other stuff. These numbers ar inserted ia a MySql database wthout problems. Tere are also some calculation made in the script to add the numbers … | |
Hi all, I have 2 xsl variables (currentBillDate and lastBillDate), both having access to dates in format of yyyy-mm-dd. How can I calculate the number of days in between both days? Example: 2006-08-28 - 2006-11-06 I tried it this way but it kept giving me NaN <xsl:value-of select="$currentBilldate - $lastBillDate" … | |
Hello, In a method i am calculating the longest row of elements. The 1-dim array is filled up with random values (0 or 1). The method looks up the longest row (being 0 or 1, whatever is the longest). Meaning in for example: 1110100 --> the longest row would be … | |
OS : Ubuntu 9.04 Python : 2.6.2 I want to print a "while" loop into a secondary wx.Frame named "Results" here's the code : [CODE] #!/usr/bin/env python # -*- coding: utf8 -*- import random import wx import os # Operating System dependent call import sys import cPickle as p import … | |
Hi guys, I'm fairly new to PHP and mySQL, using a book to help me learn. I want to create a small site to help me improve my skills, but I'm a bit stuck on the database design part. I want to be able to list various public companies and … ![]() | |
OK I can upload a single specified file but need to create a loop to read and upload all files in a certain folder. Here is code for single file. [CODE]'upload a file ftp.Upload("c:\test\ftp\upload.exe", "/pub/upload.exe")[/CODE] | |
hi; Im using a gridview to display images in 1 of the column...but the size of the images is very small.is there anyway to enlarge the image on mouseover or even without mouseover by adjusting the column width or something.i would prefer doing it by mouseover.can anybody help me...my code … | |
Hallo all. Iv spent a lot of time browsing through the old threads and I cannot find a solution to my problem. Please help... I have to files H:\me.txt and H:\you.exe and I want to write a code in Turbo C++ to open these in a separate window, meaning I … | |
I tried hashing, but that did not work. How would I do this? Thanks. | |
Hello, I have a simple question. Look at the following code: [CODE]class ClsA { int * var1; ClsA(); ~ClsA(); } ClsA::ClsA(){ var1 = new int [10]; } ClsA::~ClsA{ delete [] var1; cout<<"Apel destructor"; } void funct(){ ClsA ** p = new ClsA * [10]; ..... delete [] p; }[/CODE] When … | |
I am sorry to bother people with silly questions, But I have no choice. I have a statement unsigned short a=4000, current_word; current_word=a << 3; Then I have another statement unsigned long a=4000, current_word; current_word=a << 19; According to my knowledge they will contain the same value. Am I right? | |
I have searched and I have searched but I can't find a way to display all instances of SQL Server in a combobox. Any help is greatly appreciated. | |
![]() | Hey! i am new in web development and asp.net as well. actually i am a student and want to make social network type website for my institute. Can any body help me by giving me some url about development of social networking. thank you! ![]() |
Ok so I have a login page which actually gets an employees ID and password and includes the employee id and surname+firstname in a session. Now in the following page: [code] <?php require_once("nocache.php"); session_start(); if (!$_SESSION["who"]) { header("location: logoff.php"); } else { $emp = $_SESSION["who"]; $sn=$_SESSION["surname"]; $fn=$_SESSION["firstname"]; } require_once("dbconn.php"); $sql="SELECT … | |
Hello, the following code is not exactly working properly. Bascally when I enter + in the dialog box it escape but still increments in the calculation. So for instance if I first enter a word "hello" then I click OK button then I enter word "there" then I click OK … | |
Hi everyone, that's my first post in these MySQL forums :) In college they gave us a E/R in order to make it on MySQL Workbench and I'm not sure if it is OK. If you could help me it'd be great :D Because I started with MySQL just a … | |
Hey Guys, Recently ive been developing a text editor when i came to stop. [ICODE]system("cls"); cout <<"\t\t-------------------------------------" <<endl; cout <<"\t\t| NEW FILE |" <<endl; cout <<"\t\t-------------------------------------" <<endl; cout <<"\t\t|Enter New File Name| "; getline(cin,createfile); cout <<"\t\t----------" <<endl; getline(cin,text);[/ICODE] here getline accepts code only until one press enter key How to … | |
Please help me solve this problem, I've spent 2 days to search for what error is but I can't!!! The operator + return error object though this object was still right before it is returned. Maybe it's because of the copy constructor but I find no doubt in its syntax... … | |
When i enter the following code I get an error saying "method must have a return type" could somebody please explain what needs to be done to correct this error. Thanks, public EditDialog(DataRow row) { editRow = row; InitializeComponent(); PopulateForm(); } |
The End.