Introduction:
Here I will explain how to Cross Page Posting in ASP.NET
Description:
Without am using state management
technique such as session etc…we can pass the value from one page to another
page through cross page posting concept in .net.
Step1: add the two web forms in to your
application such as
1. Crosspage.aspx
2. Result.aspx
Step2: Add the textbox and button control
into the Cross page.aspx page. Then set the button post back url to Result.aspx
Step3: Add the label control to the
result.aspx page
Step4: Then write a below code in the
result.aspx.cs file at Page Load event.
Step5: now run a crosspage.aspx file and given some
input to the textbox and click the button…….Now your data will bring from the crosspage.aspx
to result.aspx page without using any state management.
Result
After click the button
No comments:
Post a Comment