Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > ASP

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 05-06-2016, 11:25 PM   #1
Kunal
Registered User
 
Join Date: Feb 2016
Posts: 73
What is the cross page post backing?

IN Asp.Net , What is the cross page post backing?
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Kunal is offline   Reply With Quote

Old 03-16-2017, 12:39 AM   #2
sonvi.belani
Registered User
 
Join Date: Jan 2017
Location: Ahmedabad
Posts: 95
Hi,

Cross page postback is the concept which is used to submit one page (Default.aspx) controls to another page (Default2.aspx) and access those page (Default.aspx) control values in another page (Default2.aspx).

Here I will explain this concept with simple example for that first create one web application and add two new pages Default.aspx and Default2.aspx.

=> Default.aspx

Quote:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Cross Page Postback Example in asp.net</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td><b>Enter UserName:</b></td>
<td><asp:TextBox ID="txtUserName" runat="server"/></td>
</tr>
<tr>
<td><b>Enter Location:</b></td>
<td><asp:TextBox ID="txtLocation" runat="server"/></td>
</tr>
<tr>
<td></td>
<td><asp:Button ID="btnPostback" Text="Postback" runat="server" PostBackUrl="~/Default2.aspx" /> </td>
</tr>
</table>
</div>
</form>
</body>
</html>
=> Default2.aspx

Quote:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Cross Page Postback Example in asp.net</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<b><u>Default2.aspx Page</u></b><br /><br />
<label id="lblName" runat="server" /><br /><br />
<label id="lblLocation" runat="server" />
</div>
</form>
</body>
</html>
Run this code on your system and see whats happen.

Thanks
__________________
Sonvi Belani
Ecommerce Website Developer

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
sonvi.belani is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
would you like to your webiste first page in google? shoaib Marfatiy Search Engine Optimization 12 10-07-2021 03:50 AM
Apply These 12 Secret Techniques To Improve On page Seo Factor dieheart Google 0 01-22-2016 09:34 PM
Facebook Business Page Chris_Tax Social Networks 11 03-24-2014 04:14 AM
What’s your idea about page rank and how it’s calculated? Spyindiarahul General Discussion 6 12-13-2013 02:32 AM
Brand new domain where should I start first for off page SEO sinicline Google 1 08-19-2013 09:48 AM


All times are GMT -7. The time now is 06:56 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.