Click here to Skip to main content
15,891,704 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Still problems with dropdownlist Pin
N a v a n e e t h21-Jun-07 3:34
N a v a n e e t h21-Jun-07 3:34 
GeneralRe: Still problems with dropdownlist Pin
matjame21-Jun-07 3:42
matjame21-Jun-07 3:42 
GeneralRe: Still problems with dropdownlist Pin
N a v a n e e t h21-Jun-07 4:02
N a v a n e e t h21-Jun-07 4:02 
GeneralRe: Still problems with dropdownlist Pin
matjame21-Jun-07 4:06
matjame21-Jun-07 4:06 
GeneralRe: Still problems with dropdownlist Pin
N a v a n e e t h21-Jun-07 4:09
N a v a n e e t h21-Jun-07 4:09 
GeneralRe: Still problems with dropdownlist Pin
matjame21-Jun-07 4:16
matjame21-Jun-07 4:16 
GeneralRe: Still problems with dropdownlist Pin
N a v a n e e t h21-Jun-07 4:17
N a v a n e e t h21-Jun-07 4:17 
GeneralRe: Still problems with dropdownlist Pin
matjame25-Jun-07 0:02
matjame25-Jun-07 0:02 
Ok, I managed to come up with this, now can anyone tell me where I went wrong coz when I run the page, i don get any values into the DropDown.

<%@ 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("C:\CFusionMX\wwwroot\Working Site\Home Pagecourses.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
%>







kagiso

QuestionBUG IN LOGGEDINTEMPLATE IN ASP.NET Pin
hifiger200421-Jun-07 3:16
hifiger200421-Jun-07 3:16 
Questionmails r going to spam. Pin
hkchauhan21-Jun-07 1:28
hkchauhan21-Jun-07 1:28 
AnswerRe: mails r going to spam. Pin
N a v a n e e t h21-Jun-07 3:11
N a v a n e e t h21-Jun-07 3:11 
GeneralRe: mails r going to spam. Pin
hkchauhan21-Jun-07 3:20
hkchauhan21-Jun-07 3:20 
GeneralRe: mails r going to spam. Pin
N a v a n e e t h21-Jun-07 3:27
N a v a n e e t h21-Jun-07 3:27 
Questionmozilla is not supporting Pin
hkchauhan21-Jun-07 1:25
hkchauhan21-Jun-07 1:25 
AnswerRe: mozilla is not supporting Pin
N a v a n e e t h21-Jun-07 3:23
N a v a n e e t h21-Jun-07 3:23 
AnswerRe: mozilla is not supporting Pin
Guffa21-Jun-07 3:49
Guffa21-Jun-07 3:49 
GeneralRe: mozilla is not supporting Pin
N a v a n e e t h21-Jun-07 4:03
N a v a n e e t h21-Jun-07 4:03 
AnswerRe: mozilla is not supporting Pin
Guffa21-Jun-07 4:13
Guffa21-Jun-07 4:13 
GeneralRe: mozilla is not supporting Pin
N a v a n e e t h21-Jun-07 4:18
N a v a n e e t h21-Jun-07 4:18 
QuestionMs Soap Toolkit 3.0 and complex data types. Pin
karanba21-Jun-07 0:18
karanba21-Jun-07 0:18 
QuestionHow do I avoid flickering images in my page? Pin
ErikZ20-Jun-07 23:01
ErikZ20-Jun-07 23:01 
AnswerRe: How do I avoid flickering images in my page? Pin
Christian Graus21-Jun-07 0:47
protectorChristian Graus21-Jun-07 0:47 
AnswerRe: How do I avoid flickering images in my page? Pin
Guffa21-Jun-07 3:58
Guffa21-Jun-07 3:58 
Questionimage onclick event is not working Pin
Shoaib Hussain20-Jun-07 23:00
Shoaib Hussain20-Jun-07 23:00 
QuestionReg:Component Pin
princy_cute20-Jun-07 22:49
princy_cute20-Jun-07 22: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.