Question about a button

  • Thread starter Thread starter Bart Schelkens
  • Start date Start date
B

Bart Schelkens

Hi,

I'm creating a website using VB.Net

This website consists of 2 frames.
FrameA has 2 textboxes and a button.
If you click the button if will perform a login.

FrameB displays a table with products.

If you have successfully logged in I want to display the page in frameB in
admin-mode. This means that the table is replaced with a datagrid and
textboxes and a save-button.

Now the problem is that I can't find a way to make this happen.
If I use response.redirect, the page is displayed as it should be but it is
displayed in the FrameA instead of in FrameB.

Is there a way for me to make this happen?
Thx in advance.
 
My suggestion would be to use tables instead of frames and set up a user
control with a property LoggedIn. If true, you show one thing, if not
another.

If you have to go with frames, you will have to set up a client side script
(JavaScript) that refreshes the menu frame. You can still use the user
control that checks logged in status, but the refresh will be done by a
client side action. The only other choice is to refresh the entire window,
which is overkill (still requires JavaScript).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
 
Back
Top