199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sureshrajanmca

in trusted connection hw will we get the client windows user id.i am getting only server windows user id when i run the application in server.by when client run iam not getting client windows user id.

Member Avatar for jinus
0
151
Member Avatar for Modi2006

string str = ""; for (int i = 0; i < 2; i++) { foreach (RepeaterItem r in Repeater1.Items) { CheckBox c = (CheckBox)r.FindControl("chkModule"); //Response.Write(i); if (c.Checked) { str += "true,"; //Response.Write("True" + "&nbsp;&nbsp;&nbsp;" + str + "&nbsp;&nbsp;&nbsp;<br />"); //Response.Write("True" + "&nbsp;&nbsp;&nbsp;" + str + "&nbsp;&nbsp;&nbsp;" + i + "<br …

Member Avatar for Modi2006
0
90
Member Avatar for spartan118

Heyy daniweb! I have a couple questions that need answering :) 1. Is there a way, in C++ to do a do - if loop? 2. Can there be a way to do something like: [CODE]#include <iostream> int main() { if (g == string) // if something were to EQUAL …

Member Avatar for Radical Edward
0
114
Member Avatar for oliv1

Hi I've set up a website which gathers results from a mysql database which allows the user to sort the results according to some preferences in 2 separate select lists. It works as long as you make a selection from both boxes before submitting. I would like for results to …

Member Avatar for oliv1
0
112
Member Avatar for shaqywacky7

Hello everyone, I've just started using the pypcap and dpkt modules and tried the code on google code for pypcap and I get nothing. Heres the code I used: [code] import dpkt, pcap pc = pcap.pcap() pc.setfilter('icmp') for ts, pkt in pc: print `dpkt.ethernet.Ethernet(pkt)` [/code] I think this is suposed …

Member Avatar for shaqywacky7
0
260
Member Avatar for emmonssw

I have a csv file that has 12 columns. I've been using: [code=c++] while(!infile.eof()) { getline( infile, source, ',' ); outfile << source << ", "; getline( infile, native_ID, ',' ); outfile << native_ID << ", "; getline( infile, index, ',' ); outfile << index << ", "; getline( infile, …

Member Avatar for emmonssw
0
133
Member Avatar for prashanth s j

Hi all, Currently I execute multiple scripts in the following format: os.system(./script1) os.system(./script2) os.system(./script3) But now I need to modify the code in such a way that script1, script2 etc return a success code(0) or failure code(1). But os.system can not return these values. What I need to do so …

Member Avatar for prashanth s j
0
207
Member Avatar for ArtemisFowl

I've been working through the book Python Programming In Context and everything runs fine except cImage. I went to the website to download it, but so far I haven't found a version for Python 3.1.2. I can use the cImage.py file they give on the website, but in order to …

Member Avatar for vegaseat
0
543
Member Avatar for elexender

Hi all, Im trying to read data that is send from my Arduino Duemilanove(Atmega328). Link to arduino: [URL="http://arduino.cc/en/Main/ArduinoBoardDuemilanove"]http://arduino.cc/en/Main/ArduinoBoardDuemilanove[/URL] My arduino sends a max of 24 chars. example 1: 32767*32767*32767*32767 Now if send 24 chars and read them in "UitBuff"(24 chars) the data is correct. However if i send less then …

Member Avatar for elexender
0
91
Member Avatar for pi_lord12

Hey, so I'm trying to make a text-based game using mostly Swing GUI; the code I have so far is below. When I use JOptionPanes I modify the icon, title, and suchlike on them, so I have about two lines of code for every JOptionPane. I created methods for them …

Member Avatar for pi_lord12
0
175
Member Avatar for benji_k

Hi Everybody I wrote this program to experiment with dynamic binding. One class inherits from another which inherits from another. The user creates a new object of their choice at run time and 2 functions within that object should be called but it doesn't seem to be working out that …

Member Avatar for Fbody
0
132
Member Avatar for BLKelsey

Hi all again, I'm now in my 3rd week of my C++ course and I have a few little issues I need explained to me. The Hangman game in question is NOT supposed to be functional yet. It's an generic exercise in classes in which Hangman will be MY final …

Member Avatar for BLKelsey
0
77
Member Avatar for sara khan

I m making a website of Online Programming Forum.. But i m a bit confused about how to display new thread generated by a user to the main window... Can anybody help me... Thanx...

Member Avatar for sara khan
0
81
Member Avatar for judithSampathwa

hi there, i have a datagridview in that i have coded the CellBeginEdit. how can i attach the CellBeginEdit event in another function that i have implemented in C# ??? thanxxx

Member Avatar for judithSampathwa
0
279
Member Avatar for tennis

1. an int and a class with only an int member, are they of the same size? 2. what is the size of a class containing 4 ints and a virtual function?

Member Avatar for Radical Edward
0
140
Member Avatar for danielagaba

hi i designed an application in VS 2008 and i'm using .rdlc reports. My problem is when i deploy on the client machine and try to generate a report i get an error saying 'Operation must use an updatable query' then when i click the details See the end of …

Member Avatar for lolafuertes
0
457
Member Avatar for evak77

I need a little help with this code, I cannot get it right, and i know it is something simple that i am missing. Can someone help me out please. [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.text.DecimalFormat; import java.util.*; import java.lang.*; import java.text.NumberFormat; public class week2 extends JFrame …

Member Avatar for quuba
0
104
Member Avatar for powerbox

Hi guys I need help how to convert my uint and int to 3 byte array. Converting it to 4 byte array is easy since .Net has BitConverter class but now I really need to convert it to 3 Byte Array hope someone can help me out. Thanks

Member Avatar for powerbox
0
114
Member Avatar for ajwei810192

Hi, I am wondering if anyone on the list could help me search an xml file based on the user input. Right now, I have two separate files, one that shows all the data from an xml file, and the other is a simple web form with a button like …

Member Avatar for ajwei810192
0
545
Member Avatar for kdcorp87

i have a c# application which is use for from design, it creates .kd file on save option , After running application i have to browse my saved files and open them in my application. but i want a way that that a click on file with .kd extension will …

Member Avatar for kdcorp87
0
111
Member Avatar for ramy89

Hello to everyone,I'm using a Borland BCC55 compiler to describe the logarithm function. It works fine,but only with numbers higher than 1,if I insert any floating point the result stucks on -46,whatacer number <1 I write. Here is the function,I made it myself (on a text host): [url]http://freetexthost.com/kv0rdi4gno[/url] Of course …

Member Avatar for ramy89
0
113
Member Avatar for loveforfire33

Im trying to get the values of checkboxes in a datalist and then display them in a label on a page, but im getting a nullreference error. on the line... if(chk.Checked) i know these errors are asked for alot, but after researching i cannot find whats wrong :( please help! …

Member Avatar for dnanetwork
0
112
Member Avatar for madhan

Hi, This is my first post here. I am a Java programmer. Recently, bought a book visual C# step by step and learning chapter 1. I am trying to run the CompletedWPFHello. I thought solution explorer will open all of the project files. but .cs is opening only one file …

Member Avatar for PierlucSS
0
105
Member Avatar for MillStrike

Hello! I'm trying to get my program to automatically open a file when I doubleclick on it, I have set the file assosiation right but my code isn't working. I have read about the "Application.Run(new MyProgram());" but I have some problems. When I do this: [code] public static void Main(string[] …

Member Avatar for PierlucSS
0
528
Member Avatar for Kekosavar

Hi there.. im new at c# and got some problems with my list an example [CODE] public List<Example> Test(int x) { var list = new List<Example>(); var data = (blabla linq to sql) } foreach(var item in data) { list.Add(new Example(...)); } [/CODE] some of my data's are null and …

Member Avatar for Kekosavar
0
94
Member Avatar for IsaB

Hi, I am new at this... I am trying to display data from a text file to a JSP file and I'm using BufferedReader to do this but having problems getting to the file. Which directory should I put the text file? Should I add anything to web.xml to reference …

Member Avatar for parry_kulk
0
565
Member Avatar for ajwei810192

Hi, I am wondering what I might be doing wrong here regarding getting the XML Attribute of my xml file, here is a snippet: [CODE]<music_songs> <song> <title>(I Just) Died In Your Arms</title> <date added="03-24-2009" /> </song> </music_songs> [/CODE] Here is my code, [CODE]<%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.XML" %> …

Member Avatar for ajwei810192
0
134
Member Avatar for pytup

I have program: [CODE]Dim ItemCode(6) As String Dim Description(6) As String Dim price(6) As Currency Dim Quantity As Integer Dim SaleCost As Currency Dim item As String Dim position As Integer Option Explicit Private Sub Command1_Click() item = Text3.Text Quantity = Val(Text2.Text) If Option2.Value = True Then Call CodeSearch(item) Else …

Member Avatar for jp26198926
0
90
Member Avatar for denmiller3
Member Avatar for mhopper

All, I am developing a Socket Server in Java. Its job is to receive TCP packets from a unit sending Hayes AT commands via GPRS/sim chip combination over broadband. The software for the unit sending the packets has been written in C++. Packets sent are all in hex bytes. I …

Member Avatar for mhopper
0
8K
Member Avatar for pytup

can someone convert that to case statement: [CODE]Private Function Discount(curr As Currency) As Currency Dim temp As Currency If curr < 15 Then temp = 0 ElseIf (curr > 14.99) And (curr < 30) Then temp = 0.05 ElseIf (curr > 29.99) Then temp = 0.1 End If Discount = …

Member Avatar for jp26198926
0
95
Member Avatar for tuomari

I'm trying to populate datagrid with only 5 newest results from access database. I have tried using TOP 5 parameter but for some reason it gave 5 last results and not 5 newest. And if i put order by desc, it would show the newest, but the newest result was …

Member Avatar for mikev2
0
99
Member Avatar for thuyson

i have a datagridview with last column is a checkbox.When user check on a row or rows, i will add columns' contents on that row into a new row in sql database. Please help me! Thank you so much!

Member Avatar for nick.crane
0
84
Member Avatar for karol33

Hi, need help with inputing images to mysql. I read lots of previous thread about it but couldn't find the proper answer. this is code for my basic form: [CODE]<form id="form1" name="form1" method="POST" action="<?php echo $editFormAction; ?>" enctype="multipart/form-data"> <table width="100%" border="1" cellspacing="1" cellpadding="1"> <tr> <td>tytul</td> <td><label> <input type="text" name="tytul" id="tytul" …

Member Avatar for karol33
0
153
Member Avatar for ajwei810192

Hi, I have written up this simple asp.net page that pulls data from a long xml file and shows information in a table format. Everything is working properly, except that I cannot get the scrollbar to work. So, if I want to read the stuff that is on the lower …

Member Avatar for ajwei810192
0
315
Member Avatar for tta013

Dear all, Hope you are well. I have just created a page which list a resort name and all the fitness clubs that are available in that resort. I would like to register the clubs that are being ticked into a table as separate rows. The table name is called …

Member Avatar for sourcebits
0
83
Member Avatar for nanosani
Member Avatar for jv143irish

Howto pass a textfield value to a pop form? I need to pass the value so that the drop down box on the form would autopopulate the items related to that value in the textfield. I'm using PHP. any help please?

Member Avatar for jv143irish
0
276
Member Avatar for fussballer

Hi, I am working on a project, I need to control a CD Drive via the IDE/ATA Interface using a C/C++ program. My goal is to control the Speed of the Drive, and hopefully the radial position of the optical pickup head. I am still fairly new to this field, …

Member Avatar for rajeevpareek
0
273
Member Avatar for Confu

Hey.....I want to be a game developer...i started learning game programming 2 months ago...and i selected java for it and i was reading killer game programming book....After reading quite good part of book i have come to know that java is not suited for game programming....Now i'll be having holidays …

Member Avatar for Nick Evan
0
80
Member Avatar for mr webster

Hi Guys, I was hoping to get some help from any of you asp.net experts in getting an issue im having when trying to convert asp page to asp.net. I used a converter that reports the convert had no errors. Error happens at 105 Here is the code [CODE]<%-- Generated …

Member Avatar for mikev2
0
326
Member Avatar for Kingcoder210

I want to know how can I get specific record to make report? For example I have student information there in my program. Its easy to create a report of all students. but if user wants to get & print specific record of a student what should I do? I …

Member Avatar for lolafuertes
0
99
Member Avatar for adityabakle
Member Avatar for cacoyle

hi guys having a problem getting a single value from a mysql query getting all sorts of problems - heres my latest version below [code=php]mysql_connect($host,$user,$password) or die( "Unable to select database"); mysql_select_db("mydatabase"); // select database to use. $user = 84; $sql1="SELECT `order_id` FROM `table1` WHERE `user_id`= '$user'"; $array = mysql_fetch_array('$sql1'); …

Member Avatar for cacoyle
0
101
Member Avatar for cloud09

While attempting to use my forum posting system, I received a mysql error that said to look for the correct syntax to use around '' on line 1. I attempted to reproduce the error but was unable to do so. Any ideas on what cause this and how to prevent …

Member Avatar for tiggsy
0
76
Member Avatar for virendra_sharma

In the code given below m not getting , 1) wht he has written in "Console.WriteLine("Enter Value p[{0}]:", i);" wht is P[{0}] n wht is i ,,,,, 2) Console.WriteLine("c[{0}]={1}, c[{2}]={3}", i, c[i], j, c[j]); wht is c[{0}] = {1},c[{2}]={3} " , i , c[i] [code] using System; class AscendingBubbleSort { …

Member Avatar for ddanbe
0
117
Member Avatar for wolfje

Hi I'm trying to load a treeview from 4 tables in the database, i'm using the code attached. The problem is that only 2 of the nodes show up, as soon as I get down product level, the node will not show up. Can anyone see where I went wrong?[code]private …

Member Avatar for kvprajapati
0
102
Member Avatar for hasbeenbad

Hail! Wise and Glorious Gods of C Coding. I have written a little function to search an array and it is cousing the program to hang after I enter the search criteria,It should should the array for a match and then return the whole string it was found in. There …

Member Avatar for Greg8202
0
115
Member Avatar for kelokely

I have a list of files of similar format. I want to extract all lines form each file that are containing exact character for example I need to extract only lines with TPO and saving to another file also I need to extract only lines with HOH and saving to …

Member Avatar for baki100
0
119
Member Avatar for Wobbie Wobbit

Hi this is my 1st post here. I am trying to integrate a wordpress and bbpress. They were sharing same database, using the user info correctly and working fine apart from I wanted to get it so that users were logged into the other automatically, and have been looking online …

Member Avatar for Wobbie Wobbit
0
149

The End.