Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No Data Being Shown

Status
Not open for further replies.

Jatherton99

IS-IT--Management
Jun 13, 2002
2
US
I can create a project, then a data connection and then a data command. I can see the tables and data so I know that I am connecting to the database. I can add recordsets and fields the like from the database. The problem is when I try to view the page in my browser it comes up with the text boxes empty. The record navagation buttons are visible but nothing else.

I am testing on a machine running Win2K with IIS5.0 and Visual InterDev 6.0. Attempted both SQL and Access databases. Please help. Newbie banging his head against the wall!
 
Can you post us a example of the code you are using. Even if it's just a shortened version. Then we can see if maybe we can find something in the code that you are missing. The money's gone, the brain is shot.....but the liquor we still got.
 
<html>
<head>
<meta NAME=&quot;GENERATOR&quot; Content=&quot;Microsoft Visual Studio 6.0&quot;>
<title></title>

<link REL=&quot;stylesheet&quot; TYPE=&quot;text/css&quot; HREF=&quot;_Themes/auto/THEME.CSS&quot; VI6.0THEME=&quot;Automotive&quot;>
<link REL=&quot;stylesheet&quot; TYPE=&quot;text/css&quot; HREF=&quot;_Themes/auto/GRAPH0.CSS&quot; VI6.0THEME=&quot;Automotive&quot;>
<link REL=&quot;stylesheet&quot; TYPE=&quot;text/css&quot; HREF=&quot;_Themes/auto/COLOR0.CSS&quot; VI6.0THEME=&quot;Automotive&quot;>
<link REL=&quot;stylesheet&quot; TYPE=&quot;text/css&quot; HREF=&quot;_Themes/auto/CUSTOM.CSS&quot; VI6.0THEME=&quot;Automotive&quot;></head>
<body>
<!--METADATA TYPE=&quot;DesignerControl&quot; startspan
<OBJECT classid=&quot;clsid:1F56DB70-9821-11D1-B7B7-00C04FD6564F&quot;>

</OBJECT>
-->
<!-- Begin Layout Header -->

<!--METADATA TYPE=&quot;DesignerControl&quot; endspan-->
<table border=&quot;0&quot; width=&quot;100%&quot; height=&quot;100%&quot;>
<tr>
<td rowspan=&quot;2&quot; width=&quot;120&quot; valign=&quot;top&quot;>
<!--METADATA TYPE=&quot;DesignerControl&quot; startspan
<OBJECT classid=&quot;clsid:705396F5-3471-11D1-B693-006097C9A884&quot;>
<PARAM NAME=&quot;Type&quot; VALUE=&quot;5&quot;>
<PARAM NAME=&quot;IncludeHome&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;IncludeParent&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;Appearance&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;Orientation&quot; VALUE=&quot;1&quot;>
<PARAM NAME=&quot;UseTable&quot; VALUE=&quot;1&quot;>
<PARAM NAME=&quot;UseTheme&quot; VALUE=&quot;1&quot;>
<PARAM NAME=&quot;HTMLFragment&quot; VALUE=&quot;&quot;>
<PARAM NAME=&quot;CurrentHTMLFragment&quot; VALUE=&quot;&quot;>
<PARAM NAME=&quot;UseObjectSyntax&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;ScriptLanguage&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;FrameTarget&quot; VALUE=&quot;&quot;>
<PARAM NAME=&quot;AlternatePage&quot; VALUE=&quot;&quot;>


</OBJECT>
-->

<!--METADATA TYPE=&quot;NavBar&quot; endspan-->
<!--webbot bot=&quot;vinavbar&quot; tag=&quot;table&quot; s-type=&quot;children&quot; b-include-home=&quot;false&quot; b-include-up=&quot;false&quot; s-orientation=&quot;vertical&quot; s-rendering=&quot;graphics&quot; b-use-table=&quot;true&quot; b-use-theme=&quot;true&quot; s-script-lang=&quot;VBScript&quot; b-use-object-syntax=&quot;false&quot; u-page s-target s-html-fragment=&quot; &quot; s-selected-html-fragment startspan --><!--webbot bot=&quot;vinavbar&quot; endspan i-checksum=&quot;0&quot; -->
<!--METADATA TYPE=&quot;NavBar&quot; startspan-->

