8,298 Topics

Member Avatar for
Member Avatar for Hameed_2

Hi. How can i populate asp:treeview only child populate with database query like "select databasename from databse where user_id="45" " and show these database in child treeview.Here is image [image]( tinypic.com/view.php?pic=15cyaew&s=9) I want "Database" remain same and blow child "Database Name",,only 1st 3 records replace with "Database Name" shown just,Kindly …

0
145
Member Avatar for Kyungwon

Given a typed List collection of int values named dueDays that has already been sorted, write the code to retrieve the index of the element with the value 30 and store the result in an int variable named dayIndex. Given a typed List collection of int values named dueDays that …

Member Avatar for AleMonteiro
0
409
Member Avatar for amvx86

Ladies and Gentlemen Coders, I'm working with the code below: int GetDrives(void) { wchar_t LogicalDrives[MAX_PATH] = {0}; DWORD r = GetLogicalDriveStringsW(MAX_PATH, LogicalDrives); if ( r == 0 ) { printf("Failed to get drive names. %ld", GetLastError()); return 1; } int NumDriveCount = 0; if ( r > 0 && r …

Member Avatar for amvx86
0
456
Member Avatar for Sarath_2

cout <<"a="; cin >> a; cout >> "b="; cin >> b; cout << c=a+b; goto a; error:undefined label 'a'. how to solve it?

-1
102
Member Avatar for taylor0934

Hi, I needed some assistance on this program I am working on. First its about putting airplanes into gates, if no gates are open the print airport full. Right now mine simulates all the arrivals and departures. I show it put it will change when I implement the Stack. The …

Member Avatar for David W
0
1K
Member Avatar for Shoaib_6

In below program both **if statements gives an error** #include<iostream> #include<conio.h> using namespace std; class operation { int bank_id,balance; public: int input() { cout<<"enter the bank_id "; cin>>bank_id; cout<<"enter the balance "; cin>>balance; } operation operator ==(operation p) { operation b1,b2; b1.bank_id=bank_id+p.bank_id; b1.balance=balance+p.balance; b2.bank_id=bank_id+p.bank_id; b2.balance=balance+p.balance; if(b1==b2) { return b1; } …

Member Avatar for Nutster
0
264
Member Avatar for mpdph09

I am working with C# windows application. I am using split container to display image in picture box in the first panel(with scroll bar(50% of the the picture can be seen only by scrolling down)) and data entry fields in the second panel. One field will always be at the …

0
323
Member Avatar for lakshay

#include<iostream.h> #include<stdlib.h> #include<conio.h> void main() { clrscr(); //char serial[]="EXAMS"; //int number[]={69,66,67,68}; randomize(); char planets[][10]={"Mercury","Venus","earth","Mars"}; //cout<<number[random(1)]; for(int i=0;i<4;i++) cout<<"::"<<planets[sizeof(char)+random(3)-1]; getch(); } How to calculate the output for it. Options: 1::venus::mercury::mars::earth 2::earth::mercury::venus::earth:: 3::mercury::earth::mercury::earth 4::mars::mercury::venus::earth

Member Avatar for rubberman
0
214
Member Avatar for prpasim1

Picture problem:- I have an html image that has been uploaded into "fileupload". Now, I want to show this exact image on another page when the user presses 'submit'. Note: the fileupload has the image path. Any help?

Member Avatar for rproffitt
0
181
Member Avatar for jatin24

Hi, Im trying to include the feature of automatically generating a word document through C# using a pre-defined template. Im able to insert 'mailmerge' fields in the word template documents at specific locations, and accessing these through the code in C#. I can update the values of these fields, no …

Member Avatar for vnikitha
1
3K
Member Avatar for Tashia_1

I am making an application that will automatically fetch information from database and display it on a textbox based on date. So for example i want to fetch a latest article on feb 25,2016. How do i do that? i need help cus im kinda new to c# Any help …

Member Avatar for Tashia_1
0
667
Member Avatar for James_43

Hi all, I am doing some basic experimenting with ENCOG ANN, but am having issue following a simple walthough. At this stage I am simply trying to grab data from a CSV and normalise it. My code is: string filename = "spots.csv"; var format = new CSVFormat(',', ' '); IVersatileDataSource …

Member Avatar for Christian_7
0
494
Member Avatar for Tashia_1

