64,152 Solved Topics
Remove Filter ![]() | |
Hi daniwebians I have created a table in sql server called "report" and it has 3 columns "reportname","reportfile" and "reportflag". the report flag has only two values 1 and 0,if the value is 1 this means the textbox on the form will be enable. I have managed to dispaly the … | |
I have a datagridview, In a textboxcolumn should have a unique data.. i want in the cardnumber not to be the same.. Need trappings | |
i have been given an assignment, to find frequencies of all words in a large text file. I have tried a program which finds the same in a sample string. Done by taking that string in an array. But in case of a text file spanning many pages with thousands … | |
Hi, I'm doing a study planner in java. I'm doing a simple login system. For every user who registers a text file is created holding all of the information inputted during registration. This is the code of a method which the program uses to login the user: public void loginUser(){ … | |
Why does first two eg give true when a check done on them using if(x==y) but 3rd and 4th case give false? eg1: `String x = "Hello", y="Hello" ` eg2: `String x = "Hello";` `String y= "Hello";` eg3: `String x="Hello";` `String y = new String("Hello");` eg4: `String x = new … | |
Hi every one!! I need help to match user data from database inorder to log in to admin panel. Here is what I am trying. it works ok but it is giving dialog box containing text "Sorry! You have no access to Database" here is the code. Please help String … | |
Hi, I have a file containing multiple-headed data (input file 1), and also a second file containing elements for searching the first file. input file 1: UROPA sseD 1.2.3.3.3 crimson ddsU 2.1.4.1.2 green SAMEL aadH 7.4.1.1.1 blue uuoG 10.1.2.3.4 white MOONA gmaL 3.4.1.6.7 red oolJ 9.1.1.4.1 yellow input file 2: … | |
![]() | Hi I been doing some research on **PHP Frameworks**. I want to know what other Daniweb members used as **PHP Frameworks**? I'm still new to understand how it works but would like to know which one will suit my skills, so I can built on ... to move forward to … ![]() |
i have a private Node class with a getValue() method that returns the Node's value which is of generic type. In another class i've tried doing this: T tempItem = null; ----also generic tempItem = currentNode.getValue(); I get a complier error unless I cast it like this: tempItem = (T) … | |
why do i get this syntax error at the line shown below [CODE]package org.temp2.cod1; import java.security.*; import javax.crypto.*; import javax.crypto.spec.*; import java.io.*; public class Code1 { byte[] plaintext = new byte[32]; // <<<<<<<<<<<<<<<<<<<<<<<<<< syntax error for (int i = 0; i < 32; i++) { plaintext[i] = (byte) (i % … | |
Private Sub Product_Details1(ByVal pid1 As String) Dim n As Integer n = 0 DataGridView1.Rows.Clear() myConnection = New SqlConnection(connectionstring) myConnection.Open() Try sqlcmd = New SqlCommand("SELECT P_Id,P_Selling_Price FROM Product_Details WHERE P_Id='" & ComboBox1.SelectedText & "' ", myConnection) Dim dr As SqlDataReader = sqlcmd.ExecuteReader If dr.HasRows Then While dr.Read() DataGridView1.Rows.Add() DataGridView1.Rows(n).Cells(0).Value = dr("P_Id").ToString … | |
Hello my fellow Daniwebers, I have a question for you. I have an asp.net page that contains a structure that looks like so: <asp:MultiView> <asp:View> <asp:UpdatePanel> <asp:Panel> <asp:TextBox ID="txtStartDate" runat="server" AutoPostBack="true" /> <asp:TextBox ID="txtEndDate" runat="server" AutoPostBack="true" /> </asp:Panel> </asp:UpdatePanel> </asp:View> </asp:MultiView> The curious problem is that I can't reference the … | |
how to convert this code to C#. Protected Class Calendar Public Sub New(ByRef Picker As NullableDateTimePicker) End Sub End Class | |
Hello. I can search for items in first listview column using FindItemWithText. I wonder is it possible to search in other listview columns and highlight found text, not all item line ? :?: Searched on google all day long but no luck... :sad: My Listview contains multiple items and each … | |
#include<conio.h> #include<stdio.h> void main() { int iRows; clrscr(); printf("Enter a number :"); scanf("%d",&iRows); if(iRows>0) { for(int iResult=0,iCount=0,iRows; iResult<=iRows; iResult++) for(iResult=1,iCount=0,iRows; iCount<=iResult; iCount++) printf("*"); printf("\n"); }//for getch(); }//main please help me to correct my source code: i should make a program like this: * ** *** **** ***** . . . … | |
I could reallly use some help. I am a complete newbie in python. What I would like to do is import a csv file (originally an excel file). Have the user pick a beginning month and an ending month and add the columns of the months between. For example I … | |
The o/p is 10. But shouldn't it be 9? Is it got anything to do with Postfix or variable scoping has a role to play? | |
Hello, i have issue that i cant solve for some time since i dont fully understand regex. How can i get selected data from table to array? Example class="fb s10" title="Get This Info"> class="fb s10" title="Get That Info"> How can i extract Get This Info Get That Info from selected … | |
Hello everyone, I am new at Java(android)-before I have little information about Java lang- and in particular socket programming -before I do not know nothing about socket client server programming-, previously I wanted to write simple chat program by using Threads and now I pass this step, two android emulators … | |
Hi All, I just want to share my code. A lots of website said that php is on server side and javascript is on client side...they said we cannot run php on javascript... here's how we can run php function when you click call the onchange events on javascript. [code=php]function … | |
Compiles fine. But at runtime it gives ClassCastException. My doubt is that why is it so even though st which is of type Sample1 gets casted to Sample2 and generates exception even though Sample2 IS-A Sample1. | |
Greetings fellow developers i just wanna ask if this situation is possible.. i have a program that consists this forms - Registration Form - Log in Form - Admin Form The registration form is as usual a windows app, and also the admin form except log in form. When the … | |
I'm working on a cleanup script for tv shows that I download. Right now I'm just looking for a file greater than 50mb, but there should be a better way. [CODE] import os import shutil dir = "C:\Users\Bobe\Downloads\TV\\" for folder in os.listdir(dir): if os.path.isdir(os.path.join(dir,folder)): for file in os.listdir(dir + folder): … | |
Hello All! To check for return values from a function and setting error flags, i am currently using the following approach: bool fine = true; fine &= func1(); fine &= func2(); .. and so on. if (!fine) { // error } Could anyone please let me know if there is … | |
I used the upsize wizard in Access 2010 to split my database with the table being on the SQL server. I entered this in the autoexec (was macro, I converted it) Function autoexec() oConn.Open "Driver={SQL Server};Server=JCPLMSQL01;Database=TestingConnection;Trusted_Connection=yes;" DoCmd.OpenForm "Form1", acNormal, "", "", , acNormal autoexec_Exit: Exit Function End Function I don't … | |
i am done sign up form in asp.net but the problem is that how to put "captcha" facility in it ? | |
Im grabbing a page with below. $homepage = file_get_contents('http://www.example.com/'); echo $homepage; How do I write it to a file.txt and overwite in the event the file exists ? Thanks. | |
i want to make my project's look like windows 7 have..means glass interface, and buttons, all controls graphics like windows 7. i have searched alot, but i could not find...can u help me regrading this? | |
Dear experties, I have a problem to insert checkbox value that called from database. How can I identify each checkbox's value? This is my code to show the checkbox. Dont know how to post the value to insert into database if checked. Please give me idea to solve it. Thank … | |
HI, Is it possible to be able to upload a load of images in one go from a camera, using there file name and saving them in to my database? I have created a table called images, with fields, image_num and image. ![]() | |
How the following code can be rewritten in a better way? #!/usr/bin/env python """Simple program for finding popular names over last 100 years, in response to vegaseat's last post in Projects for Beginners(9/1/2012). It first lists the popular names and then search for entered name by user""" oldnames = """Mary,Helen,Margaret,Anna,Ruth … | |
I have an odd problem with a Java-based Internet program that I would like to use on a regular basis on my Windows XP computer. I have not done Java programming, so I would be interested to know if anyone has ideas about what might be happening. The program runs … | |
I have a small database of about 30 names that are all unique. The variable $member equals "Ann" but will change depending on the person to search for. I need to be able to return the exact match of the person's first name. I have tried many combinations of the … | |
Here is my issue, I am really perplexed when it comes to string parsing and manipulation in php. I am writing a database driven inventory using mysql and php. One of the issues is that there are multiple people who are able (by company rule) to add to this database. … | |
i have a script which will fetch content from a website, what i wanna do is modify all that links. Suppose: $html = str_get_html('<h2 class="r"><a class="l" href="http://www.example.com/2009/07/page.html" onmousedown="return curwt(this, 'http://www.example.com/2009/07/page.html')">SEO Result Boost <b> </b></a></h2>'); so, is it possible to modify or rewrite it in this way> <h2 class="r"><a class="l" href="http://www.site.com?http://www.example.com/2009/07/page.html">SEO … | |
I have a variable variable defined, suppose: $array[1] = Hello World; $i = 1; ${"name" . $i} = $array[1]; I then have the following: $val1 = "Hello World"; However when I try to compare $name1 to $val1, they are never equal. I've tried all of the following: if ($name1 == … | |
i want to put likes button in my website, yet its running on LOCALHOST (IIS). e.g FACEBOOK like button in showing likes , google+ button etc. how ? | |
Hello all. I have a simple quoting system I am developing for a project, and need help with how to query rates. There are two tables, one for zips (with state, county, zip code, and a zip lookup code associated with each zip), and one for rate data (company name, … | |
What I'm trying to acomplish is to have a list of years in a <form> with a checkbox for each year and let the user select what year applies to the post such as: 2008, 2009, 2012 (they might select 4 out of 5 years, not just one year). Then … | |
I'm a beginning programmer and am stumped on the last part of this assignment. I can't seem to figure out how to have the Letter Grade show. Here's what I have so far, any help as to where I'm going wrong would be much appreciated!! import java.util.Scanner; public class Lab1 … | |
Ok what I mean is if i build say a client and server side (network) program in c++ on linux. Will i be able to run it on windows? i know that linux creates .o files and those are executed. were windows create .exe files and thos are executed. I … | |
In my registeration form i have fields named country and city. I want that i select a country lets say USA then city field should show all the cities in USA. i know that i have to put all the cities in Database and then bind it to dropdown box … | |
Good day! I just one to ask if there is a function in C++ that can format a currency directly. Example if I have a float of *10000.00*, it shoud output *10,000.00*. Note the comma separator. Thank you! | |
anyone plz help me with it...... i have a signup form in asp.net but the only thing left the facility to upload files to page (server) from hdd e.g pdf, docx, .jpg etc. now i am using localhost. how to do it ? ? | |
Hey! I'm a beginner in Assembly language. I want to know the difference between a declaration enclosed with ' ' and without it. For example, variable1 db '0' variable2 db 0 I know that the one with '' is when printed, it will show what's inside the ''. Thanks~ :) | |
Hello, i have made a code that strips off html tags using regex but i have issue. Now in file i have multiple tabs. example: nesa<tab><tab>pera<tab><tab><tab><tab>nn<tab><tab><tab><tab><tab><tab>kkn how can i remove extra tabs and keep only one tab ? example: nesa<tab>pera<tab>n<tab>kkn Thanks in advance | |
can i send Email via local host ? if have email class and every necessary elements. in php its not allowed . but in asp.net ????? | |
i want to execute Store procedure via asp.net code, behind submit button, (SIGNUP) and also for login . how should i run store procedure ? and store procedure is in DB(sql). | |
I got 2 Declaration syntax error... i really need help :D Thanks! Btw .. i'm using Borland C++ #include<iostream.h> #include<graphics.h> #include<stdlib.h> #include<stdio.h> #include<ctype.h> #include<conio.h> void main() {clrscr(); int opt,opt1,opt2,opt3,opt4,opt5,opt6; /* request auto detection */ int gdriver = DETECT, gmode, errorcode; int style, midx, midy; int size = 1; int x,y; … | |
I have this code to showor hide a div when click on button.But... If you ckick button the div appear.. but when you click again the div doesnt dissapear:| Code: function infoshowhide(){ if(document.getElementById('info11').style.display = 'none') { document.getElementById('info11').style.display = 'block'; } else { document.getElementById('info11').style.display = 'none'; } } *and i need … |
The End.