<!--METADATA TYPE=&quot;DesignerControl&quot; endspan-->
</td>
<td height=&quot;40&quot; valign=&quot;top&quot;>
<!--METADATA TYPE=&quot;DesignerControl&quot; startspan
<OBJECT classid=&quot;clsid:705396F5-3471-11D1-B693-006097C9A884&quot;>
<PARAM NAME=&quot;Type&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;IncludeHome&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;IncludeParent&quot; VALUE=&quot;1&quot;>
<PARAM NAME=&quot;Appearance&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;Orientation&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;UseTable&quot; VALUE=&quot;1&quot;>
<PARAM NAME=&quot;UseTheme&quot; VALUE=&quot;1&quot;>
<PARAM NAME=&quot;HTMLFragment&quot; VALUE=&quot;&quot;>
<PARAM NAME=&quot;CurrentHTMLFragment&quot; VALUE=&quot;&quot;>
<PARAM NAME=&quot;UseObjectSyntax&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;ScriptLanguage&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;FrameTarget&quot; VALUE=&quot;&quot;>
<PARAM NAME=&quot;AlternatePage&quot; VALUE=&quot;&quot;>


</OBJECT>
-->

<!--METADATA TYPE=&quot;NavBar&quot; endspan-->
<!--webbot bot=&quot;vinavbar&quot; tag=&quot;table&quot; s-type=&quot;global&quot; b-include-home=&quot;false&quot; b-include-up=&quot;true&quot; s-orientation=&quot;horizontal&quot; s-rendering=&quot;graphics&quot; b-use-table=&quot;true&quot; b-use-theme=&quot;true&quot; s-script-lang=&quot;VBScript&quot; b-use-object-syntax=&quot;false&quot; u-page s-target s-html-fragment=&quot; &quot; s-selected-html-fragment startspan --><!--webbot bot=&quot;vinavbar&quot; endspan i-checksum=&quot;0&quot; -->
<!--METADATA TYPE=&quot;NavBar&quot; startspan-->

<!--METADATA TYPE=&quot;DesignerControl&quot; endspan-->
</td>
</tr>
<tr>
<td width=&quot;100%&quot; valign=&quot;top&quot;><!-- VI6.0LAYOUT = &quot;Top and Left 1&quot;-->
<!--METADATA TYPE=&quot;DesignerControl&quot; startspan
<OBJECT classid=&quot;clsid:1F56DB71-9821-11D1-B7B7-00C04FD6564F&quot; VIEWASTEXT>

</OBJECT>
-->
<!-- End Layout Header -->

<!--METADATA TYPE=&quot;DesignerControl&quot; endspan-->

<p>
<!--METADATA TYPE=&quot;DesignerControl&quot; startspan
<OBJECT id=Recordset1 style=&quot;TOP: 0px&quot;
classid=clsid:9CF5D7C2-EC10-11D0-9862-0000F8027CA0><PARAM NAME=&quot;ExtentX&quot; VALUE=&quot;12086&quot;><PARAM NAME=&quot;ExtentY&quot; VALUE=&quot;1799&quot;><PARAM NAME=&quot;State&quot; VALUE=&quot;(TCConn=\qwrox\q,TCDBObject=\qDE\sCommands\q,TCDBObjectName=\qproducts\q,TCControlID_Unmatched=\qRecordset1\q,TCPPConn=\qwrox\q,RCDBObject=\qRCDBObject\q,TCPPDBObject=\qDE\sCommands\q,TCPPDBObjectName=\qproducts\q,TCCursorType=\q3\s-\sStatic\q,TCCursorLocation=\q3\s-\sUse\sclient-side\scursors\q,TCLockType=\q3\s-\sOptimistic\q,TCCacheSize_Unmatched=\q100\q,TCCommTimeout_Unmatched=\q30\q,CCPrepared=0,CCAllRecords=1,TCNRecords_Unmatched=\q10\q,TCODBCSyntax_Unmatched=\q\q,TCHTargetPlatform=\q\q,TCHTargetBrowser_Unmatched=\qClient\s(IE\s4.0\sDHTML)\q,TCTargetPlatform=\qInherit\sfrom\spage\q,RCCache=\qRCBookPage\q,CCOpen=1,GCParameters=(Rows=0))&quot;></OBJECT>
-->
<SCRIPT LANGUAGE=&quot;JavaScript&quot; src=&quot;_ScriptLibrary/EventMgr.HTM&quot;></SCRIPT>
<SCRIPT LANGUAGE=&quot;JavaScript&quot; src=&quot;_ScriptLibrary/Recordset.HTM&quot;></SCRIPT>
<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
function _initRecordset1()
{
Recordset1.setRecordSource('Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Northwind;Data Source=JATHERTON;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=JATHERTON;Use Encryption for Data=False;Tag with column collation when possible=False', 'SELECT Products.* FROM Products');
Recordset1.open();

}
CreateRecordset('Recordset1', _initRecordset1, null);
</SCRIPT>

