"Dennis Blondell" <*no spam*(E-Mail Removed)> wrote in message news:<voEqb.5409$(E-Mail Removed)>...
> > >Should I do that with any site that has and VB in
> > >asp.net?
> >
> > I'm not sure what you mean here.
>
> Page Properties
> "Design time control scripting"
> 'Platform:'
> 'Server:'
> 'Client:'
> also Site Settings
> "Default validation script language"
> 'Client:'
>
> Do I need to change any of these settings to 'VBScript' / Server ASP when
> creating a .net site and using VB as the page language? I thought this was
> mainly when using VB script in the pages and so FP would write in VB script
> itself when needed.
I don't believe any of the settings you mention affect ASP.NET pages.
Look, the following ASP.NET code open an Access database, runs a
SELECT statement, and displays the results in tabular form. You just
put this at the top of your Web page
<%@ Page Language="vb" Debug="true" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OleDb"%>
<script runat="server">
Public Sub Page_Load(sender as Object, e as EventArgs)
Dim conClsf As OleDbConnection
Dim cmdMbrs As OleDbCommand
Dim rdrMbrs As OleDbDataReader
conClsf = New OleDbConnection( _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & server.mappath("classified.mdb") & ";")
conClsf.Open ' Open database connection
cmdMbrs = New OleDbCommand( _
"select * from members order by memberid", _
conClsf) ' Create command object containing SQL statement.
rdrMbrs = cmdMbrs.ExecuteReader ' Use the command object to create a
' data reader
gridMbrs.DataSource = rdrMbrs ' Hook the datagrid to the
datareader.
gridMbrs.DataBind ' Dump the data from the data reader
' into the datagrid.
rdrMbrs.Close ' Cleanup
cmdMbrs.Dispose ' Cleanup
conClsf.Close ' Cleanup
End Sub
</script>
Then, in the body of the Web page, you add this code where you want
the output to appear.
<asp

ataGrid id="gridMbrs" runat="server" />
From here on, it's all refining SQL statements and formatting the
datagrid.
This stuff really isn't that tough. There's no reason to spend days
figuring how how FrontPage does it (which is, in essence, the same
way).
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*------------------------------------------------------*
|\----------------------------------------------------/|
|| Microsoft Office FrontPage 2003 Inside Out ||
|| Microsoft FrontPage Version 2002 Inside Out ||
|| Web Database Development Step by Step .NET Edition ||
|| Troubleshooting Microsoft FrontPage 2002 ||
|| Faster Smarter Beginning Programming ||
|| (All from Microsoft Press) ||
|/----------------------------------------------------\|
*------------------------------------------------------*