54 Topics

Member Avatar for
Member Avatar for developer707

Hello, Recently I am starting to code my scripts in PDO method to manage the information in a mysql database. In this case I am having an issue how to use the best practice conditions when dealing with a POST **int** value. With the posted values I am making a …

Member Avatar for cereal
0
352
Member Avatar for burhanahmed92

I have a multicolumn listview. There are three button Add, delete and Updata. List is working fine, it add, delete and update list data. But i want to save every row inside listview when i click save button. Bellow is my XAML. <TextBox Canvas.Left="12" Canvas.Top="12" Height="23" Name="textBox1" Width="120" TextChanged="textBox1_TextChanged" KeyDown="textBox1_KeyDown" …

0
247
Member Avatar for sana.f.qureshi_1

Hey good people, I hope you are all well. Ok so here is the scenario, i have 4 tables that i have made in sql server 2008. I am using a drop down menu to diplay their names. Like this... ![ecb53783b16f2f19f927a3cd72bee4d0](/attachments/large/4/ecb53783b16f2f19f927a3cd72bee4d0.png "ecb53783b16f2f19f927a3cd72bee4d0") I am going to use a dataGrid view. …

Member Avatar for BMXDad
0
282
Member Avatar for PerplexedB

I have a textbox and a label bound to the same member via a bindingsource. I would have expected that at some point when the user changes the textbox, the label would be refreshed, yet it is not. What am I missing here?

Member Avatar for PerplexedB
0
170
Member Avatar for pritaeas

The following snippet shows how you can use binding in your queries when using MySQLi. For starters, here's the table structure I've used: CREATE TABLE `mytable` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `dob` date DEFAULT NULL, `level` int(11) DEFAULT NULL, PRIMARY …

Member Avatar for pritaeas
3
1K
Member Avatar for jayst19143

I'm trying to dynamically populate a cfselect with a CFC using binding. Here's my cfc <cfcomponent output="false"> <!--- set function name ---> <cffunction name="Get_Companies" access="remote" returnType="array"> <!--- Define array to produce the drop down ---> <cfset var data=""> <cfset var result=ArrayNew(2)> <cfset var i=0> <!--- Get data ---> <cfquery name="data" …

0
169
Member Avatar for ricardo.scheufele

Hi, I have a class called "car" with - I have no ideia how to say this in english - "data members" as the following: Public pneu As classDoor Public mat As classTire Public length As Double And so on. All the related classes have null constructors. I have a …

Member Avatar for PerplexedB
0
337
Member Avatar for ricardo.scheufele

Hi, I have a tabcontrol with 3 tabs. Every tab has a great deal of textboxes which I use to refresh the properties of an object. To save my time, I bind the textboxes.Text to the properties of my object. The main problem happens 'cause I can make the binding …

Member Avatar for ricardo.scheufele
0
695
Member Avatar for pritaeas

The following snippet shows how you can use binding in your queries when using PDO. For starters, here's the table structure I've used: CREATE TABLE `mytable` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `dob` date DEFAULT NULL, `level` int(11) DEFAULT NULL, PRIMARY …

3
1K
Member Avatar for kindofsudden

I have a combobox that is bound to a DB and works great. However, when the user adds a value to the table to which the combobox is bound, the combobox keeps the old value and adds the current items in the table. In this case the table originally held …

Member Avatar for kindofsudden
0
359
Member Avatar for kindofsudden

Seems like this should be simple. I am binding comboboxes successfully to my Access DB. It looks like this: Dim da As New OleDbDataAdapter(asql, con) Dim ds As New DataSet da.Fill(ds) cboEmployeeNumber.ValueMember = "ID" cboEmployeeNumber.DataSource = ds.Tables(0) cboEmployeeNumber.SelectedIndex = 0 Works great. Then I try to bind a text box …

Member Avatar for Begginnerdev
0
210
Member Avatar for Black_Lion

Hi all. I am using Microsoft Visual Web Developer C# and am working with a database. I am using 2 tables: CONTINENT table with fields: CONTINENT_CODE and CONTINENT_NAME The other table is COUNTRIES with fields: COUNTRY_CODE and COUNTRY_NAME The 1 dropdownlist is bound to the CONTINENT table and displays the …

Member Avatar for JorgeM
0
175
Member Avatar for de Source

