199,124 Archived Topics
Remove Filter ![]() | |
hi i'm using asp.net to create an online order form. i have 4 textboxes and i want to save the information from the textboxes to my database on click of a button. dbName = BikeOrderdb txtQty, txtBikeId, txtBikeName, txtPrice [B]Can you please help me with the code for connecting textboxes … | |
I encountered some code at work that got me thinking. There was a util - class that had some methods that had nothing to do with the state of the class. They were all "util" methods. Meaning that they could all be declared static with [U]no[/U] problem because the only … | |
I want to write to input and click submit on a form, but don't know how to access the elements, given an id. Help :D | |
Hi I am sitting with an flat db file, and need it converted to 3NF Example: ProductID Published Title Authors 1 2000 Car Mech. Bill Meyer, Peter Daniels I have split this structure in 3 tables: Book Author Author_Book In Book I have the following fields: (PrimaryKey)ProductID, Producttitle, Published. In … | |
this php n html code is supposeed to allow editting of property info/details | |
hi all, im doing a project where i have to implment a rpg game... i have a class called item and the constructor looks something like public Item(int x, int y, String image_path, boolean z) { map_x = x; map_y = y; image = new Image (image_path); pickup = z; … | |
U get the following error on my one page Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /usr/www/users/stealtf/components/com_aclassf/top.php on line 111 This is my coding [CODE]<?php /** * This file is part of Almond Classifieds Component for Joomla! (site:[url]http://www.almondsoft.com/j[/url] ) * Copyright (C) 2008-2009 AlmondSoft.Com. All … | |
Below code is in my DB file. If I enter a card no in first record, for Others card no will be automatically comming. but for the other "Test " I want to show the record no automatically. I was coded below. but it's not working. Pls help me. Thank … | |
[CODE]package Add; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionForward; public class AddSuccessAction extends Action { private final static String SUCCESS = "success"; public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { … | |
Hi, What would be the best way to have film found from a database of films using a number drop down menus and maybe a search bar? The results would be displayed in a list. Wht would be the best way to build this? Thanks Dan | |
| |
Write a program that generates one hundred random integers between 0 and 9 and displays the count for each number. Your program must have method that returns the counts for each number. Hint: Use (int)(Math.random() * 10) to generate a random integer between 0 and 9. Use an array of … | |
[code=c++]class StripChartWindow : public PegDecoratedWindow { public: StripChartWindow(const PegRect& Rect, const PEGUINT TitleId); virtual ~StripChartWindow() {} virtual PEGINT Message(const PegMessage& Mesg); private: PegStripChart* mpChart; PegStripChart* mpChart2; PEGUBYTE mID; PEGUBYTE mSin; PEGUBYTE mID2; PEGUBYTE mSin2; };[/code] This is the part which is givin me errors as below... error C2143: syntax error … | |
i can't get this from working. i want to execute these two queries ebcause i want to insert data to two separate table. is it possible to do this with one query? this is what i've got so far: [CODE=php] $sql = "INSERT INTO login SET studNo = $studNo, userName … | |
Hi, this error on IIS 6.0 (windows 2003 standart). Same code work at different server(iis). i think, update java script or install extension. | |
I have been given a task to normalise a set of attributes, I have started with 0 normal form (the attributes) and have attempted to normalise them. Quite frankly im useless when it comes to normalising and I was hoping someone could have a look at my attempt and explain … | |
Hi. on my form, the field are entered depending on availability. some fields are mandatory while others are optional. The mandatory fields are inserted into one table called [B]Receipt [/B]while the optional ones are saved in the other table called [B]receiptLine[/B]. When all the fields are filled in, then the … | |
Is it possible to iterate through an anonymous array of strings with a for loop? Here's what I'm trying to do:[code]for ( i in ['country', 'city', 'state'] ) { doSomethingWithString(i); }[/code] What I want is the string, but what I'm getting is the index number of the array, which I … | |
hello all, am using asp.net vb . i have a label named label1 but i am passing data into it at runtime which depends on what the user clicks. My problem now is that 1. How do i do autosize for the label because its not in the label properties … | |
I've written a program like the follow: [CODE]int main () { . . . . ifstream file1; ifstream file2; ofstream simiralities; simiralities.open("P(0)_P(1).txt", ios::app); file1.open("test1.txt", ios::in); while (!file1.eof()) { . . . file2.open("test2.txt", ios::in); while (!file2.eof()) { . . . . } file2.close(); } simiralities<<number; file1.close(); simiralities.close(); return 0; }[/CODE] the … | |
[code] public partial class FrmOnline : System.Web.UI.Page { string Query; SqlCommand cmd; SqlConnection conn; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { OpenSQLConnection(); SqlCommand cmd = new SqlCommand("select * from Info1 where UID=1", conn); SqlDataReader dr; dr = cmd.ExecuteReader(); while (dr.Read()) { dr.Read(); TextBox1.Text = dr[0].ToString(); } } … | |
Hello all. I am unable to solve two problems when creating a contacts form using dreamweaver CS3. My other problem is posted under the heading, "Setting text field to accept only alphabetical characters". For this posting, can someone please tell me how to modify my code, pasted below, so that … | |
Can anyone tell me how can I enable one and only one whitespace to be entered in the textbox such that user can press spacebar only once while entering the string in the textbox and not more than once........... Kindly provide me some solution............. | |
Apologies for the huge post! I am having trouble with ajax right now on my site: (This site is only a first draft and has a few nav problems with the flash - will sort it soon) My main problem is I have an Ajax code on the index page … | |
i'm getting warning in all pages where i used session function... warnings are displayed before redirecting to the page... some help to solve this... here the warning message, [COLOR="Red"]Warning:[/COLOR] session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Inetpub\vhosts\agamudaiyarsalem.com\httpdocs\profile edit.php:2) in C:\Inetpub\vhosts\agamudaiyarsalem.com\httpdocs\profile edit.php on line … | |
I want to change cursor type & backcolor when mouse moves over a td,Suppose I want to chnage the cursor to Hand, & backcolor to Blue on mouse move, & on mouse leave i want to change the cursor to default..How to do it????????? | |
Ok, I use apache web server to host a club website within a school network. Now I need a script to display the ip address of my web sever because it is constantly changing. Is there scrip that will perform this function. note: the site only works within the school … | |
please someone help me to create a regular expression for "123456789V" this kind of pattern... 1st 9 places should be numbers and 10th place should be "V" argent thnx in advanced | |
I had to take computer science for my major, but I have no idea what's going on in this class. I have to write an algorithm that reads in ten positive integers from the keyboard (upper size limit is 99). Output the additive total of the ten numbers and also … | |
I designed chess board game before , i did for loop for rows and i did for loop for column ... and the result appear good . But here i want to make the board by two inner loop inside them . I do that but the rows not appear … | |
I am having trouble with textbox multiline when it store to Access database and returning in gridview show one chunk of string. Is there anyway to place each data into each own row? Input: google yahoo msn Output: [url]www.google.com[/url] [url]www.yahoo.com[/url] [url]www.msn.com[/url] But right now it is give me [url]www.googleyahoomsn.com[/url] Here … | |
Hi, am new to asp. Please help me in this. I have a form, with textfields, checkboxes etc. On clicking save button, the control shouldnt go to a different page. Same page needs to appear & not a diffferent page. Am using javascript for client side scripting & vbscript for … | |
I am having trouble getting a button to work properly, it works the first time it is pressed but then it doesn't work again when pressed. [CODE] <script runat="server" language="C#" type=""> public int LogoWidth = 150; public void btn1_Click(Object s, EventArgs e) { LogoButton.AlternateText = "Hello World"; LogoWidth += 10; … | |
How to read a part of a text file and put them in an array in c# 0 #1 1 Day Ago I have a text file including several strings and doubles. I want to find a specific string in the text and read all double numbers after it which … | |
| |
I am trying to write a program that will give me the volume of a cylinder when I run it. I already have a Circle class that computes the area of a circle. I am also using a seperate program to handle the input and output. Could someone tell me … | |
I am a total beginner that happens to own a copy of visual studio pro 2005. Would like to get a glue as to how to get the basics and advance myself. Is there anything on the daniweb site to guide novices to at least get a concept of how … | |
Hi , I want to know, how to implement vtable in C. This is achieved through virtual functions in C++. I feel we need to do what c++ compiler internally does, But i am not sure on the entire implementation. Thanks. | |
that is the question guys. thanks. | |
I am currently having problems with my getline in main. Whenever I use it, it prints out the last word in my input file twice. I do not know how to get rid of it. Any help is appreciated. [B]Input file:[/B] noon dog race car cat mom bob [B]Current Output:[/B] … | |
you can seee some example for beginners at [url]http://vbandc.tripod.com/[/url] | |
hi, I format my laptop and then install VS2008.but now it gives an error when run my webapplication.error is"Compiler error csc.exe file is not found" and when I run new webapplication it will give an error"Compiler error vbc.exe file not found" | |
I dont have idea how to show "kim chong" words backward(gnohC mik). anyone have idea for this quenstion pls share thanks! | |
I want the cursor to be in a particular textbox when the page loads. I achieved it using document.formname.formname.focus() But the textbox has a default text. And i want it to disappear once the user starts typing. how can i get rid of this default test ? | |
hi everyone. to put it plainly, I was writing some python code that used the itunes scripting interface to control itunes. so I got all of my functions down, and now I wanted to have these actions occur on a specific mouse press. thanks to Tech B, I used the … | |
I've try to figure it since 3 days a go..:-( and sorry for my english. what i want to do is displaying a random link on my conduit toolbar and it change randomly everytime EBNavigateComplete event occur. EBNavigateComplete is just one of conduit's event. It works fine on my firefox … | |
I for the life of me can't get this to work and I get no errors. [B]admin.php[/B] [CODE=php]<html> <head> <title>Admin Area</title> </head> <body> <? //connect to mysql //change user and password to your mySQL name and password $conn = mysql_connect("host","username","password"); if (!$conn) { die('Could not connect to the database: ' … | |
I keep getting this error whenever I stop my program and I am wondering am I freeing memory right. This is my structure and I created a global array named day. [CODE]typedef struct { int hour; int minute; } Time; typedef struct { Time startTime; Time endTime; char subject[20]; char … | |
An online retailer sells five products whose retail prices are as follows: Product 1, $2.98; product 2, $4.50; product 3, $9.98; product 4, $4.49; and product 5, $6.87. Write an application that reads a series of pairs of numbers as follows: a) product number b) quantity sold Your program should … | |
I have [COLOR="Green"][B]installed NetBeans IDE 6.7.1 and installed the MinGW compiler[/B][/COLOR] for the C/C++ plugin, all was ok until [COLOR="Red"][B][U]i have to use <ncurses.h>[/U][/B][/COLOR] for a project and it doesn't exist. [COLOR="Red"][B]Can you please tell me where to get it and how to install it???[/B][/COLOR] plz...it's for a paper in … |
The End.