Page 1 of 1

Combo box Value and PostgreSQL.Net

Posted: Sat 08 Dec 2007 18:43
by aspirevishal
Hi ,


I dont know if this clasify as specific VB.net Question or PostgreSQL .Net Question.

Anyways :

When I use to do PHP and if a database had a two colum one with serial no and the other the corresponding value for that sno like

Code: Select all

sno|item
---------
1   | sugar
2   | salt
what i use to do is simple query it

like
select sno,tem from table;

then in PHP for combobox I use to populate the value as and the display would come with


In HTML

Code: Select all

Sugar
Then in insert statement of another table I simply use to insert the value of option tag

How can I accomplish the same with PostGreSQL.net and combobox

Posted: Mon 10 Dec 2007 11:49
by SecureGen
Here is an example of an .aspx page with data binding set up for a DropDownList:

Code: Select all








    Untitled Page


    
    
        "
            providername=""
            selectcommand='SELECT * FROM "dept"'>
        
        
    
    
    


Posted: Mon 10 Dec 2007 20:35
by aspirevishal
lots of thanks that gave me a pointer