64,152 Solved Topics
Remove Filter ![]() | |
I have written the following code in a class as my connection string. I want to retrive data from a field in a table in my database using this connecyion string. Please how do i go about it? [CODE]Public Class ConnectionString Public Shared Function ConnSQL() As SqlConnection Dim connectionString As … | |
i throw a string value from the database in an input box...when i click update button, i need to clear the textbox after clicking update button..how?thanks a lot... | |
Hi! How to create a website with cookies, but cookies will not be deleted (they will be on computer forever, except somebody delete it; I deleted the cookies one time, and then they have been automatically created (I didn't go to these sites)) So, how to create these two things? … | |
Here's my dilema. My client program is going to request a certain file from my server program, so the server program needs to send the size of the file it requests and then the file itself by using a Socket all in one go. My client will then read the … | |
I have a script that reads all rows from a database, and prints it out to an html table. The html table has an extra column for "status".In this column there is a form that is supposed to submit the dropdown field to the mysql database. I've got the set … | |
Wondering what the proper way to test a collection, that is not an [I]ICollection[/I], is since Assert.Contains(object, [I]ICollection[/I]) cannot be used for something like a constructed PriorityQueue? [CODE] [Test] public void AddTest() { PriorityQueue<Vertex> vertexQueue1 = new PriorityQueue<Vertex>(); Vertex v1 = new Vertex("V"); v1.minDistance = 10; vertexQueue.add(v1.minDistance, v1); Assert.Contains(v1, [I]vertexQueue1[/I]); … | |
I have two forms that are called by the main form. One is named frmEdit, and is invoked by the ShowDialog (modal) method. The other is named frmSearch and is invoked by the Show (non modal) method. In both cases I want to preserve the last window position so each … | |
i created a simple appz..two textfield.numeric... this is the first time i've encountered this.. when i input 1 on the first textfield it will display as 11 same as with 2 display as 22.. i have no problem with the second textfield.. anybody knows about it... | |
Hi everyone, I'm writing a program that reads numbers from a text file, stores them in a table, does calculations on the numbers and displays the result in a jTable. The scanner reads the numbers as doubles and stores them in an ArrayList. My tablemodel is very similar to the … | |
let say i have a class A (base) class B , C, D also inherit A [ multiple ] then class E inherit class B, C, D... But class E also want to inherit class A [ multilevel ] *I want to use class A protected function in class E... … | |
Hi, I am trying to update data from a column in a database using a php script. But for some reason it doesn't update the database, but i get no error feedback. So first i select a random entry from the database and i add it as a parameter to … | |
[CODE]char main()/*Start of the function main???*/ { char choice1; char choices = 'y'; while(choices == 'y' && choices != 'n'){/*while loop initialization*/ print(); getchar(); scanf("%c",&choice1); printf("%c",choice1); switch(choice1){/*Switch case statement,,,*/ case 'a': case 'A': addContact(); break; case 'f': case 'F': search(contacts); break; case 'v': case 'V': list(); break; case 'e': case … | |
![]() | Hi folks, I am trying to create a function that adds comments to a text file. If the file exists, the comments are added to it. If the file doesn't exist, it is created then the comments are added to it. If there are any problems, an error message is … ![]() |
For the project I'm working on, it has to have a changeable template system, so the users can make their own HTML templates to work with the system. However, I have no clue how to even go about doing this. Any help would be appreciated, thanks. | |
im building a site that places galleries within an itemTemplate, each gallery has its own ID, im tring to allow each gallery to have its own "edit" button, this will allow the user to delete or rename the gallery etc. is it possible to make the button ID the same … | |
i already finished my app and now i deployed it using Setup Wizard. But when i installed my app to my computer, the Crystal Report didn't work.... it says "Load Report Failed"... and when i red about this Merge Module thing i want to figure it out but the problem … | |
I'm trying to write out a series of objects as an XML file so they can be read in later. I have all the code to build the XML tree and set all the attributes, etc. I've looked through the whole tree in VS so I know all of my … | |
The below line generates this error. Can anyone gives me a solution Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\wamp\www\MySite\php files\approve_page.php on line 25 [CODE] $query = "UPDATE transaction SET approved_status='1' WHERE account_number='$account_number' AND tran_id='$_POST['tran_id']'"; [/CODE] | |
Im not asking for home work help .I need a guide.. My teacher gave a huge project work for me. I have to develop an application that maintains basic info about all students in my college (every department and IV batches in each department). And I need to maintain their … | |
I'm working on a game version of Game of the Generals (board game). Basically, it plays like checkers, but I wanted to add multiplayer functionality, with an additional chat function. A player starts a server, another player on another PC (in the same network) starts a client, client connects to … | |
How to open already present text file... So user can see the data in that file... I dont mean FileInput or OutputStream open. | |
I'm creating dynamic buttons and forms for a website and would like the form hidden when it's corresponding button is clicked. However, when I pass button and form name variables to my JavaScript that hides the form, the variables are not being recognised unless I explicitly set them. (e.g 1 … | |
wxpython i cant figure out the problem. it says that the global neme 'panel' is not defined. Traceback (most recent call last): File "C:\Users\Daniel\Desktop\Duffan Teorem", line 34, in clickbutton wx.StaticText(panel,-1,media,pos=(150,240)) NameError: global name 'panel' is not defined could someone please help me to figure tha problem out? Thanks in Advance … | |
Hey! I have a problem. I've been coding Python for two years now, and it's great, but now I'd like to use a module called "ctypes" to import C function into Python. I know how to do it and all, but the problem is: I know how to program in … | |
Deal all, i am new to reports , i tried BIRT,JASPER,Crystal and oracle reports ... but i m only able to make a report in designer , how to connect to standalone application of java made in java se edition... So please tell me easy report designer because in vb … | |
Hi all. So I have a site where I need to display uploaded images for properties. There could be anywhere from none to several images of one property. I have each image going to it's own folder based on address. Should I call on those images directly from the folders … | |
I am using Access 2007 AND Adodc. [Date] is a field in my table1.What is the code for getting a record on a particular date? | |
Hey guys i'm creating a site network using WordPress. Lets say my site name is blahblah.com and lets say i have 10 subdomains like site1.blahblah.com,site2.blahblah.com Now i want something like this. There will be no articles in my main domain. But i want list all subdomain's articles in my main … | |
Hi, I am writing an application in which I make a map of strategies keyed by a string symbol. In order to construct the strategies I pass the constructor a filename, out of which it reads out some data, into an initializing map. It is possible that some data might … | |
How can I know whether the user surfing my website is surfing via a mobile device or a PC?? I thought about: [CODE]$_SERVER['HTTP_USER_AGENT'];[/CODE] However, I think that there is a variety of names of mobile browsers.. How could I solve it?? Thanks beforehand. | |
I have one select list, which is populated from the DB like this: [CODE] <select name="position" id="position" onChange='itemdisplay(this.value)'> <option value="<?php echo $til_subject; ?>"><?php echo $current_subject; ?></option> <?php while($row=mysqli_fetch_array($result)){ echo '<option value=' . $row['id'] . '>' . $row['linknavn'] . '</option>'; } echo "</select>"; ?> // Next to this list i have … | |
the bottom line of what I want to do is- I have a file with a form (form.php) that has 2 drop lists, on sumbit I want to be redirected to another page (1.php) if dropbox 1 was set, to page 2.php if droplist 2 was set and to page … | |
Hi I am trying to find the answer of the following. Suppose, I am trying to build a web page to conduct a fictious online Poll and people vote their favourite candidate. Now each voter is allowed to vote only one candidate from any one party. I have made the … | |
OK....sigh... I need to link to lwinmm to use playsound and stuff Looked around and looked like I needed to do it like this: I'm using Codeblocks [CODE] #include <iostream> #include<windows.h> #include <mmsystem.h> #pragma comment (lib, "winmm.lib") using namespace std; int main() { PlaySound((LPCWSTR) "c:\\Snap ya fingers.wav", NULL, SND_FILENAME | … | |
[CODE] deleteCont(){/*function in deleting contacts*/ printf("enter contact you want to delete: "); getchar(); fgets(find,100,stdin); j = 0; while(strcmp(contacts[j],find) != 0){/*start of while loop*/ if (strcmp(contacts[i],find) == 0){/*start of first while loop*/ printf("you want to delete %s",contacts[i]); size = strlen(contacts[j]); for(i = 0 ; i < size ; i++){/*start of 2nd … | |
I wanted to know how Java does Object Cloning. But when I read the Object.java class I saw that it was not defined in it. Im confused. I really dont know who internals of java are implemented. It would be nice if someone could help me with this..... | |
Hi all, I've been doing some reading about calling a non static variable or method from a static context, and almost but not quite have my head around what exactly is going on. I've read the text but can't seem to put that into context, so please bare with me. … | |
Hi guys. What I'm trying to do is pass all items and subitems from a listview on my main form to a listview on a new form. After googling for a couple of hours the closest I got was the the code below which only passes the selected Item from … | |
Hi, I am tired in searching the solution in google for my issue in ADODC MoveComplete Issue: In my application I was using reference ADO 2.0 version for ADODC connection and it was working fine. Due to some other enhancement i forced to change the version from ADO 2.0 to … | |
I would like to learn java. The books listed in the previous posts seem outdated. Can anyone recommend an up to date java book. There seems to be many java versions, if that is the correct term of course, such as jdk 5, jdk 6 etc. Which one is good … | |
I'm trying to use a plugin for paging from jquery, the thing is that the demo is not very clear, at least for me that I'm not very familiar with jquery and httphandlers. Here is the javascript code. [CODE] $(function () { var a = 10; var b = 10; … | |
Im trying to output the population increase for a population. the problem is my for loop doesn't increment or add correctly. here is a sample output. i made it easy with no death rate and a population of 100 to easily calculate the increase in my head. Starting Population: 100 … | |
Hello I am seeking guidance for a project that requires the use of a database. Obviously I will be programming in Java! my question really is: what is the best database that can be used with Java? My program will be a desktop application which will use the database locally, … | |
So I'm fairly new to C++ and I'm wondering if this would be possible and what the code would look like. I'm trying to create an ongoing process that monitors when a certain program does something and launches another program when that thing happens. Example: I have Steam open and … | |
PLease help me with these questions, I was interviewed for thses just today Q1)Can we delare constant data members inside a class? Q2)does friend function violates encapsulation/data hiding? Q3)what are the types of polymorhphism you know? Q4)why do you need virtual functions? Q5)Can we do something like\ int & = … | |
[B]I need to update one select box, depending on what has been chosen in an other select box. [/B] I know I need to use AJAX, but I havent used AJAX ever before, so I am a little lost on how to implement it. [B]This is the first select box:[/B] … | |
Hi guys. I have this ComboBox which I made : [url]http://i.imgur.com/kkB8T.png[/url] I want to reference each item from the combo to a win form . So far Ive this : string comboSelectedValue = comboBox1.SelectedItem.ToString(); MessageBox.Show(comboSelectedValue); It does display of course the value Ive chosen but thats not what I want … | |
Variables vvi and hhi should be with for loop turned into vv1...vv30 and hh1, hh2...hh30. Now I can't get variables tv, lv, bv and rv to return the variable(vv1 or hh1...) value instead if I put vv into quotes it turns the variable into a string (with value: vv1 or … | |
Hello all, I've a seemingly simple question, but it's kind of got me thinkin there might be a "proper" way to accomplish my goal. My goal is a simple MySQL database schema install. In PHPMyAdmin I export a database, any database. I then save the file to the root directory … | |
This is a continuation of problems with the program posted here: [URL="http://www.daniweb.com/software-development/python/threads/372311"]http://www.daniweb.com/software-development/python/threads/372311[/URL] I started thinking there was something wrong with my statement to open the csv file, using the reader. [CODE]reader = csv.reader(open('C:/Documents and Settings/VPC.VPC-SCALA.000/Desktop/RAH 7-11-11/RH/Projected Cash Goals Template.csv', 'rb')) [/CODE] I put a test statement above the open statement … |
The End.