4,457 Topics
![]() | |
I want to fill GridView ,But i dont want to use datasource..I want to use the method,thru which i add the data using row by row As in VB.net [code] Dim row0 As String() = {"A","B","C"}; Me.DataGridFile.Rows.Add(row0) [/code]. [code] public partial class refresh : System.Web.UI.Page { string query; SqlCommand cmd; … | |
i now able to save the fingerprint directly to database using this code... Dim fingerprintData As MemoryStream = New MemoryStream Template.Serialize(fingerprintData) fingerprintData.Position = 0 Dim br As BinaryReader = New BinaryReader(fingerprintData) Dim bytes() As Byte = br.ReadBytes(CType(fingerprintData.Length, Int32)) Dim cn As SqlConnection = New SqlConnection("Data Source=.\SQLEXPRESS;Initial Catalog=dataBEST;Integrated Security=True;Pooling=False") Dim cmd … | |
Hi guys I'm having a problem in opening excel files using the workbook.open for me to save all the changes made by oledbcommands. Dim MyConnection As New OleDbConnection("provider=Microsoft.ACE.OLEDB.12.0; Data Source='" & path & "'; Extended Properties=Excel 12.0;") MyConnection.Open() Dim i = 0 Dim h = Label1.Text Do 'Dim q = … | |
Hi Folks – I am trying to identify a good desktop primarily for use doing statistical computing with the R language. Not sure if I should be posting here or in custom builds or somewhere else. I have some very large files (Census & BLS stuff, mainly – as much … | |
Hi I've run this code and i get no errors but my form data is not saved on the dataset or database. This is the click event code. [code] Dim conn As New SqlConnection("Data Source=.\SQLEXPRESS; AttachDbFilename=|DataDictionary|\TMSDB.mdf;Integrated Security=True Instance=True") Dim ds As New DataSet conn.Open() Dim Adp As New SqlDataAdapter("select * … | |
Development Environment used: 1.Microsoft Visual Studio 2010 2. Programming Language: C# 3. Database MySql I am trying to use BCrypt class by Derek Slager for creating and authenticating username and password. A form is use to create new user to save Username and Password to database, but this Password is … | |
Hi, I want to create an excel file from classical ASP. My client is Win 7 / IE9, Server has Windows Server 2003 and Excel 2003 I tried HTML TABLES. Response.ContentType = "application/vnd.ms-excel; charset=utf-8" Response.AddHeader "Content-Disposition", "attachment; filename=abc.xls" Response.Write(sResponseString) AT first It worked but later on the file corrupted. While … | |
I would like to do is to read CSV file begin to display to datagridview. show all the rows in the CSV but only the columns between START and END. This code below is for import all data from csv to datagridview. If OpenFileDialog1.ShowDialog(Me) = DialogResult.OK Then Try Dim fi … | |
*Hello. I am not new to the wonderful site - Just lost login credentials* I am resuming work via Python and must make some installs into my Lib. I am having trouble with this - I have not used Python in 2-3 years. Many syntax errors. This is from install … | |
Hi guys. I need help in copying selected row from DataGrid to another. What I want is if I click a row it will be copied to another DataGrid. I set my DataGrid Selection Mode to FullRowSelect. Is it possible for me to update my database using the copied rows. … | |
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.OleDb; namespace WindowsFormsApplication1 { public partial class Form2 : Form { OleDbConnection con = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source='login.accdb'"); public Form2() { InitializeComponent(); } private void label3_Click(object sender, EventArgs e) { } private void button2_Click(object … | |
Hey guys! I'm working on an open-source video game and things are going well enough, except for the part where I'm trying to work around my n00bish socket-programming background to build the server component. I had the server software working from a single-user perspective, but when I tried to add … | |
So I put the database into the dubug folder in bin of my project, and in the data source configuration wizard i selected ms access and my file, then i copied my connection string, it was "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\bin\Debug\bookshop.mdb" and wrote some code for it to connect to it, to be … | |
I want to integrate local seach engine to my website. Which open source tool is best for it, I want to search pdf files also. Will google custom search do this job. | |
i'm building a data base.. heres what i did: 1 - create the forms and put the controls; 2 - create the Service-base DataBase(add New Item); 3 - a toolbox, on left, is showed and then i create a new table; 4 - using the mouse right button, i select(on … | |
@ by : O This is topic (http://www.codeproject.com/Articles/21351/Import-Data-to-SQL-Server-from-Excel-or-Access-usi) is reactivated again which was posted by : Oxiegen for further information: The code is corrected but the data is not getting exported from Access database to SQL. The code is as follows : Private Sub Button1_Click(ByVal sender As System.Object, ByVal e … | |
Please can anyone cheack my work its not working with me ! Also if you have any simple Solution can I use, it will be better ! Protected Sub Button1_Click(sender As Object, e As System.EventArgs) Handles Button1.Click Dim conString As String = "Data Source=BUSH;Initial Catalog=HOTEL;Integrated Security=True" Dim sqlCom As SqlCommand … | |
Recieving the error "Dynamic SQL generation is not supported against multiple base tables." When pressing the save button Code for Save button: private void btnSave_Click(object sender, EventArgs e) { DataGridQuestions.EndEdit(); adapter.Update(ds, "Questions"); MessageBox.Show("Updated"); DataBind(); } Code for filling data adapter private void DataBind() { string connectionString = ("Data Source=" + … | |
I've tried the methods from http://stackoverflow.com/questions/11498308/getting-values-from-two-or-more-forms-c-sharp http://stackoverflow.com/questions/3552169/sharing-a-variable-between-two-winforms http://stackoverflow.com/questions/10675872/get-value-from-parentform?rq=1 and http://stackoverflow.com/questions/14504210/passing-username-to-form-but-username-returns-null-c-sharp?rq=1 But i couldnt get mine to work as i will get some random argument error. [the two forms](http://i.imgur.com/gTwo3dZ.png) From the picture , i just want the username on Login form to be put into label1 on User form. But also … | |
Hi, I have a problem with changing the password from Microsoft Access Database. I get an Error "[B]No data exists for the row/column[/B]". The password in the database is encrypted and when I change the password it should be decrypting the password and new password should be updated with encryption … | |
hi everybody I have a project that I teach machine language source code: Open the file Writing to a file Save File I have to leave the files on the machine. Can anyone help me? | |
I had c# application that has registration form and another from that user use to sigin in into my application i wonder how to check if user its register or not my login form has to textbox username and passpwrd and im trying this code i gusse its wrong can … | |
Hey everybody, Lately I have written the game Hangman in many different languages (C, JavaScript, Java and PHP so far). Here is the code snippet for Java! It uses a words file, on the bottom of this post you will see a small example of a few words. The source … | |
Hi guys. I'm having problems in updating records in Excel. Whenever I update a cell the value I input it goes 4 cells above the intended cell and I know the reason. In my Select query: `SELECT * FROM [Sheet1$A5:R1048576] where [ITEM CODE] is not null` Meaning I skipped reading … | |
I have installed Rifidi edge server (open source RFID middleware provide services as osgi bundles) on windows7 and I am trying to develop a java application to connect and read data from edge server. **1)** Firstly I used Spring with following code to get JMS ConnectionFactory object which I am … | |
i got a problem where i want use 2 form which form 1 is to find info in database and form 2 for show the data but when i use call form 2, the pop up appear as invalid below is my coding Private Sub cmdFind_Click() con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Fairus\Documents\docklet\my … | |
protected void btndel_Click(object sender, EventArgs e) { SqlConnection con123 = new SqlConnection(); con123.ConnectionString = @"Data Source=viral\sqlexpress;Initial Catalog=mydata23;Integrated Security=True"; string qu1 = "delete from table_1 where (username='" + txtuser.Text + "', password='" + Txtpass.Text + "')"; SqlCommand dsa = new SqlCommand(qu1, con123); con123.Open(); dsa.ExecuteNonQuery(); con123.Close(); Response.Write("deleted"); } SqlConnection con123 = new … | |
The following error occurs in nexus7 android 4.4 device 12-11 12:53:15.708: E/AndroidProtocolHandler(5245): Unable to open asset URL: file:///android_asset/www/cordova_plugins.json 12-11 12:53:15.798: D/CordovaNetworkManager(5245): Connection Type: wifi 12-11 12:53:15.798: D/DroidGap(5245): onMessage(networkconnection,wifi) 12-11 12:53:15.798: D/CordovaNetworkManager(5245): Connection Type: wifi 12-11 12:53:15.808: D/DroidGap(5245): onMessage(spinner,stop) 12-11 12:53:15.848: D/dalvikvm(5245): GC_FOR_ALLOC freed 119K, 5% free 7745K/8148K, paused 16ms, total … | |
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; namespace Practical1 { public partial class Exercise1 : System.Web.UI.Page { string cs = Global.CS; protected void Page_Load(object sender, EventArgs e) { } protected void btnSubmit_Click(object sender, EventArgs e) { if (Page.IsValid) { string user = txtUser.Text; … | |
I have a problem with deploying the 3 tier lightswitch web application on the server. On the local server IIS7 everything works perfect but when i deploy it to the vps which also runs IIS7 it gives me this error when i try to navigate to the page: HTTP Error … | |
yes. my coding as follows Public Function connectDB() connStr = "Data source =KIRAN;Initial Catalog=eStaffMgm;Integrated Security=SSPI;User Id=**;Password=*******" connSQL = New SqlConnection(connStr) Return connSQL End Function My system name is Kiran and the database name is eStaffMgm The default instance of SQL Server 2012 is MSSQLSERVER The code in the module was … | |
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> // free- A lot of extra marks //Avoid global variables. struct packet { //struct for the packets int source; int destination; int type; int port; char data[49];//starts at 0 }; int add(); //to add a packet void view(); // view a created … | |
I want to filter the values in the listview using the date range selected in two datetime picker. Here is my code: Dim reportstring As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\Fe\Desktop\SADsystem\SADsystem\stockroom.accdb;Jet OLEDB:Database Password=stockroom" Dim reportconn As New OleDbConnection Dim date1 As Date Dim date2 As Date date1 = Convert.ToDateTime(DateTimePicker1.Value) date2 = Convert.ToDateTime(DateTimePicker2.Value) … | |
Hi.goog morning, guys.Anybody here know any others dynamic pie chart library(don't want the google api chart) that is open source and free, can give me any recommendation?Thanks. Regards, Stanley | |
can anyone help me in this problem? i have to put sql server data in my combobox on my form, i watch several tutorial in youtube and read here some other codes but i still don't how to. please can anyone help me? Using combocon As New SqlConnection("Data Source=NSSISQLSERVER;Initial Catalog=NSSIDB;Persist … | |
what it entails,difference between it, open source and closed source | |
Hi, this script is suppose to back up most if not all directories, all files within each directory then compressed those files and directories in a zip file and save it to a directory. A typical web server can be in the hundreds of megs, the script works except it … | |
Please i have a problem i cant resolve. I was able to populate my combobox (Cus_ID) from TLB_Customer table sucessfully. Now, how ca i use the same populated combobox to populate a textbox (Cus_Name) all in the same TLB_Customer table. My Code Imports System.Data.OleDb Public Class frmTransaction Dim con As … | |
hi all I had make this samll method to insert data from c# forms into my oracle database the code processed fine but when I go to sql developers software to check if the record has been inserted or not I found nothing... so whats wrong with it please thanks … | |
hello.. i have problem load two data from different table and column.. for example, each data from product table into product combobox and brand table to brand combobox..i succussfully load data to combobox but got multiple same data into combobox.. Dim conn As New OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0;Data Source=" & Application.StartupPath & "\mydatabase.mdb;Jet … | |
Hello, * I want somehow to force the Firefox OR Chrome browser to open the browser windows hidden ( the windows to have the SW_HIDE style from the start when they are created ). **For example :** If I want to open a new browser window besides my current one, … | |
I'm having trouble calling a function I've written after importing the module containing it. The module is called funky.py. Here is the code for funky.py: from ftplib import FTP_TLS #### FUNCTION --- fileup() #### for sending file via FTP TLS ## ## arg1 .. destname > the filename to be … | |
Hi Guys, I am using access (.mdb) database in my windows application. When i am inserting values to db it gives me an error "syntax error in insert into statement" but it will work in SQL and access query analyzer. here is my code [CODE] string StrInsertToServer1 = "insert into … | |
I'm coming up with this error: Unhandled exception at 0x013c4218 in Hash_Table.exe: 0xC0000005: Access violation reading location 0x0000001c. Here's my driver: #pragma once #include <cctype> // Provides toupper #include <cstdlib> // Provides EXIT_SUCCESS #include <cstring> // Provides strchr #include <fstream> #include <iostream> #include <string> #include <sstream> // Operate on strings … | |
hi I am trying to save multiple images into one ID and I am getting no where ...I am posting the code so for storing and retrieving image (one image)...but need to store more than one ....need some help here ... using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using … | |
THIS IS A DISCUSSION THREAD NOT Q&A. PLEASE SHARE YOUR THOUGHTS AND IDEAS. I am planning on making a website which mainly will be driven by community users, mods, and admins. It will be a large project but i am ready for it, since community like stackoverflow and daniweb is … | |
I have this problem, I have a SQL code working perfectly on SQL Query windows... SELECT ID_no, nom_navire, date_mes, date_sav, description, nom_fourn, no_facture, date_facture, accept, decline FROM DB_FACTURE WHERE( ID_no = 39) Answer perfect On my code Is ... SELECT devise FROM FOURNISSEURS WHERE nom_fourn = '" + Nom_FournPass + … | |
hello everybody, actually I want to work on some open-source project. I want to learn something new and something interesting related to computer science. I can work for 4-5 months on project and even more than that. if not open-source, still if you have something in my mind, you can … | |
Hello to all! I've made this script the other day, and I need some input from you telling me how could I improve the code / style. There aren't problems with the code (it does the job) but I want it more organized and "simple" so that in 1 week … | |
The AR.Drone is what is known as a quadricopter device, and the Parrot drones are probably responsible for kick-starting the whole consumer drone industry. Unpacking the box you immediately notice how light it is, and how little you get by way of stuff to assemble or plug-in. Beyond the couple … |
The End.