Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

Include page ASP VB.net can't access function

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jonathan - 28 Feb 2008 23:32 GMT
Hi

I have a small top navigation bar that is an 'include page' on my other aspx
pages.

The nav bar is navbar.aspx and has a little bit of asp.net code embedded in
it that displays 'Logged in as: name'. The function in it, GetLoginName,
works fine when I preview the page in IE by itself. However, when I preview
index.aspx (the homepage) it comes back with a .Net error that:

'GetLoginName' is not declared.

I don't have Visual Studio, I am just using Frontpage.

Any thoughts appreciated.
Mark Fitzpatrick - 29 Feb 2008 00:56 GMT
This is not how ASP.Net works. That's the biggest problem to start with.

First, ASP.Net is event driven, which is very different then classic ASP
which is just interpreted and spit out to the browser at run time. ASP.Net
has a mechanism called User Controls (the .ascx files). These can be
embedded within an ASP.Net page. That may be more what you need. Take a look
a the ASP.Net quickstarts for information on creating and embedding user
Controls.
http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/userctrl/default.aspx

You also may want to check out Microsoft's Visual Web Developer Express.
It's free and works very nicely with ASP.Net. You can download the express
line of Visual Studio apps here: http://www.microsoft.com/express/

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression

> Hi
>
[quoted text clipped - 14 lines]
>
> Any thoughts appreciated.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.