<!--METADATA TYPE=&quot;DesignerControl&quot; endspan-->
</p>
<p>ProductName
<!--METADATA TYPE=&quot;DesignerControl&quot; startspan
<OBJECT id=Textbox1 classid=clsid:B5F0E469-DC5F-11D0-9846-0000F8027CA0><PARAM NAME=&quot;_ExtentX&quot; VALUE=&quot;2963&quot;><PARAM NAME=&quot;_ExtentY&quot; VALUE=&quot;508&quot;><PARAM NAME=&quot;id&quot; VALUE=&quot;Textbox1&quot;><PARAM NAME=&quot;ControlType&quot; VALUE=&quot;0&quot;><PARAM NAME=&quot;Lines&quot; VALUE=&quot;3&quot;><PARAM NAME=&quot;DataSource&quot; VALUE=&quot;Recordset1&quot;><PARAM NAME=&quot;DataField&quot; VALUE=&quot;ProductName&quot;><PARAM NAME=&quot;Enabled&quot; VALUE=&quot;-1&quot;><PARAM NAME=&quot;Visible&quot; VALUE=&quot;-1&quot;><PARAM NAME=&quot;MaxChars&quot; VALUE=&quot;40&quot;><PARAM NAME=&quot;DisplayWidth&quot; VALUE=&quot;20&quot;><PARAM NAME=&quot;Platform&quot; VALUE=&quot;1&quot;><PARAM NAME=&quot;LocalPath&quot; VALUE=&quot;&quot;></OBJECT>
-->
<script language=&quot;JavaScript&quot; src=&quot;_ScriptLibrary/TextBox.HTM&quot;></script>
<SCRIPT LANGUAGE=JavaScript>
function _initTextbox1()
{
Textbox1.setStyle(TXT_TEXTBOX);
Textbox1.setDataSource(Recordset1);
Textbox1.setDataField('ProductName');
Textbox1.setMaxLength(40);
Textbox1.setColumnCount(20);
}
CreateTextbox('Textbox1', _initTextbox1, null);
</script>

<!--METADATA TYPE=&quot;DesignerControl&quot; endspan-->
</p>
<p>QuantityPerUnit
<!--METADATA TYPE=&quot;DesignerControl&quot; startspan
<OBJECT id=Textbox2 classid=clsid:B5F0E469-DC5F-11D0-9846-0000F8027CA0><PARAM NAME=&quot;_ExtentX&quot; VALUE=&quot;2963&quot;><PARAM NAME=&quot;_ExtentY&quot; VALUE=&quot;508&quot;><PARAM NAME=&quot;id&quot; VALUE=&quot;Textbox2&quot;><PARAM NAME=&quot;ControlType&quot; VALUE=&quot;0&quot;><PARAM NAME=&quot;Lines&quot; VALUE=&quot;3&quot;><PARAM NAME=&quot;DataSource&quot; VALUE=&quot;Recordset1&quot;><PARAM NAME=&quot;DataField&quot; VALUE=&quot;QuantityPerUnit&quot;><PARAM NAME=&quot;Enabled&quot; VALUE=&quot;-1&quot;><PARAM NAME=&quot;Visible&quot; VALUE=&quot;-1&quot;><PARAM NAME=&quot;MaxChars&quot; VALUE=&quot;20&quot;><PARAM NAME=&quot;DisplayWidth&quot; VALUE=&quot;20&quot;><PARAM NAME=&quot;Platform&quot; VALUE=&quot;1&quot;><PARAM NAME=&quot;LocalPath&quot; VALUE=&quot;&quot;></OBJECT>
-->
<SCRIPT LANGUAGE=JavaScript>
function _initTextbox2()
{
Textbox2.setStyle(TXT_TEXTBOX);
Textbox2.setDataSource(Recordset1);
Textbox2.setDataField('QuantityPerUnit');
Textbox2.setMaxLength(20);
Textbox2.setColumnCount(20);
}
CreateTextbox('Textbox2', _initTextbox2, null);
</script>

<!--METADATA TYPE=&quot;DesignerControl&quot; endspan-->
</p>
<p>UnitPrice
<!--METADATA TYPE=&quot;DesignerControl&quot; startspan
<OBJECT id=Textbox3 classid=clsid:B5F0E469-DC5F-11D0-9846-0000F8027CA0><PARAM NAME=&quot;_ExtentX&quot; VALUE=&quot;2963&quot;><PARAM NAME=&quot;_ExtentY&quot; VALUE=&quot;508&quot;><PARAM NAME=&quot;id&quot; VALUE=&quot;Textbox3&quot;><PARAM NAME=&quot;ControlType&quot; VALUE=&quot;0&quot;><PARAM NAME=&quot;Lines&quot; VALUE=&quot;3&quot;><PARAM NAME=&quot;DataSource&quot; VALUE=&quot;Recordset1&quot;><PARAM NAME=&quot;DataField&quot; VALUE=&quot;UnitPrice&quot;><PARAM NAME=&quot;Enabled&quot; VALUE=&quot;-1&quot;><PARAM NAME=&quot;Visible&quot; VALUE=&quot;-1&quot;><PARAM NAME=&quot;MaxChars&quot; VALUE=&quot;19&quot;><PARAM NAME=&quot;DisplayWidth&quot; VALUE=&quot;20&quot;><PARAM NAME=&quot;Platform&quot; VALUE=&quot;1&quot;><PARAM NAME=&quot;LocalPath&quot; VALUE=&quot;&quot;></OBJECT>
-->
<SCRIPT LANGUAGE=JavaScript>
function _initTextbox3()
{
Textbox3.setStyle(TXT_TEXTBOX);
Textbox3.setDataSource(Recordset1);
Textbox3.setDataField('UnitPrice');
Textbox3.setMaxLength(19);
Textbox3.setColumnCount(20);
}
CreateTextbox('Textbox3', _initTextbox3, null);
</script>

