User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 402,398 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,892 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting

My first attempt at ASP.NET...

Join Date: Jul 2003
Location: Bamberg, Germany
Posts: 117
Reputation: Iron_Cross is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 2
Iron_Cross's Avatar
Iron_Cross Iron_Cross is offline Offline
Junior Poster

Re: My first attempt at ASP.NET...

  #2  
Aug 8th, 2004
Ok, well I'm assuming you know you're running your scripts on a .NET enabled server. Also, I'm assuming you're using your WebForm1.aspx.vb as your code behind page (which is loaded at the top of the *.aspx page. If this isn't the case, take off the .vb
I.e. don't type in a URL like http://www.somesite.com/someDir/somePage.aspx.vb it shouldn't have the .vb
As for the page load, there should be a method in your aspx file that's something like (forgive me if it's wrong because I don't have my docs to look at right now)
public void OnPage_Load(object sender, EventArgs e){
    if(Page.IsPostBack()){
        // do stuff if the page is posted back
    } else {
        // Do stuff only the first time the page loads
    }
    // do stuff no matter which time the page loads
}

That's all in C# but you should get the idea. Once I check my docs, I'll get back to you if it's wrong
elitehackers.info
Today's Penny-Arcade!
Pain is weakness leaving the body!
Reply With Quote  
All times are GMT -4. The time now is 1:27 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC