199,114 Archived Topics
Remove Filter ![]() | |
write a program to display a square root and cube of 1 to 10 number in a website using asp.net | |
Hello, I'm working an application with asp.net, but I have a problem in session.. I searched a lot about how to kill a session when browser closed but it has not any solution. Thanks for help. | |
I am working on a project, where we need to access multiple Web Forums API, I need a Generic way by using that I can get the User Data and Posts. For example these forums (nationstates, steampowered, simplemachines, StackOverFlow) provide their Api. So it is difficult to write 4 Methods … | |
Hi I am trying to export a gridview to CSV except i am getting an error due to some of the columns in the gridview not being visible. Was wondering if anyone knows how to fix this or a different way to export to csv. protected void gv_RowCreated(object sender, GridViewRowEventArgs … | |
package deviation; import java.util.Scanner; public class Deviation { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter n: "); int n = input.nextInt(); System.out.println("Enter " + n + " numbers: "); double[] x = new double[n]; int i; for (i = 0; i<n; i++) { x[i] = … | |
I am trying to autofocus the form's first field. but not able to. My scenario is, in first load it shows table with data.On this page a <a> link is given which does nothing but showForm="true" which shows form for adding data. Code is as below: // controller side angular.module('degreeCtrl', … ![]() | |
i have created one table dynamically using javascript & displaying on htmlpage in div tag, in that table i have 2 fields one is name & second is DeleteLink, one input textbox in html, my question is when i click on Name field the text on which i am clicking … ![]() | |
Filter and process data Download the file population.txt from webcourse. The file is a formatted text file with 3 columns: country, city and population. Read the file and create a short c program to do the following: a.display the name and the population of the city with the highest population … | |
Hi there, I am running a small business and want to build a database in Access. To keep record or my stock, invoice and payments (inward/outwards). Can you guys help me with it. I am not expert wih access but know a little of it. | |
#include <iostream> #include <string> using namespace std; { int counter=0; string Username; string Password; string InvalidUser; int opt; system("cls"); cout <<"\n\n"; cout << " ====== MEDICARE HOSPITAL LOGIN ======="; cout<<"\n"<<endl; cout<<"\n"<<endl; cout<<"\n"<<endl; cout<<" *** ****** ******* ************* **** *** "<<endl; cout<<" *** ******** ********* ************* ***** *** "<<endl; cout<<" *** … | |
Can someone check if I am doing these right please, thanks ? int a=3, b=5, x; x= a/b + b/a +a%b + b%a; cout << x; // x=0+1+0+1= 2 y=float(b/a)+ float(b)/a; cout << y; // y=1.6+1=2.6 z=a*b/2; cout << z; // z= 4 w=pow(b, a)+sqrt(a+b); cout << w; // w=125+2sqrt(2) … | |
i can show an icon on notify area: NOTIFYICONDATA NID; //on main NID.cbSize = NOTIFYICONDATA_V2_SIZE; //if i use the NOTIFYICONDATA_V3_SIZE //the compiler enters on conflits NID.hIcon = test2; NID.uCallbackMessage = WM_USER + 1; NID.hWnd = a; NID.uID = 01; NID.uVersion=4; NID.uTimeout=500; NID.dwInfoFlags = NIIF_INFO; strcpy(NID.szInfoTitle, "Test Title"); //NID.hBalloonIcon=(HICON)test2;//no member strcpy(NID.szTip, … | |
So I have this so far, not sure how to make dollars * e^(rate*time) #include <iostream> #include <cmath> #include <iomanip> using namespace std; int main() { //declare identifiers double rate = 1; double time = 2; float dollars; float total=0.0; //initialize identifiers total= pow(exp(1.0), rate*time); cout << fixed << showpoint … | |
Hi, all I'm working with an aspx file that's supposed to check on a directory (on the same server the file lives on) to see if a file of a particular name exists. Based on its response, it's either supposed to create a link to that file, or, well, do … | |
how to change the password for already existed user in php can anyone give me the sample code? | |
Sorry for the misleading question guys, I know how to generate two random numbers but I want to use them in One JOptionPane input Dialogbox so the user can add the two numbers. Below is my code of what I have done so far I know it's not a lot … | |
![]() | I want to read text from a file and display it in the win32 Edit(ReadOnly). I am having problems converting from std::string to w_char*/LPWCSTR. The program reads the text from the textfile into a vector<std::string> object. I want to display each item in the vector on a new line inside … ![]() |
hi all i am doing a programing and got stuck on two condition. here is the code that I have done so far. it is as far as i reach. for(int i=1; i<=3; i++){ System.out.println("please enter the employee id number"); emp_idnum = input.nextInt(); System.out.println("please enter the employee first name"); empfirst_name … | |
Hi Guys, Im a bit puzzled on the best way to store data which will later be saved to a csv. I am doing a record search on a database table which will get cycle through each employee and get the relevent information. Once I have done this I will … | |
Hi I'm new to this site so please forgive me if this is the wrong forum. I am developing a program which takes data from a reader (impinj) and displays results on a form. The Datatable is filled on a separate thread to the main form, and as such I … | |
How to show multiple pictures in between a period of time. Can anyone give me with example? | |
i want to hide the other button when i click the btnSnacks/btndrinks buttons: btndrinks, btnSnacks table: tbldrinks, tblSnacks [I use MS access] heres the code that i tried: ~[i use the same code in btnSnacks, i just replace the database with tblSnacks] Private Sub btndrinks_Click(sender As System.Object, e As System.EventArgs) … | |
Hello, I want to fetch database table in csv file format. I tried but in my output file every fethced line is getting printed on new line. code is as below <?php $host="a.b.c"; $uname="root"; $pass="test"; $database ="TEST"; $connection=mysql_connect($host,$uname,$pass); echo mysql_error(); // Fetch Record from Database $output = ""; $table = … | |
Hello DaniWeb community! I am trying to learn c# by going through a few tutorials on how to make an RPG game game using windows form, but I cant seem to get the hang of making the create a character screen. I tried to get the value of a track … | |
Hi All, I'm trying to use bools to sync between two threads. I cant' use C++11 and I thought mutexes would be slightly heavy for this. So, I do something like this: // ================================== // Thread A .. do some stuff .. // wait for signal. while (!signalFromThreadB) { pthread_yield(); … | |
I've been able to create a website, but I have not been able to create a secure website. What I want to ask, what are the vulnerabilities in a website and how to create a secure website? Thanks before | |
Hello, Thank you for your time! I am trying to understand the Quick Sort algorithm. I have some questions about the partition method. I found the following implementation online: import java.util.Scanner; public class QuickSorts { public static int partition(int a[], int left, int right, int size) { int pivot = … | |
Hello, I have just created a new page of form submittion but wanted to show different form value when different option is selected from the dropdown can any please help me out with this concirn. Here is my code <form method="post" name="form2" action="insert_report.php"> <label> <p><b>Campaign</b></p> <p> <select name="campaign"> <option value="">Select … | |
some month ago i work to make a interactive web with javascript but when i copy the project to my patner which use Apple Mac Pro then the interactive is not active. So i use another try change function showDiv(tahun){ document.getElementById(tahun).style = "display:none;"; } to function showDiv(tahun){ tahun.style.display = "block"; … | |
Hello. The scenario is a div and in the div are multiple cloned images, its like a floor plan thing and I would like to save that into the database and i guess i would have to convert it into a pdf or something to do so. That pdf would … ![]() | |
Hey everyone. Im creating a site and im trying to add a second RSS feed, even a third or forth if i can figure out how to do the second one first. The code bellow is in my index.html templeate. Its based off of Feedget. Im not sure how to … | |
I am new for MySQL my tables structures are as follows Table: registration ---------------------------------- | cardNo | mainAgentId |subAgentId| ---------------------------------- | 100 | 1 | 4 | ----------------------------------- | 101 | 1 | 5 | ----------------------------------- | 103 | 2 | 6 | ----------------------------------- | 102 | 1 | 4 … ![]() | |
I have a JTable that has four columns. In the second column I have assigned a JComboBox to be the cell editor of my column.The problem that I encountered is that I cannot handle the combobox the way I want. **What I want is that after a user select an … | |
Hi, sorry for my newbie question but I can't understand what is the different between Logical and Conceptual database design. Can you provide me with some samples for those two types of design? Also what design is generated with MySQL Workbench for example when you import database schema? Is it … ![]() | |
![]() | |
Hello I am new to Java & I am trying to find ways(in built Java objects/ways) to parse HTML. Can you suggest some objects in the Java Standard Library? I have extended the object HTMLEditorKit.ParserCallback but when parsing a web pages' source code it literally takes 2 minutes or more! … | |
Goodevening, I'm starting coding in C and I've done a little program to understand "struct" function, but... I receive this message: Segmentation fault: 11 I've understood a bit what this problem is about, but I can't understand where it borns on my program. Can you help me? I tank you! … | |
hey all. I'm designing a new software and working on login system with online database. this is the code that I wrote, it work well Mysqlconn.ConnectionString = "server=db4free.net;Port=3306; user id=****; password=d****; database=****g" Mysqlconn = New MySqlConnection Dim READER As MySqlDataReader Try Mysqlconn.Open() Dim Query As String Query = "SELECT * … | |
Hi guys just a quick question how do i send email from a form in codeigniter? I have searched and tried to get it right but it just keeps telling me that the page required could not be found? Here is my view: <div class="container"> <div class="row"> <div class="container"> <div … | |
Here i have my deposit class: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; namespace CollectionAccounts { public class DepositAccount : Account,IDisplayable { private double interestRate; public DepositAccount(string id) : base(id) { interestRate = 0; } public double InterestRate { get;private set; } public void AddInterest() … | |
how to solve or make website in dual language with all content. i want make website in two language (Gujarati Or English). it can possible in single database?.how?. please give me proper logically solution. i can't understand that how to code it. thank you so much. | |
hello guys.. i hope you can help me for this codes.. im trying to make a program that will accept username and password in c++. im using turbo c++ ide 3.0 "not dev c++". here is my code.. but the problem is.., i want to use * to appear as … | |
![]() | here is my code and i have tokenized the data in my .txt file.I want to insert them into a database. import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.StringTokenizer; public class test1 { public static void main(String[] args) { BufferedReader br = null; try { String sCurrentLine; br = new … |
I'm having some trouble configuring "SEO friendly" Url's. I don't have access to IIS for a mod-rewrite. I'd like to have [url]www.foo.com/about.cfm[/url] translate to [url]www.foo.com/about/[/url] any suggestion? Again don't have IIS access. I'll also need it to work for non CF pages. If possible. | |
hello. is that possible to hide an empty table when there is no records found from the mysql database. if possible, how? i have no idea to do it. hope anyone can help me. below is part of my coding: <?php $count=0; include 'dbconnect.php'; if (!isset($_GET['startrow']) or !is_numeric($_GET['startrow'])) { $startrow … | |
I try to display a pdf document with code like this: <?php session_start(); if (empty($_SESSION['nip']) AND empty($_SESSION['password'])) { ?> <script type='text/javascript'> alert('You must login'); document.location='../../../login.php'; </script> <?php }else{ include_once '../../../config/core.php'; include_once '../../../config/functioncollection.php'; $kode_materi=antiInjections($_GET['id']); $querambildata=mysql_fetch_array(mysql_query("SELECT * FROM materi_tb WHERE kode_materi='$kode_materi'")); $file = "../../../filemateri/".$querambildata['url_materi']; $filename = $querambildata['url_materi']; header('Content-type: application/pdf'); header('Content-Disposition: inline; filename="' … | |
Hello , I want to scan each row and find in each column the max element and the corresponding index. Then , swap this column with the column which belongs to the main diagonal ( if a condition is valid ). Finally , do the same for the rest rows. … | |
I have worked with HTML in the past, but am new to XML. I think my code is mostly correct however I cannot figure out how to fix the remaining errors. I think my brain is stuck on HTML mode. Any help would be great. This form just has to … | |
This tutorial is meant to be a helpful guide in order to successfully **create a tripwire application in C# which can be used for security purposes.** At the beginning you can find the background information to be fully familiar of the subject of this implementation. After this, we will put … |
The End.