Hi, i am making an asp application and in code behind file i am trying to bound drop down list from tbl_teacher in which i concatenate the first and last name by this query `string sqlStatement = "SELECT teacher_id, fname + lname AS Name FROM tbl_teacher";' and it is working …

Member Avatar for de Source
0
265
Member Avatar for joseph.lyons.754

I have been tryin to get this to work for the past week if not two >:( with no joy. Worst of all its such a trivial problem. The program asks you to choose a town name from a combo box when you choose the location you shoud be brought …

Member Avatar for JamesCherrill
0
423
Member Avatar for aaloo

I am building a chat application based on websocket protocol.I am uploading this on an apache server and i am getting this error : "Warning: socket_bind() [function.socket-bind]: unable to bind address [98]: Address already in use" I am using port no. 12346. When i checked this port's status i got …

Member Avatar for dorco
0
981
Member Avatar for tayyabatiq

Hi I'm coding in C++ XAML to make a windows 8 store app. Now, there are two objects in my main window: a textBox and a textBlock. What i want to do is that the user will write an equation in the textBox and the textBlock will show all the …

0
150
Member Avatar for diafol

Hi All, Just to say that I've searched DW and Google extensively before posting here. Also looked at the jQuery site, but failed to find exactly what I'm looking for. Anyway here's the thing: I have a button on a form, that when it's pressed inserts some new inputs (textboxes) …

Member Avatar for diafol
1
238
Member Avatar for kindofsudden

I have a datagridview bound to a datatable and it works great. However, when I try to programmatically change the datasource property to a different existing table, I get a blank datagridview with no cells. Although I have tried many bits of code to remedy the problem, this is the …

Member Avatar for kindofsudden
0
286
Member Avatar for DrChocolate

Dear All, With help from you all, I have a successful instant search on the current draft of our website. I'd love help with three minor issues of following convention: 1) Clicking on your link of choice brings about its appearance in another window -- that makes going back difficult …

Member Avatar for DrChocolate
0
236
Member Avatar for bigwill2010

Write a Python program that draws a circle with radius 50 pixels and centered at the center of the canvas. Give the canvas white background color and make it expand with its frame whenever the user resizes the frame. The program will respond to some mouse and keyboard events as …

Member Avatar for bigwill2010
0
8K
Member Avatar for DrChocolate

Dear Everyone, I have a functional instant search (in draft at [Click Here](http://www.woofwoofwoof.org/is08/search.htm)). I want the search to function very similarly to Google. This will help sighted people figure it out, and bring me much more in compliance with accessibility standards. Unfortunately, I'm missing two "Google-oid" features: . 1) **How …

Member Avatar for Airshow
0
338
Member Avatar for Khav

Hi I have a vb.net form connected to an access database using vb.net .All my other button except for the add new button If Valid = True Then CustomerBindingSource.AddNew() Me.TableAdapterManager.UpdateAll(Me.DB_ShopDataSet) End If I want this code to add a new row to the customer table.However the current code modify the …

Member Avatar for Khav
0
368
Member Avatar for Lomholdt

Hello. I recently finished my 1. semester in Computer Science, and got a good fundamental idea on programming in Python. Our exam assignment whas to create a game where we had to smash robots by clicking around with the mouse. The GUI was provided by our instructor. Now we newer …

Member Avatar for Lucaci Andrew
0
258
Member Avatar for BenzZz

Hi, I have a php file that contains the queries as strings. I have wrote the following query: SELECT message_no, sender, destination, time_received, type, reference_no, message FROM messages WHERE message LIKE '%:substring%'; :substring is then assigned a value from $substring. The query works when i run it directly in cmd …

Member Avatar for simplypixie
0
251
Member Avatar for Farhad.idrees

I have two Combo Boxes..1-Programme 2-Semester I want to bind Semester combo box with Programme combo box.. i m reading file from Xml.... after binding i have to show data on datagrid view... but i m not able to do it...... i hope someone will help me... Regards.. Farhad

Member Avatar for robea
0
149
Member Avatar for hmortensen

Hi all, Hopefulle someone outthere can help me identify whay i'm doing wrong. I'm sure it's something simple I have overlooked. I have the following templates in my xaml. [CODE] <Window.Resources> <DataTemplate x:Key="ModuleTemplate" > <StackPanel Orientation="Vertical"> <TextBlock Text="{Binding Path=fileName}"/> <TextBlock Text="{Binding Path=baseAddress}"/> <TextBlock Text="{Binding Path=entryPointAddress}"/> </StackPanel> </DataTemplate> <HierarchicalDataTemplate x:Key="ProcessTemplate" ItemsSource="{Binding …

Member Avatar for hmortensen
0
203
Member Avatar for DNHK

Hi I need some help over here... how do i change the display member of a ComboBox after i have entered a code in a textbox that it represent the combobox value?? example Code: 02-001 Combobox: Provider X if i change the code the provider combobox must change and if …

Member Avatar for M.Waqas Aslam
0
299
Member Avatar for stefh

Hi everyone :) Title says it all... I'm trying to bind events to a wx.GenericDirCtrl. I've visited more than 20 web sites but i haven't found how to do it. I've tried different manners but it doesn't work as i expect it to. In some case my control is seen …

Member Avatar for stefh
0
616
Member Avatar for skran

HELP!! I try to bind a textbox to a datatable but i cant.. I checked if the datatable is filled (it includes the results of a sql query)and it s ok.. i can depict the result in a combo box but not in textbox. I wait for only one result …

Member Avatar for adam_k
0
1K
Member Avatar for drugoholic

Hello, I have 2 tables: news and users news - N_id (primary) - title - article - time - U_id users - U_id (primary) - member I have managed to create the gridview with edit/add/delete for news only, without incorporating the users who wrote that news article. My question here …

Member Avatar for Antenka
0
175

The End.