Click here to Skip to main content
16,005,138 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Confusing Code Execution Pin
Dave Kreskowiak12-Jul-07 5:36
mveDave Kreskowiak12-Jul-07 5:36 
GeneralRe: Confusing Code Execution Pin
DeltaWind12-Jul-07 5:47
DeltaWind12-Jul-07 5:47 
AnswerRe: Confusing Code Execution Pin
DeltaWind12-Jul-07 5:46
DeltaWind12-Jul-07 5:46 
QuestionDragDrop certain file types only Pin
penguin500012-Jul-07 3:26
penguin500012-Jul-07 3:26 
AnswerRe: DragDrop certain file types only Pin
Craster12-Jul-07 3:58
Craster12-Jul-07 3:58 
QuestionLoad a dreamweaver in VB.NET Pin
matjame12-Jul-07 2:54
matjame12-Jul-07 2:54 
AnswerRe: Load a dreamweaver in VB.NET Pin
originSH12-Jul-07 3:11
originSH12-Jul-07 3:11 
GeneralRe: Load a dreamweaver in VB.NET Pin
matjame12-Jul-07 3:18
matjame12-Jul-07 3:18 
I have this code my friend, and its not working.I don have much time before the due date for my problem.I cant connect to the database.I cant do anything till I can connect to the database.

<%@ Language=VBScript %>
<%Option explicit
Dim oRs, conn, connect, strSQL

set conn=server.CreateObject ("adodb.connection")
connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("courses.mdb") & ";Persist Security Info=False"
conn.Open connect

%>


<title>Example combo box






The following was selected : <%=Request.Form ("courses")%>



<%
Set oRs=Server.CreateObject("adodb.recordset")
strSQL = "SELECT DISTINCT CourseName FROM tblCourses ORDER BY CourseName"
oRs.Open strSQL, conn

Do while not oRs.EOF
if Request.Form("courses") = oRs("CourseName") then 'if this is the selected one then display as selected
Response.Write ""
Response.Write oRs("CourseName") & ""
oRs.MoveNext
else
Response.Write ""
Response.Write oRs("CourseName") & ""
oRs.MoveNext
end if
loop
%>






If this small thing cant show database values, then Im mushed.If u got a dropdownlist project or sample I can use then please help me mate

kagiso

GeneralRe: Load a dreamweaver in VB.NET Pin
Christian Graus12-Jul-07 3:59
protectorChristian Graus12-Jul-07 3:59 
GeneralRe: Load a dreamweaver in VB.NET Pin
matjame12-Jul-07 4:04
matjame12-Jul-07 4:04 
Questionscrollbar coloring Pin
MartyK200712-Jul-07 2:47
MartyK200712-Jul-07 2:47 
AnswerRe: scrollbar coloring Pin
MartyK200713-Jul-07 2:09
MartyK200713-Jul-07 2:09 
Questionhashing problem still Pin
boyindie12-Jul-07 1:24
boyindie12-Jul-07 1:24 
AnswerRe: hashing problem still Pin
Dave Kreskowiak12-Jul-07 1:42
mveDave Kreskowiak12-Jul-07 1:42 
GeneralRe: hashing problem still Pin
boyindie12-Jul-07 1:46
boyindie12-Jul-07 1:46 
GeneralRe: hashing problem still Pin
Christian Graus12-Jul-07 1:47
protectorChristian Graus12-Jul-07 1:47 
GeneralRe: hashing problem still Pin
boyindie12-Jul-07 1:55
boyindie12-Jul-07 1:55 
GeneralRe: hashing problem still Pin
Christian Graus12-Jul-07 2:28
protectorChristian Graus12-Jul-07 2:28 
GeneralRe: hashing problem still Pin
boyindie12-Jul-07 1:53
boyindie12-Jul-07 1:53 
GeneralRe: hashing problem still Pin
Dave Kreskowiak12-Jul-07 3:41
mveDave Kreskowiak12-Jul-07 3:41 
GeneralRe: hashing problem still Pin
boyindie12-Jul-07 3:49
boyindie12-Jul-07 3:49 
QuestionInserting image from VB.net into sql server 2005 Pin
dalivb12-Jul-07 0:48
dalivb12-Jul-07 0:48 
AnswerRe: Inserting image from VB.net into sql server 2005 Pin
Dave Kreskowiak12-Jul-07 1:46
mveDave Kreskowiak12-Jul-07 1:46 
QuestionCould I get a Function Address in a Remote Process Pin
Billypon12-Jul-07 0:10
Billypon12-Jul-07 0:10 
AnswerRe: Could I get a Function Address in a Remote Process Pin
Dave Kreskowiak12-Jul-07 1:47
mveDave Kreskowiak12-Jul-07 1:47 

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.