OleDbConnection cn = new OleDbConnection(); cn.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\`Hp\Desktop\PROGRAM1\notificationSystem\notificationSystem\Database.accdb"; OleDbCommand cmd = new OleDbCommand(); cmd.Connection = cn; //reg(); cn.Open(); cmd.CommandText = "select article from news where npublished = '" + metroDateTime1.Text + "' AND ntime = '" + label4.Text + "'"; //AND ntime = '" + label4.Text + "' //Scalar …

Member Avatar for Tashia_1
0
251
Member Avatar for Kennedy_3

I have to create a program that accepts the number of tile as input from the keyboard, and returns the number of tiles to the main method. It has to accept the number of tiles and calculates the cost of each tiles. The method has to return the cost to …

Member Avatar for Kennedy_3
0
318
Member Avatar for rpv_sen

Hi I am trying to create a service in c#, if i click start in service it has to execute the run.bat file. if i click stop in service it has to execute the stop.bat file can any one please help me to fix the code. using System; using System.Collections.Generic; …

Member Avatar for tobyITguy
0
331
Member Avatar for alvoryx

Hi, I fail removing some carriage return, (\n\r i guess) from a god file which brings that the software where i'm exporting to is crying.. if i manually remove the CR from notepad, no problem i'm googling around for nearly 3 hours now on every possible way i can imagine …

Member Avatar for Ahmad_13
0
9K
Member Avatar for negru

I have problems with the following program which is long to post at once so I will explain what are the problems step by step. 1. Define two structs that represents books and a bookstore as following: typedef struct { char id[14]; char title[16]; int availableNumOfBooksWithSameTitle; }BOOK; typedef struct { …

Member Avatar for rproffitt
0
319
Member Avatar for mpdph09

HI, I am new to C# programming, I am trying to populate data from databse using adatpter and dataset. I am missing some part in my code, that fails to update selected item at selectindexchnaged. Same part works fine at every form_load. DataSet sdnew = new DataSet(); SqlConnection conn01 = …

0
168
Member Avatar for negru

Write a program that will print all highly prime numbers from the input interval <a,b>. Prime number is highly prime if deletion of every digit from right is a prime. Example: 239 is highly prime because 239,23,2 are primes. Could someone point out what are logic errors in the following …

Member Avatar for negru
0
337
Member Avatar for RaYan_1

I need to write a C++ program that declares an array of type integer of size 10.The user will enter the number of integers N to be stored in the array. The program should have a number of functions each of them will at least take two parameters.These functions are …

Member Avatar for chrisschristou
0
217
Member Avatar for negru

Create doubly linked list that has the following information about **books**: **book_id, book_name, author_id, book_price**. Sort list in ascending order by **book_price** using bubble sort algorithm. Delete all books with the smallest and the largest price. How to modify the following program such that the sorting is done using bubble …

0
169
Member Avatar for Sanjaykp1973

Copy images to folder and save path to database and also rename image with id

Member Avatar for rproffitt
-1
138
Member Avatar for brittney_2

I need to convert the findWithinHorizon method to C#, is there anything equivalent to this?

Member Avatar for hericles
0
327
Member Avatar for ali.akber

Hi can i get the c++ code where you have 2 variables and you need to add sub multiply and divide those (new to this)

Member Avatar for rubberman
0
38
Member Avatar for boobalan_1
Member Avatar for ddacot
0
86
Member Avatar for mpdph09

I am trying to get data from the SQL database with stored procedure using dataset and populate that data in combobox. It gives error as cannot find table 0. SqlConnection conn = new SqlConnection(); conn.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["dbConnection"].ConnectionString; SqlCommand cmd2 = new SqlCommand("GetBatch", conn); cmd2.CommandType = CommandType.StoredProcedure; cmd2.CommandText = "usp_CAMR_GetBatch_Status"; cmd2.Connection …

Member Avatar for tinstaafl
0
633
Member Avatar for Vessy

I have to do this program in C++ but I don't know how exactly to write it so that it displays everything it has to display. I'll be really thankful if you try to help me because I'm not so good at programming. 1. Create a program that has linked …

Member Avatar for rubberman
0
348
Member Avatar for Veexe

I'm a beginner to programming and need sites books literally anything that might help me learn more would be amazing. thanks.

Member Avatar for pritaeas
0
89
Member Avatar for Zeenat_1

sir i am newer to C++ but i know about syntax and rules plz tell me about to design a project for my finals which could be efficient and easier to understand

Member Avatar for rubberman
0
39
Member Avatar for DANIELJB
Member Avatar for rubberman
0
96
Member Avatar for jessmark

Hello guys please help with my simple project. I'm new to c++.This is the problem. USING FOR LOOPING STATEMENT. CREATE A C++ PROGRAM THAT WILL ASK 10 INPUT VALUES. THE PROGRAM SHOULD BE ABLE TO ADD ALL THE INPUT VALUES AFTERWARDS. Thanks to those who will help. HAVE A NICE …

Member Avatar for pritaeas
0
83
Member Avatar for rpv_sen

Hi I am working on windows services. i can bale to run the service for every 1 min. I creating multi thread. but i required the service to run in single thread. can any one please help me to fix my issue. **Code** using System; using System.Collections.Generic; using System.ComponentModel; using …

Member Avatar for pritaeas
0
1K
Member Avatar for Arslan_1

sir i want to make a calendar of any year... date of calendar starts from any day..

Member Avatar for David W
0
101
Member Avatar for toxicandy

I just figured out the answer to one of my previous questions but now I have a new problem, before I was just being a tad silly and forgot how to properly write a function but now my question is if I have the following function `int findMobile( string word, …

Member Avatar for rubberman
0
272
Member Avatar for toxicandy

I am trying to declare a function to find the largest mobile element for a program to list permutations using johnson-totter algorithm. Here is my definition of the function in the header file: `int findMobile( string, int[] );` and here is my actual declaration of the function: `int findMobile( string …

Member Avatar for rubberman
0
476
Member Avatar for Sonic1980

Hello, I need some guidance with my third button. I have created a GUI that so far displays contents from from two folders by using folder browser dialog. All I want to do is compare the filenames between both folders and display the differences in a third listbox. I would …

Member Avatar for tinstaafl
0
705
Member Avatar for danibootstrap

Hello, I am getting a linked error when I changed file name to cpp. 1>main.obj : error LNK2019: unresolved external symbol "void __cdecl func_name(double * *,int,int,int,double * *,double * *,double * *,double * *)" I am using objects in my new code but this function which was there earlier is …

Member Avatar for rubberman
0
297
Member Avatar for PinoyDev

Good day guys! I just want a little help on how to reference a repeater control in a function. Im using c#.net. My code below: private void Load_Childrean_byTypeID(int TypeID, **repeatername reference here**) { SqlDataAdapter mycommand = new SqlDataAdapter("Select Id, FoamType_ChildName, ChildIcon_ClassName, ParentTypeID From tbl_ProductType_Children Where ParentTypeID = " + TypeID, …

Member Avatar for pritaeas
0
190
Member Avatar for Romina_1

Hi guys! I'm new in c++ so I really need your help. I have this code but I have to use classes, how can i modify the struct to class? Please help me. #include <iostream> #include <cstdio> #include <cstring> #include <cstdlib> #include <conio.h> #include <iomanip> using namespace std; int main() …

Member Avatar for admiri92
0
283
Member Avatar for mpdph09

I am trying to populate textbox on winsows application from database. The stored procedure pulls data using datareader. Data looks fine when I execute stored procedure on SQL server management studio. But when I am trying to populate from the application its not getting same result. I apprecaite all help. …

Member Avatar for mpdph09
0
303
Member Avatar for altjen

Hi, I am trying to develop a software which can get information like listed bellow In System : -SERIAL NUMBER(847MY5N15) -UUID(4C4C4554-0134-3710-804D-B8C04F594E31) -BIOS VENDOR(Dell Inc.) -BIOS VERSION(A09) In Motherboard(Optional, but will be good if : -MOTHERBOARD VENDOR(Dell Inc.) -MOTHERBOARD MODEL(02XJP9) -MOTHERBOARD VERSION (A03) -MOTHERBOARD SERIAL NUMBER (/847MYN1/CN1296112402BB/) In CPU: -CPU MODEL(Intel(R) …

Member Avatar for JOSheaIV
0
793
Member Avatar for negru
Member Avatar for David W
0
180
Member Avatar for omimo

hi i want a code with c# Programming language to select some picture and convert thats picture to binary and save them in sql server database. thanks

Member Avatar for JOSheaIV
0
152
Member Avatar for negru

Write a program that will print two closest pair integers in an array (if there are more than one pair with the same distance, then print all pairs). //Example: 6 -3 8 0 5 //The closest numbers: 5 6 -> difference is 1 In the following program I am using …

Member Avatar for rubberman
1
881
Member Avatar for PinoyDev

Good day! I am new to C# programming. I just need some help to display all images from images folder in my root directory in a form of href inside my div tag. Here is my Div tag code which I need to repat my images: <div class="row margin-bottom-20"> <div …

0
111
Member Avatar for David_66

// Primitive Power Ball C# Samples Generator - Global Lotomania in action:) // David Taran January 11, 2016 // For PowerBall as a answer type: 5, 69, 1, 26, -1, 10... using System; namespace Loto5p1 { class Program { static void Main(string[] args) { int iRegularBallsCount, iRegularBallsMaxNumber, iPowerBallsCount, iPowerBallsMaxNumber, iGenerationInitialNumber, …

Member Avatar for JOSheaIV
0
940
Member Avatar for basma.lm

I faced a problem in adding a close button to TabPages for RightToLeft TabControl, i found the solution in this video and i want to share it with you [Click Here](https://www.youtube.com/watch?v=Oa7sBOeOHoA)

0
125
Member Avatar for Hamza_13

My tables are PURCHASE and SALES... In PURCHASE table, fields are CODE(primary key), PRICE, DATE, TOTAL, QTY... when I'm entering datas in form and when i click submit, the datas stored... but when i enter same DATA(CODE), it is showing error... i don't want to show the DEFAULT ERROR message... …

Member Avatar for JOSheaIV
0
225
Member Avatar for anujtripathi

[B][U]Following I am mentioning step-by-step procedure to create database connection to the asp.net website textboxes via C#.[/U][/B] 1: Open visual studio 2005 and from FILE select NEW-> WebSite, then from pop-menu select asp.net website (Note: Language must be C#) , then press OK. 2: Now create three textboxes from the …

Member Avatar for gouri kundu
-1
2K
Member Avatar for negru

I don't understand how to debug the following code "on paper" (without a compiler): #include <stdio.h> #define SUB(T,x,y) {T x=y++; {T x=y++;}} int x; static int y; void f(int n) { if (n) { SUB(int,x,y) f(n-1); } } main() { extern int x,y; int i=0; for ( ; ++i<3; ) …

Member Avatar for negru
0
188

The End.