199,114 Archived Topics
Remove Filter ![]() | |
Hi... I'm trying to add a name of a product to a Textbox...the name of the product is stored in a database. Now there is a Combobox with number in them....1 2 3 ect. Now if you select one of the numbers it must display that product name? I know … | |
Dear Developers SQL, Table1 has data as following Code------product 1-----------Mango 2-----------Potato 3-----------Orange Datagridview has THREE columns as Code----product-------qty I have following codes [CODE]str3 = "SELECT product FROM table where code =" & Val(DataGridView1.Rows(DataGridView1.CurrentRow.Index).Cells(0).Value) dt3 = GetTable3(str3) If dt3.Rows.Count > 0 Then DataGridView1.Rows(DataGridView1.CurrentRow.Index).Cells(1).Value = (IIf(IsDBNull(dt3.Rows(0).Item("product")), "", dt3.Rows(0).Item("product"))) Else MsgBox("Code Not Found", … | |
OK, I have a JS which validates the correct format for postcodes (or zip) on an html form - works fine. But what I want to do is to use a JS to see if a website visitor is eligible for a particular service on their postcode / zip - … | |
Hi Guys Could you please provide me with the code that will upload a file using C# and save it in SQL, I have searched through the internet with no luck at all Thanks in Advance | |
Hi i have the next task to solve. [I] A bank holds different types of accounts for its customers: – Deposit accounts – Loan accounts – Mortgage accounts Customers could be individuals or companies. All accounts have customer, balance and interest rate (monthly based). Deposit accounts are allowed to deposit … | |
how we can send binary sms to any mobile particularly nokia mobile from pc using smpp... | |
Here is my code [CODE]#include <iostream> using namespace std; int searchList(int [], int, int); int main() { int numItems = 18; int position; int accountnumber; int accounts[numItems] = {5658845, 4520125, 7895122,8777541, 8451277, 1302850,8080152, 4562555, 5552012, 5050552, 7825877, 1250255,1005231, 6545231, 3852085,7576651, 7881200, 4581002 }; cout << "Please enter an account charge … | |
Hello, I used the below coding to store an image into the database. [CODE]lblImagePath.Text = ImageUpload.PostedFile.FileName ImageUpload.PostedFile.SaveAs(lblImagePath.Text) Dim mbytes() As Byte = System.IO.File.ReadAllBytes(lblImagePath.Text) Dim cn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\database\db.mdb;Persist Security Info=False") Dim cmd As New OleDbCommand("insert into ImageTable values (@Image)", cn) cmd.Parameters.Add("@Image", OleDbType.Binary, mbytes.Length).Value = mbytes cn.Open() cmd.ExecuteNonQuery() Response.Write("Image load … | |
Hi I am trying to genarate report in java. my basic requirement is like: 1. i have to print sales invoice in .txt format. 2. In application, user will select sales invoice no in drop down list. after clicking print button, user can show his invoice . 3. invoice contain … | |
im making right now a auto sign up application for example in registering yahoo mail when i click a button in VB all information will be filled out and submit Example: [CODE] Private Sub btnFillUp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFillUp.Click Dim theElementCollection As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("Input") … | |
im trying to make a auto sign up in youtube but my problem is the " I accept" button doesnt have value in html so i try to use the id but i doesnt work help me please.... heres my code [CODE] Public Class Form1 Public Sub BHMNavigate(ByRef Wb As … | |
I have following codes [CODE] str2 = "select sno,name from employees where sno =" & Val(Me.TextBox1.Text) cmd2 = New SqlClient.SqlCommand(str2, con) da2 = New SqlClient.SqlDataAdapter(cmd2) dt2 = New DataTable da2.Fill(dt2)[/CODE] Now dt2 has two columns as sno and name But I want to add a 3rd column city type char(80) … | |
Hi there, Actually my problem is I want to get the date difference if date return of book more than one month add $10 if not leave the amountoffine to $0 and if the loaner took the book and return it after 3 months I want the code to add … | |
this is to test [ICODE]<?php class test() ?>[/ICODE] [TEX]test agaian[/TEX] [CODE]class test()[/CODE] | |
I have a series of variables like so: $BLACKPASS=7 $BLACKCUTDEPTH=567 $SURFACE=325 NUMBEROFPASSES=$((($BLACKCUTDEPTH-$SURFACE )/$BLACKPASS)) #is 34 Text To Edit: IN; PU; SP6; !PZ-325,200; snip here (inclusive)SP6 is a known/usable starting point VS25; PU9170,-10213; PD9170,-10827; PD7967,-10827; PD7967,-10213; PD9170,-10213; PD9170,-10213; PU9170,-10213; snip stops here inclusive BEFORE the next SPx line SP7; !PZ-325,200; VS8; … | |
hi guys, im using linux opensuse as my web server, now i installed php there accdg to the manual, moreover, i also installed php to another computer having windows as its platform, now i compared the phpinfo() of the both pcs, ive noticed that there are some modules available on … | |
Can anyone help me to implement binary search tree with addition ? | |
Hi I have a database with two tables 1. iSet(which contains data) 2.Table1(which is empty) I have a program that can read from iSet. It uses OleDB Its working properly The problem is that i don't know a thing about writing to a database. The table Table1 has two fields … | |
This is the python code from a file 'legend.py' that prints the contents of variable 'doc' to console: [CODE=python]print '\n'.join (doc)[/CODE] Now through the above code, whatever is inside doc gets written to the console, if I run python legend.py description.xml Below is a shell script : [QUOTE][B]for z in … | |
Have nice Evening! I have an error message of "[B]Overflow Exception was Unhanded by User code[/B]"when i am trying to exceute below very simple code. [CODE] Partial Class zeesant Inherits System.Web.UI.Page Dim x As Integer Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load x = (Val(TextBox1.Text) … | |
Hi! i need to insert a new element in an existing xml document. for example, [code=xml] <details> <person> <name>Anu</name> <email>abc@yahoo.com</email> </person> <person> <name>thara</name> <email>xyz@gmail.com</email> </person> </details> [/code] In this document if i want to insert another element using Xpath, say,<publisher> in <book> node, how to insert it. I'm using DOM … | |
Hi all, I am stuck here after several hours tried. Here the thing. I have txt file that contain float data (1 column and many row) such like this (4 float data): 0.799 0.851 0.926 1.000 Then i want to read it as array. My code is work until this … | |
hi friend can you tell me how to create servlets and how we can deploy it on the apache web server. | |
I've just read chapter 8 of accelerated C++, which covers template functions. From my understanding if you use a template in a function that function must be included in the header file, as opposed to a source file. Am I correct in thinking this or am I missing something obvious? | |
Hi im just wondering how i could improve this to make it secure from either the jsp file itself or external java files. [CODE] <html> <head><title>JSP Page</title></head> <body> <jsp:useBean id="user" scope="session" class="shop.UserBean" /> <jsp:useBean id="dataFactory" scope="session" class="data.factory" /> <% String userName = request.getParameter("userName"); String userPassword = request.getParameter("userPassword"); user.setLogin(dataFactory.getUser(userName,userPassword)); user.setUser(userName); if … | |
I have file 123.php which produces dynamic information upon excecution and need 123.php to copy it's output to file "abc.txt" How would I go about this in a unix environment? Thanks in Advance! | |
I am writing my program for the bullseye dartboard question I posted in another thread. The link is [URL="http://www.daniweb.com/forums/thread255853.html"]here[/URL]. Anyways once I debug, it brings up 2 errors that read: LNK2019 Error: unresolved external symbol _main referenced in function _tmainCRTStartup and the file is MSVCRTD.lib and the other error is: … | |
Hello all, I have created an RSS object and I would now like to parse out the descriptions of the children. My knowledge of RSS is extremely limited so pardon me if I am incorrect in explaining what I need. For example, I am connecting to [url]http://rss.cnn.com/rss/cnn_topstories.rss[/url] and I would … | |
hi iam getting date as like '1/01/2010' from a dateofarrival(name of text box id) ....... i want to replace the ' from '1/01'2010'., iam interested to show as like 1/01/2010......... plsa help me,,,,,,,,,, here iam using asp.net with vb.net ........ here my coding is..... [code] Response.Redirect("check availability.aspx?ardate='" & dateofarrival.Text & … | |
Hello all, I am trying to read value from a XML message fragment using C# and I am unable to load and read the document mainly because I don't enough experience working with xml data. I don't have the raw xml document on hard drive, so it is generated from … | |
So I'm working on this class, which is basically to wrap a char into 8bools, and it works so far, however I'm running into a problem, in the dedication of values, since I'm to use the overloaded array operator, as well as the overloaded assignment operator, at once, however I … | |
I'm a novice at VB.NET and I'm having a problem with the compiled versions of my applications. If I take the .exe file (it's real small, like 40KB) from the BIN/DEBUG directory, it runs fine on most computers (I've tried it on 5), including Windows 7, Vista and XP. When … | |
[link]http://php.net/manual/en/function.isset.php[/link] Clearly states that "isset — Determine if a variable is set and is not NULL"? I have been trying to use isset() to check values for NULL and it still appears yet when I use != NULL then it works. I think the fine line is in various instances … ![]() | |
hi all, i want to upload large video files using php and i can do that by editting php.ini file. but how can i do that without changing php.ini file?? advance thanks iqbal | |
I am a adult returning student in Java and would really benefit from having someone work with me on exercises to further my understanding of the material. Anyone interested in helping would be greatly appreciated. | |
Restarting C++ class after lengthy break, seems I've forgotten a lot. I can't seem to get a cout to indicate that a file record has been read. I created a text file of just one record to keep it simple: an SS number, first and last names, and five exam … | |
I am trying to do this C++ homework, my second one, i am very new to this and have no idea what is going on i would appreciate any help. thank you. below is the homework problem and what i have so far. i know that i need to create … | |
Hello, I was working on a small project to make me think, and I ran across a problem when I was running a page. Instead of any error coming up, the page just produced the following, which was part of my code: [code]0 && $user_health > 0) { $monster_health = … | |
i m trying to extract multiple rows and print it in a single line in a web page. My code [CODE]while ($line = mysql_fetch_array($app, MYSQL_ASSOC)) { echo "<tr><td>"; echo "<a href=AssignedUpdateForm.php?app=".$line['App']. ">".$line['App']."</a></td>"; echo "<td>" . $line['firstName'] ." ". $line['surname'] . "</td>"; echo "<td>" . $line['ServerName'] . "</td>"; echo "</tr>"; }[/CODE] … | |
Hi all. I'm trying to implement a rotating image system written in Javascript into a PHP website. The PHP page and the Javascript both work fine independently, but integrating the JS is proving tough and giving me errors. Here is the top part of the PHP page: [CODE]<? include ("./application.php"); … | |
Hello, I have a little problem. My program (LH-ABC 3.2.0) works well in Windows XP and Vista. But in windows seven programa closed, but process keep going :S What can be problem? Maybe one thread not closed? But this problem is exclusive in windows seven. Source of my program in … | |
Does anyone know if there are any issues in using the basic ODBC Api for database access on 64 bit Windows Vista/7 systems? This has been my preferred database access technology for a long time, and I'd prefer not moving to ADO or something else if I don't have to. … | |
Hi can anyone explain what exactly this function does [CODE] tabs(array())[/CODE] for eg. [CODE]<?php tabs(array("grid.php"));?>[/CODE] | |
Hi, I have a bit of a strange problem where I am unable to "echo" results from a database - I will show you the code then explaine what im trying to do [code] <?php include_once "connect_to_mysql.php"; $sql = mysql_query("SELECT * FROM table ORDER BY RAND(), LIMIT 1"); while($row = … | |
i have an access table that contains the following: ID Number, Store Number, Sales Region, Item Number, Item Description, Unit Price, Units Sold and Week ending. One of the queries requires us to find the best selling products by quantity and another by units sold. I'm confused on the formula … | |
So I am trying to compile this program, and I know that the only problem with my code has to do with the "while" section of the do while loop, either that or something to do with those variables. I declared the variable "repeat" as a char, and prompted the … | |
I have been reading books trying to learn .net on my own. I am working on an exercise that asks me to create a 1MB file. what i have below does work, but it seems to me there would be a more efficeient way. It seems like what i am … | |
I am learning Python now. It is too complicated. I started the file that i did but it crashed. Can you show me how to do it? Write a Python program to convert a given weight from kg to pound and to gal and to liter. 1kg=0.2642gal=2.205lb 1gal = 3.785liter … | |
Hi guys, In my application users can search for events that fall with in a particular date range, which works fine. The problem I am having is getting records when I ask for the current months events using the query below. select * From Events Where FromDate >='1/1/2010' And ToDate … | |
hi all. i need to work with CvFitLine , but i can't find any examples of what it does. basically i need to take a set of points (lets' say 3) , draw a line between them, and than i need for every point sum the distance of the point … |
The End.