199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mirzamujib

Hi, I have one navigationmenu on my masterpage. Whenever a user logins, the navigationmenu should display the menuitems as per the users permission. eg: i have three navigationmenu items i.e. menuitem1, menuitem2, menuitem3. a normal user has access only to two menuitems i.e. menuitem1 and menuitem2. And the third menuitems …

Member Avatar for mirzamujib
0
145
Member Avatar for Dorayaki

Hello, I have this code for sending and receiving file transfer using C#. But I don't know how to send the file name and save it as file name.. have tried many methods and googling too and still haven't found any clue. Here the client send file: [CODE]Stream Fs = …

Member Avatar for Dorayaki
0
699
Member Avatar for mackieben04

I Having Problems with my program. I hope someone will help me with my problems. By the way, I need help regarding Going Back to Menu using Loop. Thank you very much! if you have seen any problems, please post your message. Thanks! [CODE]#include <stdio.h> void main() { float usd, …

Member Avatar for mackieben04
0
222
Member Avatar for weeraa

I know to work with VB.net + crystal report + SQL server. But now i want to work with SQL server compact edition instead of SQL server. When we creating Crystal report it is asked provider in one moment. If we work with SQL server we select "Microsoft OLE DB …

Member Avatar for poojavb
0
284
Member Avatar for NumOne

Hi I need to prove the following statements: 1) for any a>1, and any b, a^n ∈ ω(n^b). We have to prove f(n) > C.g(n) for all C>0, n0>0 and n>=n0 a^n > C . n^b Since a > 1 , I think a >= n and a > b …

Member Avatar for rubberman
0
109
Member Avatar for chandub

hai everybody am new to jsp am using following code to check the value entered in text box with some maximum value. if it's greater then the maximum value i need to display error div instead of alert box.please help me. var max=document.getElementById("max"); if(max.value !=" " && max.value !=null && …

Member Avatar for chandub
0
87
Member Avatar for XeDK

I was wondering if someone could help me, im looking to make a program to check if an item is in stock on a website, but im not too sure about how to go about it. Any pointers?

Member Avatar for ChrisPadgham
0
71
Member Avatar for ajcoder

I want to create a sheet where there is a few math problems. Example: 1+1 or 2+4. And then below it is a box to fill in. You fill in the box and it pops up with a correct or wrong error. At the end, I would need to show …

Member Avatar for ajcoder
0
183
Member Avatar for uva1102

