4,457 Topics

Member Avatar for
Member Avatar for cscheck

Hello all, Correct me if I mis-post or should have posted this somewhere else. This is my first thread here so bear with me. I have had a lot of luck just browsing other issues to get my problems solved in the past, but this time I am stumped. More …

Member Avatar for cscheck
0
2K
Member Avatar for Xufyan

here i've created the first applet but it is not working, [CODE] import java.applet.Applet; import java.awt.*; public class FirstApplet extends Applet { public void paint(Graphics g) { g.drawString("Look at me, I'm a Java Applet!",10,50); } } [/CODE] i am getting no errors but when i am opening the html file …

Member Avatar for _aven
0
241
Member Avatar for Maulikpra

Dim mm As New SqlClient.SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=Integrated Security=True;Connect Timeout=30;User Instance=True") mm.Open() Dim mm1 As New SqlDataAdapter("select * from Area_type order by Area_name", mm) Dim ds As New DataSet mmm1.Fill(ds) With ComboBox1 .DataSource = ds.Tables(0) .DisplayMember = "Area_name" .ValueMember = "Area_name" .SelectedIndex = 0 End With mm.Close() 'hi i am student and …

0
171
Member Avatar for kau14

Hi first of all am new to progarmming. Am using using combo box control in vb.net combo box getting filled properly Public Sub new_entry_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim cn As New SqlClient.SqlConnection("Data Source=KAU-4A76A124FB9;Initial Catalog=SRRY;Integrated Security=True") cn.Open() Dim adp As New SqlDataAdapter("select * from Bank_Details …

Member Avatar for Maulikpra
0
1K
Member Avatar for phoenix_2000

Hello people, First of all, i'm not an experienced ASP coder at all, i usually do php/java so i'm still kinda puzzled by this language. For my current project, i need to update a piece of an intranet, written completely in ASP. since it can't be reached from my position, …

Member Avatar for phoenix_2000
0
189
Member Avatar for vbmanDan

Eventually i want to load names from a database to textboxes which are created at runtime. Thought i'd try just getting names into a listbox first though as i'm new to using databases in vb and for some reason nothings getting added to the listbox Heres the code iv'e got …

Member Avatar for daniel955
0
204
Member Avatar for asif49

I'm going to develop a social networking website and launch it for use by the public. I'm hoping for someone hopefully with a law background to give me an overview of what needs considering. The website will be developed with PHP, MySQL, and several other established open source languages + …

Member Avatar for asif49
0
139
Member Avatar for cyberdaemon

Good day.. i was stuck a moment realizing what went wrong to my project. I'm currently developing a enrollment system. I have 3 tables in my DB namely course_code,curriculum and pre_requisite tables. on the course_code table i have fields course_code(PK),course_desc. on the curriculum table i have but in this table …

Member Avatar for imless
0
111
Member Avatar for daino

Is it possible to create charts with XML. What I am trying to do is build a database application and it will need to be able to generate reports. I will need to be cross-platform and open source. Because I'm new to the idea of XML I will be reading …

Member Avatar for Mike Askew
0
117
Member Avatar for mrbarbarik

I want to make server page that can keep a parameter just like tracking ID. I want to pass that parameter from an asp page to another asp page when i clicked submit button. Can someone help me to solve this, i really need to finish this soon. So far …

0
94
Member Avatar for sania khan

// This code is not solving my problem .Data redundency still exist... lblresult.Text always give 0 :( int count=0 ; string selectSQL = "SELECT Equipment_Name,Vendor_Name FROM CatC"; SqlConnection myConn = new SqlConnection(); myConn.ConnectionString = "Data Source=.;Initial Catalog=ecsd1;User ID=sa;Password=786"; myConn.Open(); SqlCommand cmd1 = new SqlCommand(selectSQL, myConn); SqlDataReader reader; try { myConn.Open(); …

Member Avatar for sania khan
0
141
Member Avatar for astian

Ok, I think Im missing something Big in programming logic when comes to web applications. Once again Im clueless about how to proceed in the curent situation. I have a Bing Maps application that connects to a WCF Service to read and write to a database. In this application I …

0
118
Member Avatar for Skate Bart

okay. Here's my problem. I have a form in which a Microsoft Hierarchical Flex Gid (fgdCompany) is used to display records taken from a database to relavent textboxes on the same form. When a record from fgdCompany is clicked, then the data in that record is shown on the textboxes. …

Member Avatar for AndreRet
0
583
Member Avatar for Bheeman89

Hello Daniweb users. I am a security analyst who needs to currently audit the compliance rate of machines for my client. He is having both Windows and Linux machines including AIX. I want to know rather than doing a manual check i.e. document to document, is there any tool (preferablly …

Member Avatar for Bheeman89
0
311
Member Avatar for sania khan

//Check radiobutton list based on the data retrieve from the database //This is also not working.. This does not select any item of the RadioButtonList1.. and also not giving any error... //Here is my code protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e) { string selectSQL; selectSQL = "SELECT * FROM Books_Magazines …

Member Avatar for sania khan
0
2K
Member Avatar for Aleroth

Hi there, I want to create like a online interaction system on my site. you know like a "Chat to us now" kinda thing. Where when a user is on your site you can chat with them directly from the home page or any other page using a 3rd party …

Member Avatar for Aleroth
0
91
Member Avatar for ravidaniweb

HI i am getting error on lbl.Visible = true and command.ExecuteNonQuery(); plz check and paste correct coding i doing new project plz help me. protected void Button1_Click1(object sender, EventArgs e) { SqlConnection conn = new SqlConnection("Data Source=RAVI-PCSQLEXPRESS;Initial Catalog=personals;User ID=sa;password=sa;Integrated Security=True"); SqlDataAdapter da = new SqlDataAdapter(" select * from table_2", conn); …

Member Avatar for hericles
0
146
Member Avatar for ravidaniweb

Hello everyone! i have problem in inserting data in my database from textbox, i m using c#. the code in .aspx.cs file is using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using System.Data.Sql; using System.Data.SqlClient; public partial class _Default : System.Web.UI.Page { SqlDataAdapter da …

Member Avatar for poojavb
0
145
Member Avatar for joseluisvs

For some reason, before the selectedindexchanged sub routine finishes, combobox Description is still pointing on the last selectedindex changed and the combobox Image is on the actual current selected index changed. Once it exits the routine both combobox are in the current value. I cant see why this is happening, …

Member Avatar for poojavb
0
207
Member Avatar for кодирование

First of all, just registered and this forum looks great! PROBLEM: My program which I wrote in Code::Blocks, has compiled fine and has worked fine, but when I run the outputted file called (BINDED.exe) it shows a very quick console window then closes, I think this is due to the …

Member Avatar for georgeduroa
0
175
Member Avatar for Farhad.idrees

I have this code using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.OleDb; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Access_Database { public partial class Form1 : Form { private OleDbConnection myconnection; public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { string strconn = …

Member Avatar for gusano79
0
186
Member Avatar for Skate Bart

Okay, so here's my problem. I have a MS Hierarchical Flex Gird Control [fgdCompany] which is used to display records that are taken from a database. Everything works great but not the Delete button. What the delete button is supposed to do is when a record is selected in fgdCompany, …

Member Avatar for Skate Bart
0
231
Member Avatar for Skate Bart

hey there, Here's my complete code for a delete button that deletes a record in a Heirachical Flex Grid. Dim rsTour As New ADODB.Recordset Dim cn As New ADODB.Connection Dim strSQL As String cn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;" & _ "Data Source=" & App.Path & "\Luckshan Tours & Travels.mdb;" & _ "Persist …

Member Avatar for Skate Bart
0
409
Member Avatar for gedas

hey guys i found a cool java app that helps me manage my svn directories, you can find it by following this link: http://just-download.com/software-development/other/svncontrol-1.62.zip/12a97 i was wondering whether this is an open source and whether i can get a source code for it as i would like to extend it …

Member Avatar for pritaeas
0
55
Member Avatar for pandeysk_13

hello to all and thanks for giving all help to newbees, i have a form in visual basic 2010 with these specification 1 datagridview 7 textboxes 7 comboboxes 2 datepicker i use a connection with code to ms access. i am using this code to load data in DGV and …

0
84
Member Avatar for chunkbar

this is our insertion logic. but the problem is that after inserting one record we reset the textfields to clear them.and after that if we again press the insert button it duplicate the previous record into our database.we want to tackle with this??????so that no duplicate entry should be inserted …

Member Avatar for hericles
0
410
Member Avatar for deeps2_daniweb

i have just started learning asp.net and webmatrix a week ago. i read these excellent tutorials http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/getting-started and i try to make a similar site that instead of movies have employee records. here is the code of web page which i made by modifying the given codes in thee tutorials. …

Member Avatar for deeps2_daniweb
0
326
Member Avatar for ravidaniweb

hi i am getting error plz error SqlConnection conn = new SqlConnection("Data Source=RAVI-PC\\SQLEXPRESS;Initial Catalog=personals;User ID=sa;password=sa;Integrated Security=True"); SqlDataAdapter da = new SqlDataAdapter(" select * from table_2", conn); DataSet ds = new DataSet(); da.Fill(ds, "table_1"); conn.Open(); SqlCommand SQLINSERT =new SqlCommand(); command.Parameters = "insert into table_1(ID,name,address,phone,city)values('@id','@name','@address','@phone','@city')" ; SQLINSERT.Parameters.Add(("@ID",Textbox1.Text.ToLower) SQLINSERT.Parameters.Add(("@name",Textbox1.Text.ToLower) SQLINSERT.Parameters.Add(("@address",Textbox1.Text.ToLower) SQLINSERT.Parameters.Add(("@phone",Textbox1.Text.ToLower) SQLINSERT.Parameters.Add(("@city",Textbox1.Text.ToLower) SQLINSERT.ExecuteNonQuery()

Member Avatar for kvprajapati
0
259
Member Avatar for ocs2me

Below is my scripts: <% connstring ="Provider=MSDAORA;Data Source=(DESCRIPTION="&_ "(ADDRESS=(PROTOCOL=TCP)(HOST=cqcmdb1.corp.mot.com) (PORT=1521))"&_ "(CONNECT_DATA=(SID=CQPD2)));User ID=report_ccmpd_ro;Password=report" set con = server.CreateObject("ADODB.Connection") con.open connstring set conn = server.CreateObject("ADODB.Connection") conn.open connstring sqltest = "select T1.screen_failure, DBMS_LOB.SUBSTR(T1.ROOT_CAUSE_ANALYSIS,9000,1) AS RCATT from Submission_Record T1 where T1.dbid <> 0 and (T1.Headline like '%[O2O7]%')" set rs=server.createobject("adodb.recordset") rs.open sqltest ,con,1,3 sqltestonly = "select …

Member Avatar for gs98
0
115
Member Avatar for Crow77

I want to create a project where there's a Stock Exchange ticker (you know the thing with green arrow up and red arrow down sliding from right to left). I was wondering if there's an open-source script where it takes data from a MYSQL select statement or simple logic to …

Member Avatar for Crow77
0
99
Member Avatar for raaif

I cannot connect to SQL server heres the code Dim conn As New SqlClient.SqlConnection conn.ConnectionString = "Data Source=|DataDirectory|\Books.sdf" conn.Open() '\\ Error Comes here Dim sqlcomm As SqlCommand = New SqlCommand(("SELECT MAX(ID) FROM Books"), conn) maxid = sqlcomm.ExecuteNonQuery() Error Prompts me as > A network-related or instance-specific error occurred while establishing …

Member Avatar for poojavb
0
226
Member Avatar for Mike_H

Below is a sample code using the [URL="http://developer.yahoo.com/yui/slider/"]YUI Slider Control[/URL]. How can I get the photo to zoom in and out proportionally as the slider moves up and down? P.S. I am open to any existing working scripts. I have not been able to find any that does a variable …

Member Avatar for jansiranir
0
263
Member Avatar for mits28

I am trying to learn JavaMail API.i am working on this.i have search much from google..i know for hosting mails, mail server is require and Apache james is a open source server.i have downloaded that.but i am not able to configure that.i dont understand how actualy javamail work with James.I …

Member Avatar for godzab
0
178
Member Avatar for markyjj

Can someone please help me on this problem. I am trying to send the updated changes to the sql database when I remove a row. I use the delete method to delete the numbered row through a dataview and then use the upate command to update the changes to the …

Member Avatar for lolafuertes
0
301
Member Avatar for hafizurahman

i have a big problem here when i want to insert 6 data into 6 different row in 1 click. in field @ form it have name, staff no.,items, quantity and date. We can select 6 items to insert which i use ComboBox for save the data in form. In …

Member Avatar for Reverend Jim
0
828
Member Avatar for JE821

So the program makes an inventory from a cvs file. The cvs file consists of dvds and books. here is the code: #include "StdAfx.h" #define _CRTDBG_MAP_ALLOC //for memory checking #include <iostream> #include <stdlib.h> #include <crtdbg.h> #include <iomanip> #include <fstream> #include <string.h> #pragma warning(disable: 4996 4018) using namespace std; #define COPYSTR(TARGET, …

Member Avatar for JE821
0
402
Member Avatar for Pricess

plsss I need help!! I have problem with my insert data into database this is my code Public Sub doSave() Dim con As New OleDb.OleDbConnection(My.Settings.SystemDataConnectionString) Dim cmd As New OleDb.OleDbCommand Dim adap As New OleDb.OleDbDataAdapter Dim ds As New DataSet Dim dr As OleDb.OleDbDataReader con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\D_S_S - …

Member Avatar for Reverend Jim
0
145
Member Avatar for ShaggyDogg

I'm extending a website built in ASP.NET to display Spiceworks reports - basic SQL queries. The easist way (with my knowledge) is to connect to the Spiceworks db through both Management Studio and Visual Studio. I have therefore followed this '[how to](http://community.spiceworks.com/how_to/show/2271http://www.)' in this forum, plus a few others, to …

0
169
Member Avatar for ravidaniweb

hi this is my connection string SqlConnection conn = new SqlConnection("Data Source=RAVI-PC\\SQLEXPRESS;Initial Catalog=personals;User ID=sa;password=sa;Integrated Security=True"); SqlDataAdapter da = new SqlDataAdapter(" select * from table_2", conn); DataSet ds = new DataSet(); da.Fill(ds, "table_1"); conn.Open(); Actually my doubt is how to insert(data entered in texbox) and delete and update view record from …

Member Avatar for nuevoenjava
0
227
Member Avatar for elidotnet

Hello, im trying to insert data to sql server and its not working so well even the code not show any error message or errors on compile. when i check the database......hes empty. Please look at the code for sulotion: [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using …

Member Avatar for prathamesh3090
1
7K
Member Avatar for filolozka

Hi all the Ruby Folks! Use your skills for the sake of the OpenSource community, and try out the Ruby OpenSource Challenge. Fix a bug, write a new needed feature or just update the lagging documentation of a pointed Ruby Open Source project, and have a chance of winning some …

0
132
Member Avatar for mrki

Dear developers... I have problem with code... I cant understand where is mistake... here is my code... [code]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.Sql; using System.Data.SqlClient; namespace Phon_Imenik { public partial class Form1 : Form { public Form1() { …

Member Avatar for Momerath
0
2K
Member Avatar for Paladine

This a just a basic webform setup of a listbox being populated with data from a database, in this case the Northwind Access database, and then populating textboxes with data related to the item the user selects. [u]1. WebForm [/u] -Create an ASP.NET webform page -Add a [b]listbox server control[/b] …

Member Avatar for HamplusTech
0
2K
Member Avatar for vidyade

if (IsPostBack && DDLCount > 0) { CreateDropDownLists(); } } public int DDLCount { get { object temp = ViewState["DDLCount"]; return temp == null ? 0 : (int)temp; } set { ViewState["DDLCount"] = value; } } private void CreateDropDownLists() { if (DDLCount == 0) DDLCount = Convert.ToInt32(TextBox4.Text); for (int i …

Member Avatar for G_Waddell
0
99
Member Avatar for Pricess

hello, im have problem with my code..im used access database, when i select combobox1, the textbox will appear data set as value member....but data not appear on textbox..someone can help me :) this my code Sub fillcombo() Dim acscmd As New OleDb.OleDbCommand acscmd.CommandText = strsql acscmd.Connection = acsconn acsdr = …

Member Avatar for M.Waqas Aslam
0
2K
Member Avatar for yayasya

Hi.. i'm new in vb.net and i have problem with my project. can anyone help me with this problem.. -update button Dim con As New OleDb.OleDbConnection(My.Settings.TREViS_03_ConnectionString) Dim com As New OleDb.OleDbCommand Dim adap As New OleDb.OleDbDataAdapter Dim ds As New DataSet con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Yaya\Desktop\TREViS(03).mdb;Persist Security Info=True") con.Open() Dim …

Member Avatar for poojavb
0
167
Member Avatar for king03

hi guys can you help me create a database login form of this code to windows form application? Because this code is made for console application. also I already know how to create a database but I do not know how I can make a windows login form for this …

Member Avatar for hericles
0
168
Member Avatar for jsj1411

how to save records in listview into ms access database table using a button , i've tried with my codes but nothing is saved in the database `Inline Code Example Here` private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim con As New OleDbConnection con.ConnectionString = …

Member Avatar for Reverend Jim
0
169
Member Avatar for jereik

Got this error while trying to compile the code below: "Floating point exception" [code] #Create a simulator object set ns [new Simulator] #Open the nam trace file set nf [open out.nam w] $ns namtrace-all $nf #Define a 'finish' procedure proc finish {} { global ns nf $ns flush-trace #Close the …

Member Avatar for timetrex
0
229
Member Avatar for ryudo1987

Guys hi i need some help here though i fixed the connection with the sql server i tries to see if its correct and look first at the code and i explain m prob: private void lgnBtn_Click(object sender, EventArgs e) { SqlConnection lgnConnection = new SqlConnection(); lgnConnection.ConnectionString="Data Source=.\\SQLEXPRESS;"+"AttachDbFilename=C:\\Users\\ryudo\\Desktop\\workspace\\sql_goldshop_project\\Project1\\Goldshop_Tax\\Goldshop_Tax\\gold_tax.mdf;"+"Integrated Security=True;"+"User Instance=True"; …

Member Avatar for prathamesh3090
0
1K

The End.