Results 1 to 6 of 6

Thread: How to...change button text?

  1. #1

    Thread Starter
    Hyperactive Member ARPRINCE's Avatar
    Join Date
    Mar 2003
    Location
    Pinoy in NJ
    Posts
    381

    How to...change button text?

    I have a LEFT and RIGHT frame. The left have buttons (i.e. LOGIN, HOME, etc.). When I click on the login button, I redirect my RIGHT frame to the login page (Login.aspx) for a user to get authenticated.

    If they are successful, how do I change the text of the login button (LEFT frame via Menu.aspx) to "LOGOUT" since my VB code is being called in from another page?

    Thanks.

  2. #2
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870
    frames frames frames, dreaded frames!!!

    I'd stop using frames now you're using asp.net. They were great for html but now they cause more problems than they solve.
    Any components that you would usually put into a frame you should use to build a custom web control and then add it to each page you build.

    Don't ask me how to build a custom web control though!!! I just know the theory!!

    Cheers
    Nick
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    a custom web control may be overboard, a web user control for each frame is probably what shoudl be used.

  4. #4
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870
    oooops that's what i meant
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

  5. #5

    Thread Starter
    Hyperactive Member ARPRINCE's Avatar
    Join Date
    Mar 2003
    Location
    Pinoy in NJ
    Posts
    381
    I have a "beginner level" with asp.net and have decided to remove the frame instead to facilitate good progress on my project.

    I'd probably look into a more "complicated" asp scripting when I have a better idea on how to handle things.

    Thanks both for your inputs.

  6. #6
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870
    hi again,

    i saw this article and it reminded me of you! It's in c# but shouldn't be a problem to translate.
    http://www.dotnetjohn.com/articles/articleid107.aspx

    hope it helps

    Nick
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width