Click here to Skip to main content
15,914,365 members
Home / Discussions / Web Development
   

Web Development

 
QuestionIs this a bug, or what? Pin
mysorian17-Jan-06 17:55
professionalmysorian17-Jan-06 17:55 
AnswerRe: Is this a bug, or what? Pin
xaphod18-Jan-06 12:55
xaphod18-Jan-06 12:55 
GeneralRe: Is this a bug, or what? Pin
mysorian18-Jan-06 17:04
professionalmysorian18-Jan-06 17:04 
GeneralRe: Is this a bug, or what? Pin
xaphod19-Jan-06 10:41
xaphod19-Jan-06 10:41 
GeneralRe: Is this a bug, or what? Pin
mysorian19-Jan-06 12:00
professionalmysorian19-Jan-06 12:00 
QuestionLast Modified At... Pin
sujith3117-Jan-06 17:42
sujith3117-Jan-06 17:42 
AnswerRe: Last Modified At... Pin
D. Ram Prabhu17-Jan-06 18:31
D. Ram Prabhu17-Jan-06 18:31 
QuestionNewbie asp question Pin
TAlvord17-Jan-06 11:51
TAlvord17-Jan-06 11:51 
I am trying to have a table loaded dynamically from a database when an HTML button is pressed. My code looks as follows:

In the section:
<%
Dim objConn
Dim connStr
Dim TableName1, TableName2
Dim strQuery
Dim rsMessage

Set objConn = Server.CreateObject("ADODB.Connection")
connStr ="PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" + Server.MapPath("combine.mdb")
objConn.Open(connStr)

TableName1 = "VCC Combine"
TableName2 = "San Jose Combine"

strQuery = "SELECT * FROM ["+TableName2+"]"

Set rsMessage = objConn.Execute(strQuery)
%>

Sub VCCCombine_Click()
strQuery = "SELECT * FROM ["+TableName1+"]"
End Sub
Sub SanJoseCombine_Click()
strQuery = "SELECT * FROM ["+TableName2+"]"
End Sub


In the BODY section:





In the TABLE section:
<% While Not rsMessage.EOF
Response.Write("")
%><%=(rsMessage.Fields.Item("Player").Value)%><%
Response.Write("")
%><%=(rsMessage.Fields.Item("School").Value)%><%
Response.Write("")
%><%=(rsMessage.Fields.Item("Position").Value)%><%
Response.Write("")
%><%=(rsMessage.Fields.Item("Height").Value)%><%
Response.Write("")
%><%=(rsMessage.Fields.Item("Weight").Value)%><%
Response.Write("")
%><%=(rsMessage.Fields.Item("Vertical Leap").Value)%><%
Response.Write("")
%><%=(rsMessage.Fields.Item("Bench Reps @ 185lbs").Value)%><%
Response.Write("")
%><%=(rsMessage.Fields.Item("Bench Reps @ 135lbs").Value)%><%
Response.Write("")
%><%=(rsMessage.Fields.Item("20-Yard Shuttle").Value)%><%
Response.Write("")
%><%=(rsMessage.Fields.Item("40-Yard Shuttle").Value)%><%
Response.Write("")
rsMessage.MoveNext
Wend
objConn.Close()
%>

If I don't add the buttons, the table gets loaded correctly. I really would like to have the Table change when the button is selected. Any ideas here would be appreciated...
AnswerRe: Newbie asp question Pin
Guffa17-Jan-06 12:35
Guffa17-Jan-06 12:35 
AnswerRe: Newbie asp question Pin
D. Ram Prabhu17-Jan-06 18:01
D. Ram Prabhu17-Jan-06 18:01 
Questionwhois database?? Pin
Small Rat17-Jan-06 8:48
Small Rat17-Jan-06 8:48 
QuestionVar from Cookie into a SQL query in ASPX Pin
evlxtc17-Jan-06 6:20
evlxtc17-Jan-06 6:20 
QuestionVBScript: in dialog windows box woes... :S Pin
kevingpo17-Jan-06 5:24
kevingpo17-Jan-06 5:24 
QuestionJavascript error callee on popup window Pin
stephmiddleton17-Jan-06 2:41
stephmiddleton17-Jan-06 2:41 
QuestionProblem in sending email using ASP Pin
Anaha17-Jan-06 0:59
Anaha17-Jan-06 0:59 
QuestionOrganised Directory Structure Pin
Brendan Vogt17-Jan-06 0:51
Brendan Vogt17-Jan-06 0:51 
Questionmethods used for implementing SPAM filter Pin
chippu16-Jan-06 17:51
chippu16-Jan-06 17:51 
AnswerRe: methods used for implementing SPAM filter Pin
Curtis Schlak.16-Jan-06 20:16
Curtis Schlak.16-Jan-06 20:16 
QuestionOpen IE if system idle for 5 minutes Pin
maneeshbakshi16-Jan-06 11:52
maneeshbakshi16-Jan-06 11:52 
QuestionI want to stop Marque effect on mouse move? Pin
vikas amin16-Jan-06 2:39
vikas amin16-Jan-06 2:39 
QuestionTo access client's directories through web application... Pin
Manjeet Singh0216-Jan-06 1:58
Manjeet Singh0216-Jan-06 1:58 
AnswerRe: To access client's directories through web application... Pin
Guffa16-Jan-06 2:18
Guffa16-Jan-06 2:18 
QuestionHow would you store a zip code in a database? Pin
MY120116-Jan-06 1:51
MY120116-Jan-06 1:51 
AnswerRe: How would you store a zip code in a database? Pin
Guffa16-Jan-06 2:25
Guffa16-Jan-06 2:25 
QuestionVisual Interdev problem. Pin
Prakash Nadar15-Jan-06 19:56
Prakash Nadar15-Jan-06 19:56 

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.