Web page region: How can I do this?

  • Thread starter Thread starter Matthew Speed
  • Start date Start date
M

Matthew Speed

I apologize if this is a total newbie question:

I want to create a fairly simple web page with a select box navigator
at the top. The select control is set to AutoPostBack and the select
control has handler code that looks like:

Select Case drpNav.SelectedValue
Case "Home"
'code needed to show home.aspx
Case "Main"
'code needed to show main.aspx
Case "<additional case here>"
'etc...
End Select

I tried putting a server.execute("page.aspx") in the code part of the
Case but when I do that the executed page starts at the upper left so
my controls are on top of one another as though they are positioned
elements with differing z-index values.

What I would ideally lke to have is a region that sits right below the
select box that will receive the results of the execution of another
page. If that is hard then I just need the executed page to start
after the select control. Any suggestions would be greatly
appreciated.

TIA
 
Matthew,

Do just use the classic response.redirect("webpage") for it as most people
do.

I hope this helps?

Cor
 
Basically you have two options.

1.) Create a set of code ( with your Drop Down Stuff ) and 'Include it in
all pages'
2.) Set your master page to contain Frames, and redirect the response to the
content frame.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing
 
Matthew,

Do just use the classic response.redirect("webpage") for it as most people
do.

I hope this helps?

Cor
I really like the fact that when one uses AutoPostBack the select box
retains the selection from the previous page. If I do a redirect I
lose that. Any suggestions?
 
Matthew,

You mean by setting it in a session.item(Myselecteditem)

Cor
 
Matthew,

You mean by setting it in a session.item(Myselecteditem)

Cor

I hate to use a workaround like that when the capability is an out of
the box feature of VB.Net web programming. If I must I will but it
seems to me that I should be able to have it display a second web form
after the first.
 
Matthew,

The current version of ASPNET works only with one page at a time per client.

You can of use making things invisible on that to get the effect of more
pages, it will give you a kind of trash page when making, but gives you the
same effect as you are talking about..

Webpages (classes) are stateless, the program does standard not know
anything from a seperated page from a client when it is posted to the
client and not postedback yet.

I hope this helps?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top