Click here to Skip to main content
15,917,481 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: ASP3 & DB Pin
Christian Graus27-Jul-07 21:51
protectorChristian Graus27-Jul-07 21:51 
Question Insert a button on each row of a data grid(Code behind C#) Pin
paytam27-Jul-07 16:53
paytam27-Jul-07 16:53 
AnswerRe: Insert a button on each row of a data grid(Code behind C#) Pin
T.EDY27-Jul-07 17:19
T.EDY27-Jul-07 17:19 
GeneralRe: Insert a button on each row of a data grid(Code behind C#) Pin
paytam27-Jul-07 21:07
paytam27-Jul-07 21:07 
GeneralRe: Insert a button on each row of a data grid(Code behind C#) Pin
T.EDY29-Jul-07 17:38
T.EDY29-Jul-07 17:38 
QuestionRepeater Pin
Assaf8227-Jul-07 16:20
Assaf8227-Jul-07 16:20 
AnswerRe: Repeater Pin
Christian Graus27-Jul-07 17:46
protectorChristian Graus27-Jul-07 17:46 
QuestionSelect Statement problem Pin
ASPnoob27-Jul-07 16:14
ASPnoob27-Jul-07 16:14 
Hi, in the code below the IF statement is used for multiple selection of list items in a list box. The select statement is supposed to select the CarID and the Model fields From the table CarTB, where the value of the field Make equals the text value of the list item in my list box that has been selected.
Dim DS As New DataSet
  For i = 0 To CarNamesDL.Items.Count - 1
   If CarNamesDL.Items(i).Selected Then 
     BConn = New OdbcConnection("Driver={MySQL ODBC .51Driver};Server=myServer;Database=CarCompaniesDB;User=myUserassword=myPass;Option=3;")
     DBCommand = New OdbcCommand("SELECT CarID, Model From CarTB where Make = '" & CarNamesDL.Items(i).Text & "'", DBConn)
    End if
  Next

I get the error "Character constant must contain exactly one character" and visual studio is saying that the select statement is the cause. Please take a look and explain to me what I did wrong in the select statement. Thank you in advance for your help.
AnswerRe: Select Statement problem Pin
Christian Graus27-Jul-07 17:49
protectorChristian Graus27-Jul-07 17:49 
Questioncopy file to network folder Pin
Dpriya27-Jul-07 16:12
Dpriya27-Jul-07 16:12 
AnswerRe: copy file to network folder Pin
Dpriya27-Jul-07 16:36
Dpriya27-Jul-07 16:36 
AnswerRe: copy file to network folder Pin
Christian Graus27-Jul-07 17:51
protectorChristian Graus27-Jul-07 17:51 
GeneralRe: copy file to network folder Pin
Dpriya29-Jul-07 8:46
Dpriya29-Jul-07 8:46 
QuestionHow to show images in the Datagrid Pin
Kurian_Kurian27-Jul-07 16:00
Kurian_Kurian27-Jul-07 16:00 
QuestionIIS gets Access Forbiden error [modified] Pin
beatles169227-Jul-07 12:19
beatles169227-Jul-07 12:19 
AnswerRe: IIS gets Access Forbiden error Pin
beatles169227-Jul-07 12:46
beatles169227-Jul-07 12:46 
AnswerRe: IIS gets Access Forbiden error Pin
Paul Conrad27-Jul-07 19:40
professionalPaul Conrad27-Jul-07 19:40 
Questionadding and removing table rows dynamically Pin
jojoStoneHead27-Jul-07 10:57
jojoStoneHead27-Jul-07 10:57 
AnswerRe: adding and removing table rows dynamically Pin
Christian Graus27-Jul-07 11:30
protectorChristian Graus27-Jul-07 11:30 
AnswerRe: adding and removing table rows dynamically Pin
jojoStoneHead27-Jul-07 13:38
jojoStoneHead27-Jul-07 13:38 
AnswerRe: adding and removing table rows dynamically Pin
Imran Khan Pathan27-Jul-07 23:24
Imran Khan Pathan27-Jul-07 23:24 
QuestionAdding a username/ password to http-post in a console application Pin
rbreault27-Jul-07 10:39
rbreault27-Jul-07 10:39 
AnswerRe: Adding a username/ password to http-post in a console application Pin
Paul Conrad27-Jul-07 19:41
professionalPaul Conrad27-Jul-07 19:41 
GeneralRe: Adding a username/ password to http-post in a console application Pin
rbreault27-Jul-07 19:43
rbreault27-Jul-07 19:43 
GeneralRe: Adding a username/ password to http-post in a console application Pin
Paul Conrad27-Jul-07 19:49
professionalPaul Conrad27-Jul-07 19:49 

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.