my observation up to this point tends to point towards "no"
What I'm trying to do is get the page in top portion of the frameset to check the value of a combo box, go into a database, fetch the appropriate file name based on what the user has chosen, and stick that filename into the src of the bottom frame, thus showing the file the user has chosen in the combo box in the top part.
I'm trying to do it like this:
dim strIssueDate
dim strIssueFileName
strIssueDate = Request.Form ("lstIssueDate"
' This comes from the top half of the frame
dim cnConnect
dim rsInsight
dim strSQL
Set cnConnect = server.CreateObject("ADODB.Connection"
cnConnect.Open Application("DatabaseConnect"
strSQL="SELECT tblInsight.InsightDate, tblInsight.InsightFileName "
strSQL = strSQL & "FROM tblInsight "
strSQL = strSQL & "WHERE Insight.InsightDate =#" & strIssueDate & "#;"
Set rsInsight = server.CreateObject ("ADODB.Recordset"
rsInsight.Open strSQL, cnConnect
strIssueFileName=rsInsight("InsightFileName"
%>
<frameset rows="175,*" frameborder="NO" border="0" framespacing="0">
<frame name="topFrame" scrolling="NO" noresize src="InsightTopNav.asp" >
<frame name="mainFrame" src="<% =strIssueFileName %>">
</frameset>
<% 'rsInsight.Close %>
<noframes><body bgcolor="#FFFFFF">
</body></noframes>
</html>
The problem seems to be that strIssueDate keeps coming up empty causing my SQL to blow up. I don't think the frameset is evaluating the request.form("lstIssueDate"
statemnt. I also tried using a querystring, and that did'nt work either. I further observe that if you put a manual date entry in place of my variable strIssueDate, it seems to work.
Can someone confirm or refute my hypothesis? or tell me what I'm doing wrong- maybe I need to be using javascript???
Ah say, there's somethin' a little "eeeeeeee" 'bout a boy who don't like basbawl...
What I'm trying to do is get the page in top portion of the frameset to check the value of a combo box, go into a database, fetch the appropriate file name based on what the user has chosen, and stick that filename into the src of the bottom frame, thus showing the file the user has chosen in the combo box in the top part.
I'm trying to do it like this:
dim strIssueDate
dim strIssueFileName
strIssueDate = Request.Form ("lstIssueDate"
dim cnConnect
dim rsInsight
dim strSQL
Set cnConnect = server.CreateObject("ADODB.Connection"
cnConnect.Open Application("DatabaseConnect"
strSQL="SELECT tblInsight.InsightDate, tblInsight.InsightFileName "
strSQL = strSQL & "FROM tblInsight "
strSQL = strSQL & "WHERE Insight.InsightDate =#" & strIssueDate & "#;"
Set rsInsight = server.CreateObject ("ADODB.Recordset"
rsInsight.Open strSQL, cnConnect
strIssueFileName=rsInsight("InsightFileName"
%>
<frameset rows="175,*" frameborder="NO" border="0" framespacing="0">
<frame name="topFrame" scrolling="NO" noresize src="InsightTopNav.asp" >
<frame name="mainFrame" src="<% =strIssueFileName %>">
</frameset>
<% 'rsInsight.Close %>
<noframes><body bgcolor="#FFFFFF">
</body></noframes>
</html>
The problem seems to be that strIssueDate keeps coming up empty causing my SQL to blow up. I don't think the frameset is evaluating the request.form("lstIssueDate"
Can someone confirm or refute my hypothesis? or tell me what I'm doing wrong- maybe I need to be using javascript???
Ah say, there's somethin' a little "eeeeeeee" 'bout a boy who don't like basbawl...