473,407 Members | 2,326 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,407 software developers and data experts.

Posting to another page?

I have a webform with many checkboxes on it. I want the
user to be able click on a button and the page be posted
to another webform so that I can capture which checkboxes
were selected.
For all other buttons on the page i want the page to be
reposted back to the same webform.

What is the best method to accomplish the above?

thx
dave
Nov 17 '05 #1
6 1353
One idea: Add the values of the checkboxes to the Context object, and use
Server.Transfer to transfer control to the second page, where you can grab
them back out of the Context.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"dave" <dy@onlinelg.com> wrote in message
news:02****************************@phx.gbl...
I have a webform with many checkboxes on it. I want the
user to be able click on a button and the page be posted
to another webform so that I can capture which checkboxes
were selected.
For all other buttons on the page i want the page to be
reposted back to the same webform.

What is the best method to accomplish the above?

thx
dave

Nov 17 '05 #2
Can't we use request.form ? I am new to .Net.
-----Original Message-----
One idea: Add the values of the checkboxes to the Context object, and useServer.Transfer to transfer control to the second page, where you can grabthem back out of the Context.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"dave" <dy@onlinelg.com> wrote in message
news:02****************************@phx.gbl...
I have a webform with many checkboxes on it. I want the
user to be able click on a button and the page be posted
to another webform so that I can capture which checkboxes were selected.
For all other buttons on the page i want the page to be
reposted back to the same webform.

What is the best method to accomplish the above?

thx
dave

.

Nov 17 '05 #3
> Can't we use request.form ? I am new to .Net.

WebForms always post back to themselves. There is therefore no way to have a
WebForm post to another WebForm.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"diya" <an*******@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...
Can't we use request.form ? I am new to .Net.
-----Original Message-----
One idea: Add the values of the checkboxes to the Context

object, and use
Server.Transfer to transfer control to the second page,

where you can grab
them back out of the Context.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"dave" <dy@onlinelg.com> wrote in message
news:02****************************@phx.gbl...
I have a webform with many checkboxes on it. I want the
user to be able click on a button and the page be posted
to another webform so that I can capture which checkboxes were selected.
For all other buttons on the page i want the page to be
reposted back to the same webform.

What is the best method to accomplish the above?

thx
dave

.

Nov 17 '05 #4
Hi Dave,

Thank you for posting to the MSDN Managed newsgroups. We are acknowledging
your post and you should receive response from the community within 2
business days of your post.

If you have any concerns, please feel free to let us know.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 17 '05 #5
This article has some interesting methods to accomplish
what is desired.

http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpguide/html/cpconpassingservercontrolvaluesbetweenpage
s.asp
Nov 17 '05 #6
Hi Dave,

I am glad to know that you have found the work around. If you have any more
concerns, please feel free to let me know.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 17 '05 #7

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

Similar topics

2
by: Stu | last post by:
Hi, When I try and use Javascript to post page form data from one aspx page to another I get the error 'Unable to validate data. '. I am not trying to read the data using web controls I am...
5
by: Bryan | last post by:
I am trying to get to a label control to get its Text value. from a previous page. The label control is buried in a Web User Control that is in a webpart zone. When I use this code:...
2
by: Esa | last post by:
Hi, I'm having problems with one strange web system where submitting an application and making queries about its handling status require a series of form submits and response parsing - all in...
4
by: Peter Afonin | last post by:
Hello, I have a form with several buttons, and I need to post this data to several different applications. In ASP.NET 1.1 it was quite easy - I just used HTML controls (text or hidden), then...
44
by: Bruce Wood | last post by:
This subject has come up several times in this group over the last year. Several people in this group seem to feel strongly about this topic. Rather than derail other threads with this discussion,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.