Click here to Skip to main content
15,881,588 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: tree structure Pin
Ravi Sant3-May-11 0:32
Ravi Sant3-May-11 0:32 
Questionupdate program variable from client side javascript Pin
JimmyRopes15-Jun-08 16:25
professionalJimmyRopes15-Jun-08 16:25 
AnswerRe: update program variable from client side javascript Pin
Christian Graus15-Jun-08 16:37
protectorChristian Graus15-Jun-08 16:37 
GeneralRe: update program variable from client side javascript Pin
JimmyRopes16-Jun-08 10:41
professionalJimmyRopes16-Jun-08 10:41 
QuestionVS2003 ASP.Net 1.1 Designer Error Pin
Crow-knee15-Jun-08 15:41
Crow-knee15-Jun-08 15:41 
QuestionTreeView control - Tree Node data bindings are empty!! Pin
Member 340288615-Jun-08 9:27
Member 340288615-Jun-08 9:27 
AnswerRe: TreeView control - Tree Node data bindings are empty!! Pin
Christian Graus15-Jun-08 9:49
protectorChristian Graus15-Jun-08 9:49 
QuestionERROR [42S22] [Microsoft][ODBC Visual FoxPro Driver]SQL: Column 'columnname' is not found. Pin
amistry_petlad15-Jun-08 6:09
amistry_petlad15-Jun-08 6:09 
Hi All!

I am using visual foxpro 9.0 as backend and ASP.NET C# (MSVS2008)AND SERVER2003 OS .
In my application I am trying to populate one database column in the Dropdownlist but i got this error.

Error:
ERROR [42S22] [Microsoft][ODBC Visual FoxPro Driver]SQL: Column 'columnname' is not found.


[link]
http://support.microsoft.com/kb/932201 [/link]


I have try to find lots in google but I got this solution online.Could any one help me ?
Following is Link.

Code
<br />
 if (!Page.IsPostBack)<br />
        {<br />
            String strConnection;<br />
            strConnection = ConfigurationManager.AppSettings["ConnectionString"];<br />
            OdbcConnection odbcConnection = new OdbcConnection(strConnection);<br />
            OdbcCommand odbcCommand = new OdbcCommand("select * from dadmccom order by Name", odbcConnection);<br />
            odbcConnection.Open();<br />
            OdbcDataReader rd = odbcCommand.ExecuteReader();<br />
            while (rd.Read())<br />
            {<br />
                ListItem listItem = new ListItem();<br />
                listItem.Text = rd["Name"].ToString();<br />
                listItem.Value = rd["Companyid"].ToString();<br />
                RadioButtonList1.Items.Add(listItem);<br />
            }<br />
<br />
            RadioButtonList1.SelectedIndex = 0;<br />
            OdbcCommand odbcCommand1=new OdbcCommand() ;<br />
            odbcCommand1 = new OdbcCommand("Select * from dadmitem where Companyid = " + RadioButtonList1.SelectedValue + " order by Itmdesc ", odbcConnection);<br />
            //OdbcDataReader rd1 = odbcCommand1.ExecuteReader();<br />
            OdbcDataAdapter oda = new OdbcDataAdapter(odbcCommand1);<br />
            DataSet ds = new DataSet();<br />
            oda.Fill(ds);<br />
            DropDownList1.DataSource = ds.Tables[0];<br />
            DropDownList1.DataTextField = ds.Tables[0].Columns["Sku"].ColumnName.ToString();<br />
            DropDownList1.DataValueField = ds.Tables[0].Columns["Itmdesc"].ColumnName.ToString();<br />
            DropDownList1.DataBind();<br />
       <br />
<br />

Questionproblem in refreshing the page with time interval Pin
vijaylumar15-Jun-08 2:39
vijaylumar15-Jun-08 2:39 
AnswerRe: problem in refreshing the page with time interval Pin
Christian Graus15-Jun-08 2:40
protectorChristian Graus15-Jun-08 2:40 
Questionprint ing in asp.net 2.0 Pin
vijaylumar15-Jun-08 2:13
vijaylumar15-Jun-08 2:13 
Answer[Duplicate]Re: print ing in asp.net 2.0 Pin
Scott Dorman15-Jun-08 2:20
professionalScott Dorman15-Jun-08 2:20 
Questionprinting in asp.net 2.0 Pin
vijaylumar15-Jun-08 2:11
vijaylumar15-Jun-08 2:11 
AnswerRe: printing in asp.net 2.0 Pin
Scott Dorman15-Jun-08 2:22
professionalScott Dorman15-Jun-08 2:22 
Questioncode in c# for pageindexchanged in detailsview Pin
senpriya15-Jun-08 0:29
senpriya15-Jun-08 0:29 
AnswerRe: code in c# for pageindexchanged in detailsview Pin
Parwej Ahamad15-Jun-08 0:51
professionalParwej Ahamad15-Jun-08 0:51 
QuestionWeb.config problem Pin
jason_mf14-Jun-08 21:00
jason_mf14-Jun-08 21:00 
QuestionValidate email duplication during membership registration Pin
Albert8314-Jun-08 19:59
Albert8314-Jun-08 19:59 
AnswerRe: Validate email duplication during membership registration Pin
Gayani Devapriya15-Jun-08 18:10
Gayani Devapriya15-Jun-08 18:10 
GeneralRe: Validate email duplication during membership registration Pin
Albert8315-Jun-08 20:30
Albert8315-Jun-08 20:30 
Questionhow to search multiple string in database Pin
ph4ufree14-Jun-08 7:13
ph4ufree14-Jun-08 7:13 
AnswerRe: how to search multiple string in database Pin
Christian Graus14-Jun-08 8:40
protectorChristian Graus14-Jun-08 8:40 
Questionproblem in connecting with Sql server express 2005 provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified Pin
Nitin198114-Jun-08 6:17
Nitin198114-Jun-08 6:17 
AnswerRe: problem in connecting with Sql server express 2005 provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified Pin
N a v a n e e t h14-Jun-08 16:19
N a v a n e e t h14-Jun-08 16:19 
GeneralRe: problem in connecting with Sql server express 2005 provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified Pin
Nitin198115-Jun-08 6:50
Nitin198115-Jun-08 6:50 

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.