199,114 Archived Topics
Remove Filter ![]() | |
public partial class Main_Activity : System.Web.UI.Page { private string constr = ConfigurationManager.AppSettings.Get("constr"); protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["cid"] != null) { loadData(Convert.ToString(Request.QueryString["cid"])); } else { loadData("all"); } } private void loadData(string catId) { phContents.Controls.Clear(); DataTable DT = new DataTable(); OdbcCommand cmd; OdbcConnection conn = new OdbcConnection(constr); if … | |
How can I have my program modify itself? Example: Size = 1mb ..Run program once.. size = ++1mb On Second Run, check if itself is 1mb Or something of the sort :S. I need to be able to check if my program has ever been ran before.. So.. Is there … | |
Hi i have a vb project im getting a bit of trouble with. this is how it should work 1. user input text in the textbox. 2. the input text will be count as single character each one by one 3. after been checked they will be writen to a … | |
I am having an error that I can't seem to get past. The problem I get is an internal server error 500 when I try to run the C++ CGI script. here is my HTML document. I am using Apache Web Server. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> … | |
hi everyone. i'm tryng to use Reportlab to output an invoice on a simple Django app. it seems quite difficult to do simple things like this. here's my code: def print_pdf(fattura, soggetto, buffer=None): import time from reportlab.lib.enums import TA_LEFT, TA_CENTER, TA_RIGHT, TA_JUSTIFY from reportlab.lib.pagesizes import letter from reportlab.platypus import SimpleDocTemplate, … | |
I am trying to install a php script on a windows system using XAMPP, but before installing it ,I have to configure the script accordng to my xampp configuration this is what the scripts config file wants: // Begin Configuration $config['basedir'] = 'C:\xampp\htdocs\myscript'; $config['baseurl'] = 'http://127.0.01/myscript'; $DBTYPE = 'mysql'; $DBHOST … | |
Basically i'm wondering if i can fill the "File Name" field of a JFileChooser automatically. I'm pulling files from another machine using sftp, and specifying the file to be created with the JFileChooser. So that the file i'm transfering will be saved with the name and location i specify. As … | |
i have created a php application where am using a barcode scanner to load item name and prices from database. the problem is that once the barcode reader finishes reading the barcode, the details are loaded and it tabs to the next field. this means that the user has to … | |
I m creating an full screen application! But dont know how make it fullscreen (i.e the buttons minimize, maximize, and close button should not appear on screen). | |
i need help in adding the c++ code for the average mark, highest mark, lowest mark, number of students passing, using array 01 #include<iostream> 02 using namespace std; 03 int main() 04 { 05 int gradeRange [4]= {0,0,0,0}; 06 int mark = 0; 07 int counter = 0; 08 09 … | |
Hi, Im looking for an easy method to validate the input of a form. Ideally I want to remove all spaces from the inputed text and also ensure that there are no speical characters within it other then a forward slash. The input will look like this 192.168.1.1/24. Thanks, | |
I am trying to create a page of 8 avery labels for our users to print out. The labels are to be used for our meetups, so the users can have there name, avatar, and background. These are all dynamically pulled from the database. The user will have a link … | |
i need help in adding the c++ code for the average mark, highest mark, lowest mark, number of students passing, using array #include<iostream> using namespace std; int main() { int gradeRange [4]= {0,0,0,0}; int mark = 0; int counter = 0; while (mark < 101) { cin >> mark; if … | |
Hi, I see in many places a $ sign before variable names in javascript. What does that $ sign mean? For ex: i have say like below mentioned code: Fact_Class.prototype.intz=function($n){} What does the $ symbol before variable 'n' signify there? Can anyone explain? Thanks, VC | |
Hi every1 I am building a website using wordpress, can you show me how to create a form that allow visitor register to join a class or something like that? Thanks you much! :) | |
hello dears, please can anyone correct my java error, when i run bellow java source code error cause as can not find symbol. public class StackApp{ public static void main (String arg[]) { StackX theStack = new StackX(10); theStack.push(20); theStack.push(40); theStack.push(60); theStack.push(80); System.out.println("Value at top : " + theStack.peek()); System.out.println("Is … | |
guys help.. How can i Disable the Left and right Windows key in vb.net??.. my program is on fullscreen and i dont want to interrupt my users with the startup menu when they accedentaly pressed the windows key while they are using my program... help.. thanks.. ^_^\m/ | |
i just started learning SEO and and i want to know if the are free tools to see the position(ranking ) of my website... any suggestion will be appreciated. | |
Hi guys, I'm trying to read data from an excel "csv" file and save it in a list. the problem is that I want to have a copy of this list named "list1" that will not change during the manipulations and claculations, because when I copied the contents of "list1" … | |
Hi, I have created 2 forms. Form1 and Form2 Form1 contains button to open form 2 Form2 contains a check box and ok button When checkbox is checked and I click ok button, the TopMost property of form 1 is set true. But I m unable to see the change. … | |
void DLL_EXPORT Replace(LPCTSTR OriginalFile, LPCTSTR FileToReplace, LPCTSTR BackupOfFileToReplace) { HGLOBAL LoadResource(HMODULE hModule, HRSRC hResInfo); try { BOOL WINAPI ReplaceFile(OriginalFile, FileToReplace, BackupOfFileToReplace); MessageBox(NULL, "Done", "Alert", 0); } catch (...){} } The above is my code and it gives me errors like: In function 'void Replace(LPCTSTR, LPCTSTR, LPCTSTR)':| warning: '__stdcall__' attribute only … | |
Hey, this is the task I have to do http://faculty.winthrop.edu/olsena/CSCI%20207/c207p6CalcAveClasses-s12.pdf I'm trying to read each part..I have to read in the ID, exam, test grades, program grades, and lab test/quiz grades. In the insructions, it says I have to set methods for each one which I did. Now i'm having … | |
Hi All, I am trying to create a page were users can edit their post. -Select subbmitted data from the database using post id, and display this information so that users can Edit. -And finally i want to update the data and continue to the preview page, where users can … | |
Hi, I just started learning about java applets recently and was wondering why the shapes won't appear on screen when I press a button. import java.applet.*; import java.awt.*; import java.awt.event.*; public class Buttons extends Applet implements ActionListener { public void init() { button1 = new Button("Button 1"); add(button1); button1.addActionListener(this); button2 … | |
Hi, I have 2 sets of multiple sequence files of DNA sequences. Examples of set 1 are as follows: Seq1.txt contains: ATACAGGATCAGATG Seq2.txt contains: ATACCGGATCAGATG Seq3.txt contains: ATACAGGGTCAGATG Examples of set 2 are as follows: Seq1.txt contains: >seq1 ATACAGGATCAGATG >seq2 Seq2.txt contains: ATACCGGATCAGATG >seq3 Seq3.txt contains: ATACAGGGTCAGATG I want one/two … | |
Hi, I'm new here, so I'm sory if this theme already exsist. I'm trying to do a database of students in c, and I want to use queue for realizing that. For example: Name: char surname: char id number: char or int subjects: queue User will enter id number and … | |
Hello guys, I've been working with webdesign for like 6 years and never seen something like this. I can't get my PNG image to be transparant! I've exported it on several settings in Photoshop but nothing seems to work. Does anyone has any idea on solving this? http://www.photoshop-leren.nl/ Thanks! Best, … | |
Hellow, i want to find location/country of visitors by IP, im looking for any site can do it for me, i want a script from other site to use it in my php file, that script will get location using other server and will return to me location... | |
Hi Guys, I have written the below program to convert binary to octal, it is giving me erroneous results. On entering 1111 as the input number I should get 17 as the output, whereas I am getting 16707000337 as the output. Kindly help me out, below is my program: /*program … | |
Hi, I have two forms: Form1 and Form2 In Form1 there is one button which opens form2, and when I click on Title bar of Form2 I loose Form1 focus. I dont want this to happen. I want to click on title bar but at the same time form1 focus … | |
Hey all, Back with another Win32 question. When I paint to my window (create a background image), what happens is that everything is fine until I draw the window off the screen causing it to invalidate everything.. When dragged back onscreen, my background is redrawn but my controls are all … | |
Hi, I'm developing a blog that will have categories. I want to be able to store blog posts in more than one category. My problem is i am not sure how to go about it. I have a table called posts: CREATE TABLE `posts` ( `post_id` int(10) unsigned NOT NULL … | |
I have made a HRMS (Human Resource management System) using NetBeans 6.5 and for database MySQL 5 The project is completed and running fine ( great) without any problem when i run it in NetBeans using Run Main Project Button. Then i 'Clean and Build the project' and get a … | |
Hey guys. I'm making a project for my university. It consists of Jframes and other JStuff. I'm having problem with data. The problem is changing them. I have 2D array of Strings - numbers and words (but the content doesn't matter). I want to make a JFrame, where you can … | |
Hi i have a vb project im getting a bit of trouble with. this is how it should work user input text in the textbox. the input text will be count as single character each one by one after been checked they will be writen to a text file but … | |
  Hi, I am extracting datas from the csv file to display in datagridview1 as shown in image1. Now I want to search the datagridview1 and display the result in datagridview2 as shown in image2. Please do refer the attached images. I am using Visual basic 2010 … | |
Hey guys, My name is Dane and I am an 18 year old I.T Apprentice based in Blackpool. Our I.T manager has gone on holiday and I have had a call giving a deadline on getting a form on our intranet working, I look and it is all ColdFusion! I … | |
Dear All, Please Help me in this application.... My problem is that i want to select the required text from the following text. In this text I want When user input following text. I will get only special information from it. Abdoul Amin `23 av Olympiades 94120 FONTENAY SOUS BOIS … | |
I'm working with a sms gateway thing, now i have to pass a url via GET or POST. i'm tried with fopen("http://api.studentmug.com/bulksms/sms.php?Username=<something>&Password=<something>", "r"); like that. but it didn't worked. Please help me guys. i'm also used curl_init(); it is replying Bad Request. Guys please help me with this. Thanks in … | |
I need help displaying some products from a mysql database in a 3x4 table or what ever size i choose to do. An example of how I want to display it is http://www.golfcircuit.com/Golf-Drivers/13__.html. Right now I just have it displaying in a n x 1 format. Like so http://webdev.cs.kent.edu/~jfunchio/wp2/HW2/index.php. I … | |
I'm trying to understand XPath, but I've come acrost an issue I can not seam to find an answer for. In this case it seams that XPath is not returning what it should. I've got a sample html file, test.html: <html> <div> <p>1</p> <p>2</p> <p>3</p> <p>4</p> <p>5</p> </div> </html> And … | |
I am having trouble to find the entities for this condition. Can anyone please help me here. A university has different types of staffs, e.g., lecturer, receptionist, cleaner etc. Should be recorded is class of jobs - Academic, Technical and General. An Academic can teach many subjects in a session … | |
Trying to get soemone to input a Password (hello) as an input and then getting a loop to a second part of the program where he/she inputs his/her name and then gets a response accordingly. Not sure why this is not working but maybe someone else does. let me know … | |
Hi,i have following code: if (!isset($_POST['submit'])) { <form action="" method="post"> <input type="submit" name="submit" value="Go"></input> </form> } else { if (!isset($_POST['submittwo'])) { <form action="" method="post"> <input type="submit" name="submittwo" value="Go"></input> </form> } else { } } As you can see first block of code it's ordinary form which submit to itself,and in … ![]() | |
So I've been working on a Hash Table that uses nodes to store data. I'm having issues figuring out the copy constructor and assignment operator overloader. In my main I instantiate 3 hash tables. 1 default(size 10), 1 size 7 and another one that copies hashtable size 7 to it. … | |
Hi, I have tried to use pagination for my website that I'm creating, when I click on next page or last page it gives me this problem: **You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to … | |
I'm trying to store the text from my textarea into my php variable, but it seems like it is not working as i wish too. and it shows error in my textarea: <br /> <b>Notice</b>: Undefined index: ftext in <b>C:\Program Files (x86)\EasyPHP-5.3.9\www\sentiform.php</b> on line <b>20</b><br /> sorry that i am … | |
Hi gueys, I have spent weeks in searching to know how to Explore hard disk files using c++ driver developping?. I'm developing anti-virus program, only I want is: when the user choose custom scan from scan options the program load a driver and send the path to the driver and … | |
When I open my Python file through cygwin it recongnizes a module that I installed recently(PyCrypto) but when I open Python IDLE and then click on Run Module, it says that PyCrypto wasnt installed. Whats wrong? Thanks for the help. | |
Hello all, Recently, I began learning JS to start creating websites. So far I have a working idea of what the DOM is & how to access elements within a document. I've also heard how jQuery & jQuery UI can increase functionality/productivity/interactivity & just about any other "ity" word you … |
The End.