Sorry, ignore my last mail.. I didn't see the response given. I'm really getting in to asp.net; it is a great improvement over classic ASP, much easier and faster to do things and although there is a lot to learn it is obviosuly worth it, it seems much more logical and pwerful.
is good. :) > -----Original Message----- > From: Ben Joyce [mailto:ben@;babelfish.co.uk] > Sent: 10 November 2002 14:35 > To: dotnet > Subject: RE: asp.net newbie is curious... > > > Hmm, so the aspx file calls functions (Page_Load, etc) from the .vb > file? Much like includes work? > > > -----Original Message----- > > From: Paul Brinkley-Rogers [mailto:Paul@;TheSak.com] > > Sent: 08 November 2002 23:09 > > To: dotnet > > Subject: RE: asp.net newbie is curious... > > > > > > > > It is a physical file. If you are using VS.net, you'll want > to go with > > code-behind for everything. If not, you'll probably be doing > > it inline, > > although I still think code-behind is the way to go. With > code behind, > > you never have to have the actual code on the production website, > > because, as said above, it's a separate physical file. > > ______________________ > > Paul Brinkley-Rogers > > Web Developer > > The Sak > > [EMAIL PROTECTED] > > http://www.thesak.com > > > > > > > > -----Original Message----- > > From: Ben Joyce [mailto:ben@;babelfish.co.uk] > > Sent: Friday, November 08, 2002 2:59 PM > > To: dotnet > > Subject: RE: asp.net newbie is curious... > > > > Ahh, yeah... there is a .vb file 'inside' my .aspx file. I > > am assuming > > this isn't a physical file but a virtual one that contains all the > > server-side VB stuff for my script, or something like that anyway. > > > > You mention you haven't done much in-line coding, hmm, may > I ask then > > how do you build you pages? > > > > Cheers, > > > > .ben > > > > > -----Original Message----- > > > From: Black, John S. [mailto:John.S.Black@;twtelecom.com] > > > Sent: 08 November 2002 22:36 > > > To: dotnet > > > Subject: RE: asp.net newbie is curious... > > > > > > > > > > > > There is a button at the top of the Project Window that is > > > 2nd form the > > > right (I think) which will 'Show all Files'. If you > click that you > > > should see a + appear next to your WebForm.aspx page. The > > > Inherits line > > > is just the name of the project/solution the file is a part > > of so that > > > shouldn't cause any problems. Haven't done much in-line > > coding so am > > > not really familiar with the 'Language' property and why it > > would work > > > without it but not work with it. > > > > > > Good Luck > > > > > > -----Original Message----- > > > From: Ben Joyce [mailto:ben@;babelfish.co.uk] > > > Sent: Friday, November 08, 2002 3:32 PM > > > To: dotnet > > > Subject: RE: asp.net newbie is curious... > > > > > > > > > Hi John. Thanks for the quick response. > > > > > > I tried changing the case but it just stopped working > > (without error) > > > again so I've removed the directive. > > > > > > I have a suspicion it might be something to do with these bits: > > > > > > Codebehind="WebForm1.aspx.vb" > > > Inherits="WebApplication3.WebForm1" > > > > > > I can't see any .aspx.vb files in the project explorer, I'm > > not really > > > sure what all these references are for. It's all quite > > overwhelming! > > > > > > Cheers, > > > > > > .b > > > > > > > -----Original Message----- > > > > From: Black, John S. [mailto:John.S.Black@;twtelecom.com] > > > > Sent: 08 November 2002 22:20 > > > > To: dotnet > > > > Subject: RE: asp.net newbie is curious... > > > > > > > > > > > > > > > > Try using VB instead of vb, I believe it is case > > sensitive. Also, > > > > pretty sure VB is the default language so I don't think > > you need to > > > > qualify it with a Page directive. > > > > > > > > John > > > > > > > > -----Original Message----- > > > > From: Ben Joyce [mailto:ben@;babelfish.co.uk] > > > > Sent: Friday, November 08, 2002 3:15 PM > > > > To: dotnet > > > > Subject: asp.net newbie is curious... > > > > > > > > > > > > hi all. > > > > > > > > well, I have finally sorted out my workstation and have > > > > vs.net installed > > > > and working. > > > > > > > > I have the Wrox Press book "Professional ASP.NET" (released > > > > around Beta > > > > 2) and am just starting to have a go at connecting to > > > > datasources, etc. > > > > > > > > I'm a bit baffled :) > > > > > > > > When I created a new page I got the following at the top: > > > > > > > > ----- 8< ----- > > > > <%@ Page Language="vb" AutoEventWireup="false" > > > > Codebehind="WebForm1.aspx.vb" > > Inherits="WebApplication3.WebForm1"%> > > > > ----- >8 ----- > > > > > > > > I used the same page and wrote some of the example code in, > > > > as follows: > > > > > > > > ----- 8< ----- > > > > <%@Import Namespace="System.Data" %> > > > > <%@Import Namespace="System.Data.SqlClient" %> > > > > > > > > <html> > > > > > > > > <head> > > > > <script language="vb" runat="server"> > > > > > > > > sub Page_Load(source as object, e as eventargs) > > > > > > > > dim myConnection as SQLConnection > > > > dim myCommand as SQLCommand > > > > dim myReader as SQLDataReader > > > > dim SQL as string > > > > dim ConnStr as string > > > > > > > > SQL = "SELECT * FROM Shippers" > > > > ConnStr = > > > "server=capsicum;uid=sa;pwd=;database=Northwind;" > > > > > > > > myConnection = New > SQLConnection(ConnStr) > > > > myConnection.Open() > > > > > > > > myCommand = New SQLCommand(SQL, > myConnection) > > > > myReader = myCommand.ExecuteReader() > > > > > > > > Shippers.DataSource = myReader > > > > Shippers.Databind() > > > > > > > > MyLabel.Text = > myConnection.ConnectionString > > > > > > > > end sub > > > > > > > > </script> > > > > </head> > > > > > > > > <form runat="server"> > > > > > > > > <asp:DropDownList id="Shippers" name="Shippers" > > > > DataTextField="CompanyName" DataValueField="ShipperID" > > > runat="server" > > > > /> > > > > <asp:Label id="MyLabel" runat="server" /> > > > > > > > > </form> > > > > </html> > > > > ----- >8 ----- > > > > > > > > What I want to know is why the page wont run with the <%@ Page > > > > Language="vb" ... %> code in there, but runs fine if I > > take it out. > > > > > > > > Any ideas? > > > > > > > > Also, I am an experienced Classic ASP developer (5+ > > years) but I'm > > > > slightly thrown by the .NET stuff. Would anyone have any > > > advice for > > > > me, things to watch out for, etc, or any good tutorial sites? > > > > > > > > Much appreciated. > > > > > > > > .ben > > > > > > > > -- > > > > ben joyce // [EMAIL PROTECTED] // +44 (0)7958 933718 // > > > > http://www.babelfish.co.uk > > > > > > > > > > > > --- > > > > You are currently subscribed to dotnet as: > > > > [EMAIL PROTECTED] To > > > > unsubscribe send a blank email to > > > > %%email.unsub%% > > > > > > > > --------- > > > > Administrated by 15 Seconds : http://www.15Seconds.com > > > > List Archives/Search : http://local.15Seconds.com/search > > > Subscription > > > > Information : http://www.15seconds.com/listserv.htm > > > > Advertising Information: http://www.internet.com/mediakit/ > > > > > > > > > > > > > > > > The content contained in this electronic message is not > > intended to > > > > constitute formation of a contract binding TWTC. TWTC will be > > > > contractually bound only upon execution, by an authorized > > > officer, of > > > > a contract including agreed terms and conditions or by express > > > > application of its tariffs. > > > > > > > > This message is intended only for the use of the individual > > > or entity > > > > to which it is addressed. If the reader of this message > > is not the > > > > intended recipient, or the employee or agent responsible for > > > > delivering the message to the intended recipient, you > are hereby > > > > notified that any dissemination, distribution or > copying of this > > > > message is strictly prohibited. If you have received this > > > > communication in error, please notify us immediately by > > replying to > > > > the sender of this E-Mail or by telephone. > > > > > > > > --- > > > > You are currently subscribed to dotnet as: > [EMAIL PROTECTED] To > > > > unsubscribe send a blank email to %%email.unsub%% > > > > > > > > --------- > > > > Administrated by 15 Seconds : http://www.15Seconds.com > > > > List Archives/Search : http://local.15Seconds.com/search > > > Subscription > > > > Information : http://www.15seconds.com/listserv.htm > > > > Advertising Information: http://www.internet.com/mediakit/ > > > > > > > > > > > > > > > > > --- > > > You are currently subscribed to dotnet as: > > > [EMAIL PROTECTED] To > > > unsubscribe send a blank email to > > > %%email.unsub%% > > > > > > --------- > > > Administrated by 15 Seconds : http://www.15Seconds.com > > > List Archives/Search : http://local.15Seconds.com/search > > Subscription > > > Information : http://www.15seconds.com/listserv.htm > > > Advertising Information: http://www.internet.com/mediakit/ > > > > > > > > > > > > The content contained in this electronic message is not > intended to > > > constitute formation of a contract binding TWTC. TWTC will be > > > contractually bound only upon execution, by an authorized > > officer, of > > > a contract including agreed terms and conditions or by express > > > application of its tariffs. > > > > > > This message is intended only for the use of the individual > > or entity > > > to which it is addressed. If the reader of this message is not the > > > intended recipient, or the employee or agent responsible for > > > delivering the message to the intended recipient, you are hereby > > > notified that any dissemination, distribution or copying of this > > > message is strictly prohibited. If you have received this > > > communication in error, please notify us immediately by > replying to > > > the sender of this E-Mail or by telephone. > > > > > > --- > > > You are currently subscribed to dotnet as: [EMAIL PROTECTED] > > > To unsubscribe send a blank email to > > > %%email.unsub%% > > > > > > --------- > > > Administrated by 15 Seconds : http://www.15Seconds.com > > > List Archives/Search : http://local.15Seconds.com/search > > > Subscription Information : http://www.15seconds.com/listserv.htm > > > Advertising Information: http://www.internet.com/mediakit/ > > > > > > > > > > > > --- > > You are currently subscribed to dotnet as: [EMAIL PROTECTED] > > To unsubscribe send a blank email to > > %%email.unsub%% > > > > --------- > > Administrated by 15 Seconds : http://www.15Seconds.com > > List Archives/Search : http://local.15Seconds.com/search > > Subscription Information : http://www.15seconds.com/listserv.htm > > Advertising Information: http://www.internet.com/mediakit/ > > > > > > > > --- > > You are currently subscribed to dotnet as: [EMAIL PROTECTED] > > To unsubscribe send a blank email to > > %%email.unsub%% > > > > --------- > > Administrated by 15 Seconds : http://www.15Seconds.com > > List Archives/Search : http://local.15Seconds.com/search > > Subscription Information : http://www.15seconds.com/listserv.htm > > Advertising Information: http://www.internet.com/mediakit/ > > > > > > > --- > You are currently subscribed to dotnet as: [EMAIL PROTECTED] > To unsubscribe send a blank email to > %%email.unsub%% > > --------- > Administrated by 15 Seconds : http://www.15Seconds.com > List Archives/Search : http://local.15Seconds.com/search > Subscription Information : http://www.15seconds.com/listserv.htm > Advertising Information: http://www.internet.com/mediakit/ > > --- You are currently subscribed to dotnet as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] --------- Administrated by 15 Seconds : http://www.15Seconds.com List Archives/Search : http://local.15Seconds.com/search Subscription Information : http://www.15seconds.com/listserv.htm Advertising Information: http://www.internet.com/mediakit/
