473,394 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Coice of pages to load

Can anyone tell me how to do this I am very new and
experimenting with asp.net using vb I want to have to
different buttons that load and pass data to different
pages depending on the button pushed. I tried to use two
forms but asp.net will only allow one form per page. Is
there anyway to do this?

Nov 18 '05 #1
2 1019
I'd use 5 buttons, same form. In each button's click event handler, I'd put
the following:

'Execute button specific code in place of this
Response.Redirect
("button_specific_page_goes_here.aspx?button_speci fic_query_params_go_here")

Unless you purposely dork around with things, asp.net forms always post back
to themselves, so it's up to you to do page redirection in the events where
necessary.

I was minding my own business when Smoothice blurted out:
Can anyone tell me how to do this I am very new and
experimenting with asp.net using vb I want to have to
different buttons that load and pass data to different
pages depending on the button pushed. I tried to use two
forms but asp.net will only allow one form per page. Is
there anyway to do this?


--
Insert corny line here
Nov 18 '05 #2
Smoothice,

Another option, depending on how many "pages" you need to display is to use
panels.

Place each individual "page's" content into separate panels dropped onto the
single page. Set each panel's visiblity to False. Then when the button is
clicked set the panel's visiblity to true.

This is probably the easiest way to give the same effect as having multiple
pages. Plus there is the added benefit that every "page's" data is available
at all times.

It works great if you just need to display three or four different pages. If
you need to have more than that then Response.Redirect is probably a better
way to go.

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Smoothice" <an*******@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...
Can anyone tell me how to do this I am very new and
experimenting with asp.net using vb I want to have to
different buttons that load and pass data to different
pages depending on the button pushed. I tried to use two
forms but asp.net will only allow one form per page. Is
there anyway to do this?

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Revenge | last post by:
hi all, i've a JBuilder project with some packages and some jsp pages using these packages. When i try to build the project , there aren't errors or warnings but the jsp pages are not built...
4
by: Jerry | last post by:
I recently upgraded my PC from Windows XP Home to XP Professional, so that I can use XP Pro's build in IIS functionality to build ASP pages off of my home PC. I have installed IIS 5.1, configured...
7
by: PaulThomas | last post by:
I am fighting with XP-Pro and VS.Net trying to allow some of the pages in my application to be accessable by 'all' I am using <authentication mode="Forms" /> and if I Login - everything works...
5
by: Olaf Gschweng | last post by:
We're new into DB2 and have some problem with DB2 8.1 (?) on a Linux system. We load some big tables of a DB2 database from files every day. We do a "DELETE FROM table" for each table and then we...
21
by: matvdl | last post by:
I have a system that was originally developed in asp - the pages are saved in SQL (there are over 10,000 pages) and saved to a temp directory in the server when requested by a client. I have...
1
by: Carl Gilbert | last post by:
Hi I am trying to get a site working with some 1&1 web space. I have the MS Business Pro account which has ASP.NET Support and SQL Server. I am trying to get an online gallery to work but I...
4
by: Mikaël PLOUHINEC | last post by:
Hello, I have created a master page with a css. How can I use css in the children pages? The css must be declared in the <head</headsection. Does I have to import all my css in my master? Is...
11
by: mase | last post by:
I've built a new ASP.NET web app with the CSLA framework. The site runs fine with a small number of users, but once there is any traffic the CPU spikes at 100%. I went through and made many updates...
1
by: SnakesRule | last post by:
I'm trying to pull data from remote xml files to load the database of a library. My sources are www.amazon.com and www.ISBNdb.com. But when I try to search and read the xml files, I get this error: ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.