Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Suppose i have a registration form, & i have to redirect this registration form from one page to another page which contains all the HTML tag, controls etc. I know the limit of querystring is only 256 character.

Then how can I make it possible. Any one have an idea kindly share with me.
Posted
Updated 9-Oct-12 2:17am
v3
Comments
I.explore.code 9-Oct-12 8:20am    
I am not sure the question is really clear. Do you mean you want to send the html markup of the registration page to another page? if so, why? What exactly you are trying to achieve?
govardhan4u 9-Oct-12 8:20am    
Did you try crosspaging concept?
Mas11 9-Oct-12 8:47am    
Thanks gladiatron for your response. Yes you are right i want to send html markup of the registration page to another page. But how ? In querystring its bit diffult to define id for each & etc. There is any direct method for this?
Sandip.Nascar 9-Oct-12 8:54am    
My suggestion, never pass html markup to another page. You are opening XSS security attack. Though, if you still want to pass, you will get a validation request error in the second page where you have passed. Still you can manipulate page directive to open validation request.

You are wrong, limit of querystring is not 255 characters.

You can set the querystring limit in web.config
<system.web>
    <httpruntime>
      maxQueryStringLength="99999" />
//....
</httpruntime></system.web>


Apart from passing querystring, you can use Cross Page Posting.
Here is a link, which will give you a fair idea to start
http://msdn.microsoft.com/en-us/library/ms178139(v=vs.100).aspx[^]

cheers
 
Share this answer
 
Comments
Mas11 9-Oct-12 8:44am    
Thanks a lot for your valuable information.
Mas11 9-Oct-12 8:47am    
Thanks Sandip for your response. I want to send html markup of the registration page to another page. But how ? In querystring its bit diffult to define id for each & etc. There is any direct method for this?
You can use cross page postbacks to get available Previous page within asp.net page

Here is the link for the same article. I hope it would be helpful for you.

Asp.net Cross page post backs - accessing Previous page content on another page.[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900