Hi everyone.. Problem: no space between each tables.Could anyone please advice.. solutions: here is the coding: protected void btnShow_Click(object sender, EventArgs e) { if (ddlMonth.Text != "") {d.Controls.Clear(); DateTime start = DateTime.Parse(ddlMonth.SelectedValue); DateTime end = start.AddMonths(1).Subtract(new TimeSpan(1, 0, 0, 0)); switch (ddlRecurr.Text) { #region Daily case "Daily":{ foreach (preventive p …

Member Avatar for uva1102
0
147
Member Avatar for Diogo Martinho

I made a function that would allow me to get the current date and put it on a string in YYYY.MM.DD format. [CODE]string Date::getCurrentDate(){ char datenew[8]; char currentdate[8]; string s; int size; _strdate(datenew); currentdate[0]=datenew[6]; currentdate[1]=datenew[7]; currentdate[2]=datenew[5]; currentdate[3]=datenew[0]; currentdate[4]=datenew[1]; currentdate[5]=datenew[2]; currentdate[6]=datenew[3]; currentdate[7]=datenew[4]; size=sizeof(currentdate); s.assign(currentdate,size); return s; }[/CODE] I keep getting a …

Member Avatar for Diogo Martinho
0
113
Member Avatar for matharoo

Hi I am trying to write a script in Bash Shell. I have the file test.txt and has the following data: AIR DR [ 4] Pressure :50 AIR UR [ 3] Pressure :70 WATER DR [ 3] Pressure :90 [ 3] PIS: 402ps WATER UR [ 3] Pressure :110 [ …

Member Avatar for L7Sqr
0
328
Member Avatar for manpreet87

Hi, Each line of file contains a timestamp value(ex: 2012-01-16 14:43:23) which denotes the time at which a particular action was performed. I want to extract the logs for all the actions performed in the last 2 hours using awk. That is, where timestamp should greater currentTime - 2 hours …

Member Avatar for L7Sqr
0
119
Member Avatar for Idestruction

Hey all! I am writing an application that will read data coming in through a serial port (RS232) and write that data to a file. This file will then be parsed by a php script and the data will uploaded to a server. Is there a function that allows me …

Member Avatar for L7Sqr
0
282
Member Avatar for issaru07

i having problem and stucked with retrieving like lastnametname. and i am stucked with how do i check if admin=1 will redirect to admin.php if admin=0 will redirect to welcome.php instead. this is the part of my login process script [CODE] $q = "SELECT * FROM members2 WHERE (email='$e' AND …

Member Avatar for mikulucky
0
148
Member Avatar for gowans07

I currently have the following code [CODE]Data1.Recordset.Sort = ("Barcode ID DEC")[/CODE] In which i want to sort all the Barcode ID records in Descending order. The barcodes have leading zero's which i think may be the problem. For example 00000055. Any suggestions?

Member Avatar for ChrisPadgham
0
1K
Member Avatar for khanayub_chand

I am working as a programmer for a hospital. I want to use barcode scanner in my application. I just want to know how can i provide input to my application which can read the barcode of a particular medicine and accordingly makes necessary updation in the database. Any One …

Member Avatar for ChrisPadgham
0
2K
Member Avatar for november_pooh

Hi masters, I want to replace a string with another string in textbox How i can do this? Please help Thank you

Member Avatar for ChrisPadgham
0
235
Member Avatar for aishapot

I was just wondering if I can retrieve two tables from my database to one form? because i'm trying it but it doesn't seem to be working. just the first table i'm trying to retrieve is working.

Member Avatar for adam_k
0
179
Member Avatar for Teleka

I have an application and an sql server i would like to add Registration Code for the system. that should include the number of user

Member Avatar for adam_k
0
218
Member Avatar for cangan

Hi, i am adding a few lines to the multiline textBox in a Windows forms Clr application. However each and every time the vertical scrollbar goes to the bottom. How/Can it be stopped ?? [CODE] textBox1->AppendText(array[i]); [/CODE]

Member Avatar for thines01
0
160
Member Avatar for rue64ja

Never Mind the title of the post guys and gals… it turns out that writing the post helped me vent my frustration and clear my mind. I found the issue and solved the problem while I was writing the initial post! I'm writing this because I haven't figured out how to …

Member Avatar for rue64ja
0
171
Member Avatar for krunalkakadia

hi all, I have to made a piechart in highchart control for asp.net? any one have work in it?any source code or help will be appreciated? thank you, KK

Member Avatar for Vangi
0
539
Member Avatar for FierstArter

I've looked around for about an hour and can't find anything that was to terribly helpful, or I didn't know how to use it. So here it is. [CODE]#include<iostream> #include<new> #include<cstdlib> #include<string> using namespace std; struct student { string name; double gpa; }; student doSurvey(student s); void reportSurvey(student s); int …

Member Avatar for FierstArter
0
268
Member Avatar for dedenfk

I want to know how to write a program to print A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Input = A M output = N z

Member Avatar for Greg_R
0
138
Member Avatar for monkl

I am trying to get a program to return a coord that increases or decreases in either X or Y given an input of either X, -X, Y, or -Y. It starts at (0 , 0). When I run it however, it always returns (0 , 0). What am I …

Member Avatar for woooee
0
225
Member Avatar for jasleen_kaur

Ok I have Googled for the answer but couldn't find one. I want to run my project on another computer without visual studio. I have created a setup file but after installing also i need visual studio.Isn't there any another way round?

Member Avatar for Reverend Jim
0
157
Member Avatar for krejar

I think my issue is in line 18. The program runs just fine, but my answer isn't correct when I enter a radius and height. Not sure what I am doing wrong here. [CODE]import java.util.Scanner; import java.text.DecimalFormat; public class ConeA { public static void main (String[] args) { double surface; …

Member Avatar for krejar
0
190
Member Avatar for abathurst

I have a form where a user can search for properties from a database. Everything is working except for the suburb search. I would like the user to be able to search for more then one suburb. At the moment I have the information from the textbox being separated into …

Member Avatar for adam_k
0
132
Member Avatar for shea279

anybody know how to read the first 30 seconds of an mp3 file using php, as a preview version of the original mp3?

Member Avatar for stwalcher
0
270
Member Avatar for yumyam09

Some one help me here my problem is on the [CODE]conn.Open()[/CODE] it stated that "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to …

Member Avatar for Begginnerdev
0
202
Member Avatar for lxXTaCoXxl

I've been trying to better my lesser side of knowledge in the C# programming language by tackling graphics head on. I've learned a little bit, but I'm getting stumped right now because I can't explain 100% what's going on here. I've developed a Pong game to teach myself how to …

Member Avatar for lxXTaCoXxl
0
143
Member Avatar for rahul.ch

A snippet: package com.deitel.jhtp7.ch14; public class AccountRecord { ..... Doubt: 1. What does the above package statement imply. As in how(path) this AccountRecord.java will be stored? As in what folder hierarchy should I create? 2. In Command prompt I have set my Current Directory as : E:\RDL\Dropbox\Coding\Core Java\File So will …

Member Avatar for DavidKroukamp
0
244
Member Avatar for mortanto

I wouldn't normally ask for help like this but im getting quite desperate. I really need help with a java assignment that I'm really struggling with (I haven't done any coding in over 2 years so lost just about any knowledge i had) the assignment needs to have a collection …

Member Avatar for StephNicolaou
0
152
Member Avatar for siabenie

I am a bit confused here; I have this expression [CODE] ! (1 && !(0 || 1)) [/CODE] What would this evaluate? I tried to see it in logic as I go the steps: NOT (1 AND NOT(0 OR 1)) //0 NOT 1? what is this mean? How I can …

Member Avatar for siabenie
0
114
Member Avatar for poonam lokhande
Member Avatar for stepmaster

I was just trying to compile a program from Sams Teach Yourself C#, I've done some before but just changes to an existing program. Now I'm trying to make my own. I get an error on the picShowPicture command. I believe it's in the System.Drawing namespace which I have a …

Member Avatar for gusano79
0
114
Member Avatar for nad_nadi27

hai there!.. need someone help regarding vb 2008 as below!!...huhu 1.how to make connection between mysql and visual basic 2008. 2.how to write insert the query... please3 someone please help me with this.. i goin crazy already...huhuu :sad::S:'(

Member Avatar for Begginnerdev
0
121
Member Avatar for ItecKid

Hello all, First off, I am not here to debate the merit of storing PDF as a blob in MySQL. I know this is not optimal solution, but this is the requirement that I have to work with. The upload appears to be successful, (Field in the database is filled …

Member Avatar for cereal
0
2K
Member Avatar for stay_alive

Well hello, i'm about to start my little app. The only task i want it to perform is a left mouse click on a button on the browser, IE, Firefox, Safari... I wonder if this can be done as the click will be performed outside the program window or frame. …

Member Avatar for peter_budo
0
2K
Member Avatar for neh555

please tell me how to create database in sql server and also give me code for connectivity using visual studio 2008 and sql server.

Member Avatar for Begginnerdev
0
90
Member Avatar for whodoes21

Hello. We have been asked to write a program of an event driven simulation in dynamic partition. where we are given a number of jobs with it's given time and job size. the job should remain on the memory until completion (time clocks down to 0). the program should measure …

Member Avatar for Mike Askew
0
315
Member Avatar for accra

Hi, Am building a car sale site.I want to automatically take of listings that are more than, say 14 day old. Any php/mysql scripts or an idea as to how to do this?

Member Avatar for pritaeas
0
79
Member Avatar for showman13

Good Morning Good People... I have a question that I can't seem to find the answer to anywhere, so decided someone in here would know... Simplest explanation... I have a form which has 2 submit buttons... one to accept and one to decline Each of them needs to set the …

Member Avatar for showman13
0
250
Member Avatar for NuGG

I have an array of file names which gets split into 3's using array_chunk, then using array_push "X" is added to each array chunk. I now want to to reassemble the array chunks into one "2D" array. I have been playing around with array_merge, but I can only get the …

Member Avatar for NuGG
0
505
Member Avatar for rahul.ch

[code]public class StringBuilderConstructors { public static void main(String args[]) { StringBuilder sb3 = new StringBuilder("hello"); System.out.printf("buffer3 = %s\n", sb3.toString()); //written in textbook System.out.printf(sb3); //i tried System.out.println("buffer3=" + sb3); // i tried }} o/p: buffer3 = hello hello buffer3=hello[/code] doubt: The book says toString() gives the string representation an object. That …

Member Avatar for rahul.ch
0
237
Member Avatar for behemothdave

Okay so I am creating a windows form to basically act as a bank ledger for an individual. Pretty simple they must enter the account information, and a beginning balance. The key is the validation, it is really tripping me up. I need to ensure that upon clicking the continue …

Member Avatar for behemothdave
0
199
Member Avatar for ab_omid

hi i want to use hibernate in java+postgresql but when i run it receive NullPointerException [code]import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.hibernate.cfg.Configuration; import org.postgresql.Driver; public class FirstExample { public static void main(String[] args) { Session session = null; try{ SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory(); session =sessionFactory.openSession(); Transaction tx = …

Member Avatar for ab_omid
0
293
Member Avatar for Alex_2011

Hi, Thank you all for your help. I wrote this code and I want (Combobox2) to show only the cities that are selected from (Combobox1) Example: When (Michigan) is selected from (Combobox1) - (Detroit & Ann Arbor) are the only choices that should be selected from (Combobox2) And When (Ohio) …

Member Avatar for Alex_2011
0
94
Member Avatar for Aviplo

I have created the main.aspx as a template and main.aspx has a table with a menu on the side, and a footer. The main part of the page is blank for the body. then i include testmenuright.ascx in the allocated section of the table in main.aspx. now i want to …

Member Avatar for sufyan2011
0
147
Member Avatar for sakthi_perumal

Hi All, I am using system function to invoke a jar file in MAC OS. But the jar file path has space in the folder name. [CODE] string arg1= "MyWindow"; string jarFile = "java -jar /Users/User1/Desktop/Sample Java/Demo.jar "; jarFile += arg1; system(jarFile.c_str()); [/CODE] "/Sample Java" folder name has space in …

Member Avatar for Sam557
0
125

The End.