Click here to Skip to main content
12,447,786 members (63,820 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET
when we redirect one form to another then return back to first checkbox doest not show true..
I want that show check true please help me
Posted 2-Feb-13 0:53am
Comments
Krunal Rohit 2-Feb-13 6:58am
   
What have you done so far ?
Mandy Nagra 2-Feb-13 7:00am
   
i have redirect from one form to another nw redirect to first form checkbox remain unchecked
Mandy Nagra 2-Feb-13 7:01am
   
i want it should be checked
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

When you open a webpage, it is as if you have never been there before, unless you code explicitly checks and loads information into it.
Normally, this information would be stored in the Session or in Cookies.

Session[^] for data you want to throw away when the browser is closed (or before).
Cookies[^] for data that you want to preserve even if the PC is powered down and restarted. (Shopping baskets are an example)
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

use querystring to maintain the checkbox state when it revert back.
  Permalink  
Comments
Mandy Nagra 2-Feb-13 7:03am
   
how??
oliver grace 2-Feb-13 7:10am
   
in your second form call response.redirect within that write your previous form name and checkbox.checked,
this will redirect your checkbox value to first form. call this in first form pageload.
then u will get it........
oliver grace 2-Feb-13 7:11am
   
have u heard about namevaluecollection try to use this to get it...
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

i think you can use query string...
  Permalink  
Comments
Mandy Nagra 2-Feb-13 7:56am
   
m just confused
because i want after redirect to first form from second that checkboxes are true that i have done earler

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160811.3 | Last Updated 2 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100