199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for alsoumhi

Hi experts, I am having a problem with sending mail from servlet I have written this code : [code=Java] import javax.mail.Session; import javax.mail.Message; import javax.mail.Transport; import javax.mail.MessagingException; import javax.mail.internet.MimeMessage; import javax.mail.internet.InternetAddress; import java.util.Properties; public class EmailSenderDemo { public static void main(String[] args) { String from = "ali@mlabs.com"; String to = …

Member Avatar for kvprajapati
0
128
Member Avatar for moonis.ahmed

Hi, I want to get only the filename from the entire path in a file dialog in JSP. Right now I am using type "file" in input tag. any help will be appreciated. cheers!

Member Avatar for kvprajapati
0
119
Member Avatar for buddyholly

I'm trying to get a user input number from text box on my GUI, then there are some calculation for that number and display it later in the same text box. Number entered is supposed to have hyphens which are then stripped to check for validity of that ISBN number. …

Member Avatar for ddanbe
0
701
Member Avatar for Kamal_Java

Hi i have two tables called GeneralTable and SpecializedTable which has Name and State in It LIke 1 .GeneralTable ( GName , State ) 2. SpecializedTable( SName , State ) i want to write an SQL query which display the State from where the majority of Person ( both General …

Member Avatar for ajit1984
0
99
Member Avatar for jen140

Hello again. I'm now looking for a way to see if the current user has admin rights. I tryied the Iczelions way, and it always says that i dont have admin rights (on vista) . The next code i dont remember where i found, but it always says that the …

Member Avatar for jen140
0
160
Member Avatar for Tekkno

I would really appreciate some help with this. I have searched and searched the internet but cannot find information on exactly what I am trying to do. I have a javascript toggle function: [code] function toggle_change() { var ele = document.getElementById("change_log"); var text = document.getElementById("Toggle_change"); if(ele.style.display == "none") { ele.style.display …

Member Avatar for Tekkno
0
195
Member Avatar for AbsoluteCPP

I have my back ground in VC# is desktop application development. In VC# [CODE] if(user.Text == "admin") { form f = new AdminForm(); f.show(); } else if(user.Text == "Facaluty") { form f = new FacForm(); f->show(); } [/CODE] on different user level i can open differnt form according to their …

Member Avatar for FlashCreations
0
104
Member Avatar for Ana D.

Hi, I would like to know if there is a way to rename a label which is inside a GridView during the runtime. What I'm trying to do is: if the user chooses an option, Label.Text will be "Option 1"; if he chooses the other option, Label.Text = "Option2". Is …

Member Avatar for Kids
0
88
Member Avatar for mandofl

Hello once again. I'm trying to do one last project, but unlike the others, that usually i struggle with some common errors, this time i have problems figuring out how its supposed to be created. This is the question: Write a class named Employee that has the following member variables: …

Member Avatar for mandofl
0
4K
Member Avatar for onecarloz

I have to create a small bank program here are the instructions any help is appreciated Write a program that allows users to enter a dollar amount for their bank account balance at the beginner of the month. Then ask the user to enter dollar amount for any number of …

Member Avatar for onecarloz
0
138
Member Avatar for darab

Hi Dears I want check the value of my gridColumns , I want user only type digit, I don't want let user to type any thing else except digit How I can check it? and in which event I have to write this codes?

Member Avatar for sknake
0
150
Member Avatar for danimal132

sorry about this noob question, but i am new to PHP. i created a databse in PHPmyadmin to handle IP adresses and was wondering what type should it be ( int,varchar.etc.) i will be using $referrer = $_SERVER['HTTP_REFERER']; to compare the database to this. i was also wondering if there …

Member Avatar for FlashCreations
0
104
Member Avatar for ambarisha.kn

Question: Declare a pointer to a function taking an int argument and returning a pointer to a function that takes a char argument and returns a float. I did code as follows. But it is giving error. Please correct this. [code=C] #include <iostream> using namespace std; float func(int x)(char c) …

Member Avatar for Duoas
0
235
Member Avatar for Dr Stupid

Hi there. I'm fairly new at using C++ and I have to do program on this summer course I'm doing. Trouble is, despite what I have read through and been taught, I just can't get my head around a few things regarding this program I need to make within three …

Member Avatar for JameB
0
134
Member Avatar for arny1

Hi There, I had this post before,but I have some problems when I add a header for specific charcter set,and also add some additional data, here is my code; [code] Response.Clear(); Response.ClearHeaders(); Response.ClearContent(); Response.Buffer = true; Response.AddHeader("content-disposition", "attachment;filename=aname.xls"); string header = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n<title></title>\n<meta …

Member Avatar for mail2saion
0
112
Member Avatar for progtick

do you find websites written in ASP.NET somewhat slower? are ASP controls like gridview, datagrid etc heavy on page? what are do's and don'ts of ASP.NET if it comes to speed and security?

Member Avatar for mail2saion
0
125
Member Avatar for k007

If I want to create an associative array in C++ without the use of std::map, what are the possibilities? I want to set it up as a template so that it can be used with various datatypes. Example: Array<int> // (associative array), and then be able to insert elements into …

Member Avatar for mrnutty
0
112
Member Avatar for sieghuirt

i'm currently doing an assignment which asked me to do something like a sudoku. but this 1 is a 4 by 4 sudoku. the part tat i'm stuck is where i need to make a grid tat enable the user to move around in it n input their answers.

Member Avatar for VernonDozier
0
105
Member Avatar for lotrsimp12345

Here is a link to the actual project. I could easily use getline for the phrase. Don't need to overload it to read in phrase. [url]http://home.earthlink.net/~craie/122/projects/framed.phrase.html[/url]

Member Avatar for lotrsimp12345
0
244
Member Avatar for matthewl

For the last three days I have been working on developing a view panel that will display the users site stats and there sites info on one of my site. I plan to use a absolute div with a title bar that is the handle for the drag and drop …

Member Avatar for essential
0
118
Member Avatar for php_noob

I am using a data connection (i don't know what...) I just have a connection string in APP_CODE and some supporting codes to execute it. (That's not the question) Well What is your recommended DB connection in ASP.NET, Is the real world still using ADO? is ADO for simple website …

Member Avatar for php_noob
0
83
Member Avatar for patrick k

Hey everybody, I was trying to create a program that simulated the game "Mastermind" using numbers 0-5 instead of the six colored pegs. I have written out the code, and it seems to work, all except for the loop I have set to see if the user wants to play …

Member Avatar for Hiroshe
0
252
Member Avatar for Basicgear

Ive created a console program that works. The program launches and asks for the user to input values for the player class. Then I initialize a list of Monster classes and have values entered into the method to create each monster. But I am receiving an error after the program …

Member Avatar for kvprajapati
0
117
Member Avatar for snag49ers

I need to scan a directory and get the files located in it, which is not a problem, but I also need to know if the directory contains folders because I also need to open the folder and get the files in those directories. I put this code together and …

Member Avatar for snag49ers
0
98
Member Avatar for aulason

hi there, i'm designing a form in Right-to-Left mode. there are some autosize labels getting their text from the string table of the project's resources. however, when the text is inserted into the label at runtime, it enlarges to the left and goes out of the form. logically, the label …

Member Avatar for sknake
0
1K
Member Avatar for otakua

Okay, I had a thread in the HTML and CSS section, but I'm going to put a new one here with more detail. My friends have created a Cabal private game server, on THEIR computer. Im trying to create a site for it using my computer, but AS OF NOW, …

Member Avatar for chrishea
0
104
Member Avatar for NewToThis

I keep getting a 'illegal start of an expression' and ')' expected on a loop line for a program that counts and compare ten numbers and displays the largest. I have checked for "{}" and "()" parity, and also for ";" at the end of my statements; but the following …

Member Avatar for cgeier
0
124
Member Avatar for cguan_77

hi, just need help on how to get started on how to make a scrolling text on an iframe..like a scrolling news on a page.. any ideas is greatly appreciated :)

Member Avatar for cguan_77
0
169
Member Avatar for sara9111

[COLOR="Red"][B]How i solve this problem ?? i try, but i don't know wts the wrong??[/B][/COLOR] A.Write the defintion of function one so that it returns the sum of x and y if x greater than y, it sholud return x mines 2 times y. B.Write the defintion of function two …

Member Avatar for jesseb07
0
122
Member Avatar for cesarnz

hi all, does anyone know much about the FESI interpreter ??? i am getting an error while using this third party product (GTX) which is written in java and i cant work out whats wrong. FESI is built into this product which i am using so i dont know the …

Member Avatar for cesarnz
0
117
Member Avatar for Furtano

Hello, I want to use an new library i downloaded e.g. chilkat library ([url]http://www.chilkatsoft.com/python.asp)[/url], how do i do that ? I tried to put on the beginning of my code: [code=python] __path__ = ["dir_with_chilkat_pyd"] require chilkat [/code] but does'nt work. What i want to run: [url]http://www.example-code.com/python/http_loginForm.asp[/url]

Member Avatar for leegao
0
1K
Member Avatar for progtick

I have googled it so many times, and I still feel clueless about what language I should go with. I feel comfortable in ASP.NET, and I have coded some small stuff here and there in PHP too. 1) I do not have visual studio 2008. I have Visual Studio 2005. …

Member Avatar for progtick
0
254
Member Avatar for SuperMetroid

Why don't either of these implementations actually write to the file? Code v1: [CODE] txtfile = open('C:/Python31/SKUs.txt', 'w') with txtfile: num = 817 while num <= 820: x = "G" + str(num) print(str(x), end=" ") num += 1 txtfile.close()[/CODE] Code v2: [CODE]txtfile = open('C:/Python31/SKUs.txt', 'w') num = 817 while num …

Member Avatar for SuperMetroid
0
157
Member Avatar for fallopiano

Hi all. I'm having a bit of trouble (maybe it's easier than I think..) finding the lowest and highest number in a tuple of lists. Here is my main tuple: [CODE=python]list_of = ([0,7],[100,25],[150,59],[300,189]) [/CODE] so pretty much, I need python to return the lowest and highest number for each 'item' …

Member Avatar for snippsat
0
270
Member Avatar for Krstevski

Hey... I have dataGridView and button „Edit“ for editing informations of the dataGridView and now I'm trying to read the informations in the firts form, and write them in to the second form but when I clicked on the „Edit“ button I get error message „Input string was not in …

Member Avatar for sknake
0
1K
Member Avatar for firoz.raj

i simple want when user click on the select all checkbox.all the checkboxes of list view should be filled with check sign.which is working fine.but problem is that when user click again on the checkbox .checksign still stay there.kindly let me know the idea any help would be highly appreciated. …

Member Avatar for debasisdas
0
79
Member Avatar for sacsmia

Hi... I'm using microsoft visual studio 2005. I'm trying to trick out my code for a college assignment and I'm stuck trying to add a feature to play a .wma sound at certain parts. My program is "Hot drink vending machine" so I'm trying to add sounds where the user …

Member Avatar for mrnutty
0
239
Member Avatar for Aiban

Hi there. Iim wanting a button pressed to do TWO commands .. one after another. EG. instead of my current code musicbu = Button(root, text = 'Backup Music', width = 17, command = musicback1) and musicback1 is a def (): with a complete and working script, i wondered if i …

Member Avatar for shadwickman
0
256
Member Avatar for Aseem_Pandey

This is from code chef. ( easy level, poker) The program runs correctly for all the sample input I have tried. However the chef told me it's wrong. Can someone please help me? Can it be wrong because I have used getchar() in the main() ?? I have used it …

Member Avatar for Aseem_Pandey
0
135
Member Avatar for zegames

Hi people, How to I can detect if a div was changed after the page loaded? E.g. by innerHTML function. ps: onChange not is valid for tag div. Reference here on [URL="http://w3schools.com/htmldom/event_onchange.asp"]w3c[/URL]. Thanks!

Member Avatar for Fest3er
0
2K
Member Avatar for jen140

Hello all. I want to show a boolean value with MessageBox. But it only accepts strings. I'm currently looking throught win32 sdk but cant find any function to convert a bool to a string(something like .Tostring in c#). Any help ?

Member Avatar for jen140
0
249
Member Avatar for ROY.BLOOM

Hi all I crated a Report in SQL Server Reporting Services. The Report uses 1 parameter. When I exe the Report in my IE it asks me for the parameter and then run fine. When I use Subscriptions' I can put there my email. And sent it to me. (Work …

Member Avatar for ROY.BLOOM
0
523
Member Avatar for bsod1

Hi guys, firs of all, im sorry for my bad english.. How can i learn OOP, its really hard and detailed. Firs of all, i dont know why i must use OOP. Thanks..

Member Avatar for bsod1
0
119
Member Avatar for guyod

Hello, I am learning C, POSIX, and Unix. I am trying to write a code that wait until the child process is done then terminate, however, I do not know what to put in the while loop. [CODE] Parent function: signal(SIGCHLD, handler) while(child process is running) print the number of …

Member Avatar for guyod
0
167
Member Avatar for SuperMetroid

Sigh. This error keeps appearing, and never ceasing -- ever: [CODE] *** Unrecoverable, server exiting! ---------------------------------------- ---------------------------------------- ================================ RESTART ================================ >>> Unhandled server exception! Thread: SockThread Client Address: ('127.0.0.1', 4323) Request: <socket.socket object, fd=1856, family=2, type=1, proto=0> Traceback (most recent call last): File "C:\Python31\lib\socketserver.py", line 281, in _handle_request_noblock self.process_request(request, client_address) …

Member Avatar for SuperMetroid
0
377
Member Avatar for CNSKnight

While I am a veteran OOP programmer, I am stumped on aspects of the scope of javascript objects. What follows is a self-contained custom javascript class who's function is to manage a suite of containers as accordion sliders. I got it to work but must-be I'm not sure why it …

Member Avatar for CNSKnight
0
224
Member Avatar for gilehmi

Hi I am new to Visual Basic and I am trying to replicate the agent spreadsheet model set out in North and Macal (2007). Could someone please assist me? I have written out the code and worked out a few of the basics but the macro will not run. Being …

Member Avatar for gilehmi
0
123
Member Avatar for JRM

I have searched the web, the PHP manual and checked some reference books, but I can find any satisfactory answer to my question. Perhaps It my poor grasp of the constructor concept and it's proper application? Here is the issue: I have a an existing class constructor definition that I …

Member Avatar for JRM
0
88
Member Avatar for Lilith24

I have seen private servers with custom models for WoW, but I have never seen custom terrain created or zones/instances. When I have asked, people always tell me it is much too complicated to do terrain. Any ideas to why this is? Just curious. I remember once I jumped off …

Member Avatar for mrnutty
0
125
Member Avatar for jen140

Hello all. As always i have another problem with my Visual Studio 2008 Professional edition. I am running it on windows vista ultimate x64 edition. And i couldnt get my apps made here to work under any other xp machine (x32). I have created an empty c++ project ( Framework …

Member Avatar for jen140
0
182

The End.