199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 = … | |
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, … | |
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 … | |
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 … | |
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 && … | |
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? | |
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 … | |
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 … | |
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 … | |
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 [ … | |
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 … | |
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 … | |
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 … | |
![]() | 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? |
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 … | |
Hi masters, I want to replace a string with another string in textbox How i can do this? Please help Thank you | |
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. | |
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 | |
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] | |
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 … | |
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 | |
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 … | |
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 | |
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 … | |
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? | |
![]() | 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; … ![]() |
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 … | |
anybody know how to read the first 30 seconds of an mp3 file using php, as a preview version of the original mp3? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
i need miniproject on banking system in vb6... urgently | |
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 … | |
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:'( | |
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 … | |
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. … | |
please tell me how to create database in sql server and also give me code for connectivity using visual studio 2008 and sql server. | |
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 … | |
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? | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 = … | |
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) … | |
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 … | |
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 … |
The End.