<!--METADATA TYPE=&quot;DesignerControl&quot; endspan-->
</p>
<p>
<!--METADATA TYPE=&quot;DesignerControl&quot; startspan
<OBJECT id=RecordsetNavbar1
classid=clsid:58F3D268-FEDF-11D0-9C7F-0060081840F3><PARAM NAME=&quot;_ExtentX&quot; VALUE=&quot;3852&quot;><PARAM NAME=&quot;_ExtentY&quot; VALUE=&quot;699&quot;><PARAM NAME=&quot;id&quot; VALUE=&quot;RecordsetNavbar1&quot;><PARAM NAME=&quot;Platform&quot; VALUE=&quot;1&quot;><PARAM NAME=&quot;DataSource&quot; VALUE=&quot;Recordset1&quot;><PARAM NAME=&quot;UpdateOnMove&quot; VALUE=&quot;0&quot;><PARAM NAME=&quot;FirstCaption&quot; VALUE=&quot; |< &quot;><PARAM NAME=&quot;MoveFirst&quot; VALUE=&quot;-1&quot;><PARAM NAME=&quot;FirstImage&quot; VALUE=&quot;0&quot;><PARAM NAME=&quot;PrevCaption&quot; VALUE=&quot; < &quot;><PARAM NAME=&quot;MovePrev&quot; VALUE=&quot;-1&quot;><PARAM NAME=&quot;PrevImage&quot; VALUE=&quot;0&quot;><PARAM NAME=&quot;NextCaption&quot; VALUE=&quot; > &quot;><PARAM NAME=&quot;MoveNext&quot; VALUE=&quot;-1&quot;><PARAM NAME=&quot;NextImage&quot; VALUE=&quot;0&quot;><PARAM NAME=&quot;LastCaption&quot; VALUE=&quot; >| &quot;><PARAM NAME=&quot;MoveLast&quot; VALUE=&quot;-1&quot;><PARAM NAME=&quot;LastImage&quot; VALUE=&quot;0&quot;><PARAM NAME=&quot;Alignment&quot; VALUE=&quot;1&quot;><PARAM NAME=&quot;LocalPath&quot; VALUE=&quot;&quot;></OBJECT>
-->
<script language=&quot;JavaScript&quot; src=&quot;_ScriptLibrary/Button.HTM&quot;></script>
<script language=&quot;JavaScript&quot; src=&quot;_ScriptLibrary/RSNavBar.HTM&quot;></script>
<SCRIPT LANGUAGE=JavaScript>
function _initRecordsetNavbar1()
{
RecordsetNavbar1.setAlignment(1);
RecordsetNavbar1.setButtonStyles(170);
RecordsetNavbar1.updateOnMove = false;
RecordsetNavbar1.setDataSource(Recordset1);
RecordsetNavbar1.getButton(0).value = ' |< ';
RecordsetNavbar1.getButton(1).value = ' < ';
RecordsetNavbar1.getButton(2).value = ' > ';
RecordsetNavbar1.getButton(3).value = ' >| ';
}
CreateRecordsetNavbar('RecordsetNavbar1', _initRecordsetNavbar1, null);
</script>

<!--METADATA TYPE=&quot;DesignerControl&quot; endspan-->
</p>
<p>
<!--METADATA TYPE=&quot;DesignerControl&quot; startspan
<OBJECT classid=&quot;clsid:1F56DB72-9821-11D1-B7B7-00C04FD6564F&quot;>


</OBJECT>
-->
<!-- Begin Layout Footer -->

<!--METADATA TYPE=&quot;DesignerControl&quot; endspan-->
</p>
</td>
</tr>
</table>
<!--METADATA TYPE=&quot;DesignerControl&quot; startspan
<OBJECT classid=&quot;clsid:1F56DB73-9821-11D1-B7B7-00C04FD6564F&quot;>

</OBJECT>
-->
<!-- End Layout Footer -->

<!--METADATA TYPE=&quot;DesignerControl&quot; endspan-->
</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top