Click here to Skip to main content
15,936,988 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: php include cuts variable?! Pin
badgrs2-Mar-07 4:49
badgrs2-Mar-07 4:49 
GeneralRe: php include cuts variable?! Pin
Bradml2-Mar-07 16:34
Bradml2-Mar-07 16:34 
AnswerRe: php include cuts variable?! Pin
Bradml2-Mar-07 16:37
Bradml2-Mar-07 16:37 
QuestionRadioButtonList&Datagrid Pin
nclauder2-Mar-07 4:26
nclauder2-Mar-07 4:26 
QuestionWSE 2.0routing Pin
Kanjinghat1-Mar-07 21:57
Kanjinghat1-Mar-07 21:57 
Questionasp:TextBox Pin
Jagga_Jatt1-Mar-07 20:15
Jagga_Jatt1-Mar-07 20:15 
AnswerRe: asp:TextBox Pin
badgrs1-Mar-07 23:08
badgrs1-Mar-07 23:08 
Questioncascaded dropdown list box. Pin
Kunal P1-Mar-07 19:56
Kunal P1-Mar-07 19:56 
cascaded dropdown listbox
hi.

i am developing a web based application in Visual WeB Developer EXPRESS.

I have a Drop down list that which is statically filled. Now i wanted that wen i select a particular field from the Drop Down List, a table of the same name shud be accessed, and a particular column be filled in the Listbox Control.

i wrote a piece of code

try
{
conn.Open();
SqlCommand cmd = new SqlCommand();
cmd.Connection = conn;
cmd.CommandText = "Select * from [" + DropDownList1.SelectedValue + "]";+ "'";
SqlDataReader dread = cmd.ExecuteReader();

dread.Read();

while (dread.Read())
{
ListBox1.Items.Add(dread["column_name"].ToString());
}

conn.Close();


the problem is that no row is being retrieved.. please help..

Kunal Piyush

AnswerRe: cascaded dropdown list box. Pin
Chris Buckett2-Mar-07 10:17
Chris Buckett2-Mar-07 10:17 
GeneralRe: cascaded dropdown list box. Pin
Kunal P2-Mar-07 18:16
Kunal P2-Mar-07 18:16 
QuestionRadioButton&Datagrid Pin
nclauder1-Mar-07 18:27
nclauder1-Mar-07 18:27 
AnswerRe: RadioButton&Datagrid Pin
badgrs1-Mar-07 23:07
badgrs1-Mar-07 23:07 
AnswerRe: RadioButton&Datagrid Pin
Paddy Boyd1-Mar-07 23:16
Paddy Boyd1-Mar-07 23:16 
QuestionRe: RadioButton&Datagrid Pin
nclauder2-Mar-07 1:00
nclauder2-Mar-07 1:00 
QuestionWeb.config, Global.asax Pin
Kusal1-Mar-07 17:09
Kusal1-Mar-07 17:09 
AnswerRe: Web.config, Global.asax Pin
BLOEDHOND1-Mar-07 22:47
BLOEDHOND1-Mar-07 22:47 
GeneralRe: Web.config, Global.asax Pin
Kusal2-Mar-07 15:19
Kusal2-Mar-07 15:19 
AnswerRe: Web.config, Global.asax Pin
kubben2-Mar-07 1:59
kubben2-Mar-07 1:59 
GeneralRe: Web.config, Global.asax Pin
Kusal2-Mar-07 15:19
Kusal2-Mar-07 15:19 
Questioniis 7 debug forms based authentication project impossible? Pin
Member 961-Mar-07 7:56
Member 961-Mar-07 7:56 
AnswerSolution Pin
Member 961-Mar-07 8:25
Member 961-Mar-07 8:25 
QuestionSession Expiration Problem Pin
udhaya kumar1-Mar-07 2:46
udhaya kumar1-Mar-07 2:46 
AnswerRe: Session Expiration Problem Pin
WoutL1-Mar-07 3:47
WoutL1-Mar-07 3:47 
GeneralRe: Session Expiration Problem Pin
udhaya kumar1-Mar-07 17:32
udhaya kumar1-Mar-07 17:32 
GeneralRe: Session Expiration Problem Pin
User 98851-Mar-07 22:21
User 98851-Mar-07 22:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.