469,927 Members | 1,469 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

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 1216
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Bryan | last post: by
4 posts views Thread by Peter Afonin | last post: by
44 posts views Thread by Bruce Wood | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.