64,152 Solved Topics
Remove Filter ![]() | |
This is a continuation of the [url="http://www.daniweb.com/tutorials/tutorial19303.html"]Updated: ASP.NET Login Page Tutorial[/url]. This tutorial will demonstrate how to create a registration page for new users to your site. This registration page will utilize the same principles used in the Login Page Tutorial, so this should be no more difficult to do … | |
Hello All, I currently have pager.ascx control which i am using to display 12 items per page. i am using "gid" constant string to set the number of pages. "gid" is defined in my base class called myPage.cs as follows [CODE]public class myPage : Page { #region constants [B]protected const … | |
Hello All, i am currently using Google Analytics to collects stats about my site ( my site is created in ASP.NET 2.0 and C#). i have asp:imagebutton called "Confirm Order". i want to track the clicking of this button. the code for this button is as follows: [CODE]void ibConfirm_Click( object … | |
Hello, I would like to execute a double for-loop in python. I use the python interface with ArcGIS (hence the gp. prefixes and weird functions). Here is my double-for loop attempt but I can't execute the code due to 'invalid syntax.' If I remove the bottom loop, the code runs … | |
First, I want to say that I am Java beginner and I do not have a lot of experience. This is my 2nd program. My objective is to write a program using stacks to see if a line inside of a file such as test.txt has matching scope symbols such … | |
I'm confused totally... Ok, I create the class with the array: [CODE]ref class my_child { public: array<int>^ mas_1D; my_child() // constructor { mas_1D = gcnew array<int>(10); }; };[/CODE] Next, I create one more class with the variables of the previous class: [CODE]ref class Father { public: my_child dear_baby; // 1-st … | |
I'm having Buss Error issues. I feel that it has to do with either my deconstuctor or my insert/delete functions. I know I'm not supposed to put up whole source code, but I will put it up if needed. Assume that ItemType is an integer and Next is a pointer. … | |
Next Problem, i need to make my page hide the background image in the banner <div> when somebody click anywhere in the footer <div>. Again, it needs to use javascript. i was doing some fiddling and took out the background image and replaced it with a colour instead and got … | |
Hi everyone. we have an assignment that asks us to count the number of occurrences in a piped raw input text file and print it, calculate its phi statistic, the expected phi for english and the expected phi for random and then print them all out. also, at the end … | |
[code] if( $_SESSION['user_id'] <> 1) { $ref = $_SERVER['HTTP_REFERER']; header( 'refresh: 5; url='.$ref); echo $_SESSION['user_id']; // <----- echoes '1' echo "<h2>Some feature is currently unavailable.</h2>You will be redirected to $ref in 5 seconds"; die; } [/code] I've written this a hundred different ways and it still redirects even though the … | |
There is probably a joke in the comment that I am missing but this post is going to give the design approaches to solving the problem posed by FirstPerson in his signature: find the last ten digits of x^x (x raised to the power of x) for all the positive … | |
So, this is my version of battleship with single space ships instead of a ship with 2,3,4, and 5. The only issue is the cpu I programmed isn't always choosing five, or it's choosing spots not on the map, I am completely lost if you can offer any help at … | |
i need to make a paragraph of text identified by a <div> grow in size when the user moves their mouse if that portion of text. I Guess it needs to use onMouseOver and getElementById but i not sure what else is needed, i have trawled the internet for the … | |
:icon_confused:I have made the change from access to mysql. I am using vb6 to connect. The connection seems to be fine, it was some code sample that I have downloaded from the net. The app is reading the databases, but as soon as I select a database, i get an … | |
Here is my problem. I have a class Template define like this. [CODE]// File Vecteur.h template<class Elem> class Vecteur : public AdenEtEve { public : ... BOOL bInserer (Elem &elemAInserer, MOT32 wIndice);` ... protected: Elem elem; Elem *pElem; MOT32 wNbElem; } template<class Elem> BOOL Vecteur<Elem>::bInserer (Elem &elemAInserer, MOT32 wIndice) { … | |
Hello I am currently doing a project and I have added a new table to an access database linked to the vb project. I re-linked the access database, but the new table does not appear in the drop down list of the form recordsource. Please can someone tell me what … | |
Hi everyone, Apparently I'm very bad at this whole programming thing, but, nevertheless, I am currently in a CPS course and in dire need of assistance! I have 3 objects set up: TwoNumbers, TwoNumbersTester, and Test. When I build the code, it's all fine. When I run the code, though, … | |
hi everyone i m completely fed up to solve dis prob.... i checked my code so many times but i cant find where is my mistake...... plz help me out..................... I am selecting records from diff tables......my select query is correct and after dat m inserted new record and dat … | |
below in the form action, i've put "test.php?w=$sw&h=$sh" but when i input the form and submit i get this.. test.php?search=example&submit=search how do i get all together in the url? like this [url]http://test.php?w=$sw&h=$sh&search=example&submit=search[/url] i even tried this [code] <form action="<?php $sw = $_GET['w']; $sh = $_GET['h']; $theurl = "http://test.php?w=$sw&h=$sh&"; echo $theurl; … | |
Hello everybody this is my first post. I have a web page in php that allow the users to enter a value from three radio buttons. The problem is, i want to allow the users too change their selection on the edit page but first their selection has to be … | |
hi, i have tried to use gd graph, it works, however, whenever i will input a message, it does not appear. if u will display the graph and the message in a separate webpage, it will appear. now, my question is that, is it possible to merge the graph and … | |
Hello everyone, This piece of C# code does not produce any overflow exception. wordsize is a constant equal to 32. the x and y can be very big at the computation time. So big that long or decimal even cant hold. But C# handles the problem even the value of … | |
Hi Experts i need to set text Box Format at run time. Like , when type any case , then show in Only Upper Case | |
Hi, I've got a "contact us" form on my website and naturally i'm trying to guard against sql injection/hacking The body of the text gets run through the below function, however this means i end up with How's it going = How's it going Can someone tell me which part … | |
Can someone explain how the following js syntax works? Is this a function? Why is the syntax like this? How does it work (accessed)? [CODE] SomeName(function() { otherFunction(); var form = document.forms.passengerInformation; toggleCreateProfileFields(); SomeName("#createUserProfileCheckbox").click(function() { toggleCreateProfileFields(); }); }); [/CODE] | |
Hi I'm building a webservice in axis2c and wanna test it with a client. I build the skeleton code for the client using the wsdl2c tool in axis. Now, when I build the solution in Dev-C++, I get a lot of linker errors like the one mentioned in the title: … | |
I would like to construct a neighbour list of multiple atoms. [CODE=python] AllAtoms = {} AllAtoms[0] = [0,[]] AllAtoms[1] = [0,[AllAtoms[0][0]]] AllAtoms[2] = [0,[AllAtoms[0][0]]] [/CODE] Every member of the dictionary is referencing other members of the dictionary. I do not know how to make this reference work so that when … | |
hi guys, just a little help regarding GD Graph, is it not possible to combine the graph plus a little code to echo or display?? because, when i try to insert the code in the upper part of the program, it runs but if i put the code in the … | |
i hav cod to redirect to two different pages but one cod is working and one not one form enctype is urlencoded which is default is working and other with enctype=multipart is not working plz help i googled about this but nothng works so i came here 4 d sol … | |
I have a class KeyCards.java that just sets up a panel (gui) with labels,combobox and text fields when the combobox is selected a class generates strings to send to a class public Class Progressions extends KeyCards and puts the strings in setters. once all the strings are there it calls … | |
hi, i am having problem with closing user control. i have some function in my parent form(with panel2): [code=c#]public void ActivateUserControlOne() { panel2.Controls.Clear(); UserControlOne = new UserControlOne(); panel2.Controls.Add(this.UserControlOne); } [/code] ...and UserControlOne appears. i want to close(remove) UserControlOne on Cancel()(Cancel is function in UserControlOne) and load another User Control (UserControl2) … | |
Hey everyone~! I am having a major issue understanding class casting. I thought I understood it, but I found 2 problems in my Barron's book that seem to contradict in their explanations. Can someone please explain the distinction between these two problems??? [B][U]Problem 1:[/U][/B] [INDENT] Bird = Super class Owl … | |
java.awt.image.DataBufferByte cannot be cast to java.awt.image.DataBufferInt.. how do resolve it... | |
had to do a program that did a binary search for the number 5 but for some reason its not being found...here's my code whats wrong.. [code] #include <iostream> using namespace std; const int SIZE=15; int binarySearch(const int, int, int[]); int main() { int posints[SIZE]={10, 36, 87, 95, 100, 110, … | |
Hello, i am just starting with Java and one of the programs is, to make a long story short, evaluate a computers power (pretend). you put in how many applications you want to run, what operating system and what power your computer is and it tells you whether you can … | |
Hello, I am studying for SCJP 6 Exam, and came across this question which shows code as asks for the output [CODE] 3. public class Ebb { 4. static int x = 7; 5. public static void main(String[] args) { 6. String s = ""; 7. for(int y = 0; … | |
i'm trying to simplify the url, how do i do this within the code below.. if width & height = 1024 & 768 and declare that as variable "1". if width & height = 1360 & 768 and declare that as variable "2". then the url would be test.php?s=1 for … | |
[CODE]print (yourname1) snum = input('What is your date of birth (YYYYMMDD)?:') birth1 = snum[4:6] + '/' +snum[6:8] + '/' + snum[0:4] y1 = int(snum[0:4]) #year of person 1 m1 = int(snum[4:6]) #month "" d1 = int(snum[6:8]) #day '" print ('\n') print ('\n') sleep(1) print (yourname2) snum = input('What is your … | |
Hello, I have a weird problem. I have a class implemented that looks something like the following: [CODE] class textBox { public: // default constructor textBox() { m_text = ""; } textBox(string text) { m_text = text; } string getText() { return m_text; } private: string m_text; }; [/CODE] Now, … | |
I am new to this website, well posting on here anyway. I've taught myself allot about programming and scripting, so I wanna thank everyone for posting. This isn't my first program, but its the first useful thing I've done. It uses the 'w', 'a', 'd', 's' keys to move the … | |
Hello, I'm working on an inventory system for a store that was originally built by MS Access. The database, forms and reports are all MS Access components, and it's a total mess, thus an upgrade needed. I thought of programming the new system with C#, and using MS SQL to … | |
Hi all, I've got a main form, and a secondary form (this being a list from which I pick a number). I can store values as "global" variables - so as to bring the value across different classes. Also I've managed to get the main JFrame to display the value … | |
Good day. I need help from those who know about my problem. How to get the total length of a string. I am trying to code that will get a total length of a string. However, if there one or more that have the same value, then it will not … | |
Hi..this code is not working..the error was [ICODE]while ($row = mysql_fetch_array($sql)[/ICODE] but i know it was correct query.. [ICODE]search.php[/ICODE] [CODE] <?php mysql_connect ("localhost", "root") or die (mysql_error()); mysql_select_db ("records"); $criteria = (int)$_POST['criteria']; $sql = "SELECT * FROM students WHERE "; switch($criteria) case 1: $sql .= "course"; break case 2: $sql … | |
I have two dropdown lists in my HTML form. In first dropdown list, I have some countries name already added in HTML form. In second drop down list there is no item yet except "Select choice". Now my problem is that I want that when i click on any country … | |
Hi... Pls, how do i do character occurrence using dictionary in python. I want to count the number of each characters in a poem like this .. A----25 G---10 etc... | |
Say I have a file of string[20] . I can easily write to this, but as soon as I try to receive the data I get incompatibility errors. So I make a string[20] variable to see if I can read into it. I cannot. It just says incompatible types. When … | |
Hi every body... this(attachment) is my code for implemention of Huffman code,this code must read every file and compress them, it works on many test file but if I input test.txt it give an Error... How can i solve this error ... and the next problem is if we input … | |
Ok.....I have 3 forms...the first form has a table with Number,Item_Code,Item_Description and opening_balance as its attributes. The second table has purchase_number,Item_Code,Item_Description,purchase_date and quantity purchased as its attributes and the 3rd table has issue_number,item_code,number_of_issues,issue_date,issue_to_whom,name_of_person, returnable_or_non-returnable ,balance and remarks as its attributes... the item codes in the 2nd nd 3rd table may … | |
Hello People... I found this sample code online [code=c ] int main(int argc, char* argv[]) { struct bitfield { signed int a:3; unsigned int b:13; unsigned int c:1; }; struct bitfield bit1={2,14,1}; printf("%d",sizeof(bit1)); return 1; } [/code] I compiled this code on linux with gcc compiler and the output I … |
The End.