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 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/


Reply via email to