473,699 Members | 2,514 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What is cross page post back?

21 New Member
I am currently a beginner in asp.net i am currently watching msdn videos of "beginners developers learning" i am on the topic of application state so i got confused on a topic of "cross page postback" can anybody explain what that is
and another thing is "profile" object we use it in web.config file

1. what is cross page post back?
2. what is web.config file?
Jan 18 '10 #1
4 10765
Frinavale
9,735 Recognized Expert Moderator Expert
Cross page postback is when you have one page in your website submitting to another page in your website. I've never used it personally...

The web.config file contains all of the information regarding the configuration of the website. It contains things like what type of authentication your site uses, connection strings used to connect to databases, configuration details indicating what to do when the site encounters an error and much more.

-Frinny
Jan 18 '10 #2
furqi
21 New Member
there is a profile object used in a video tutorial which i have can u tell me whatz that and what is the use of profile object there
Jan 18 '10 #3
sanjib65
102 New Member
"In many applications, you want to store and use information that is unique to a user. When a user visits your site, you can use the information you have stored to present the user with a personalized version of your Web application.
Profiles allow you to manage user information without requiring you to create and maintain your own database. In addition, the ASP.NET profile feature makes the user information available using a strongly typed API that you can access from anywhere in your application.
For example, you might want to store the user's postal code so that your application can offer region-specific information, such as weather reports. " -MSDN

In your web.config file you type this:
Expand|Select|Wrap|Line Numbers
  1. <profile>
  2.   <properties>
  3.     <add name="PostalCode" />
  4.   </properties>
  5. </profile>
For example, your application's home page might contain a text box that prompts the user to enter a postal code. When the user enters a postal code, you set a Profile property to store the value for the current user, as in the following example:

Expand|Select|Wrap|Line Numbers
  1. Profile.PostalCode = txtPostalCode.Text;
You can also use username instead of postalcode and use that username all along your site.

Wish it works...
Jan 19 '10 #4
furqi
21 New Member
well i got it thank you
Jan 19 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

44
4219
by: lester | last post by:
a pre-beginner's question: what is the pros and cons of .net, compared to ++ I am wondering what can I get if I continue to learn C# after I have learned C --> C++ --> C# ?? I think there must be many know the answer here. thanks
23
6532
by: Jeff Rodriguez | last post by:
Here's what I want do: Have a main daemon which starts up several threads in a Boss-Queue structure. From those threads, I want them all to sit and watch a queue. Once an entry goes into the queue, grab it and run a system command. Now I want to make sure that system command doesn't hang forever, so I need some way to kill the command and have the worker thread go back to work waiting for another queue entry.
17
3199
by: Alan Silver | last post by:
Hello, I have a page which I am converting to use themes. The page has an HTML <input type="image"> element that is used to post to another page. I would like to replace this with a server control so I can add a skinid. I tried adding runat="server" and the skinid to the existing control, but that didn't work. Any other ideas? TIA --
0
1249
by: Martin | last post by:
Hi, In the scenario described by Scott Allen at http://odetocode.com/Articles/421.aspx, he points out the issue of handling server side validation failing on the source page of a cross page post back. I would expect there would be a way of source page knowing it was executing on behalf of the destination page (could be IsCrossPagePostBack==true && PreviousPage==null), and being able to abort/cancel the hand back to the destination...
0
1126
by: Jason Wilson | last post by:
I have two pages that that cross post to each other: Page1 has a form Page2 verifies the form entries before posting to a DB If the user sees problems with their entries they can click an Edit button that will send them back to Page1. When I click the edit button on page2 I get a runtime error as it tries to evaluate the page2 Page_Load.
2
2266
by: J055 | last post by:
Hi I'd like to post a page to another page using LinkButton.PostBackUrl. Then using another LinkButton on the target page post back to the source page and restore the controls to the state they were in before the first post to the target. Is there an easy way to do this? Perhaps I should consider another approach? Many thanks
11
26431
pbmods
by: pbmods | last post by:
A somewhat obscure hack has emerged recently that is an offshoot of the now-infamous XSS. It is known as Cross-Site Request Forgery, or XSRF for short. XSRF is a form of temporary identity theft that can cause your computer to initiate banking transactions, send emails or text messages, or even change account info on your favorite site... without your ever realizing it! THE GOOD NEWS Before we get started on the doom and gloom, you...
2
1235
by: Vu Truong | last post by:
Hello, I try to use PostBackUrl to cross post between 2 pages on difference application. At the first time, I press the button on source page. Check on target page, I see Request.Form is nothing and Request.HttpMethod is GET (not POST). But if I don't close the browser, try to enter the URL of source page and press the button on source page again, I see, on target page, Request.Form is source page and Request.HttpMethod is POST. I try...
8
2034
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I the page knows there was a cross post back. but i can not find the control. (asp.net 3.5) calling page has a master calling control: <asp:Button ID="btnSendAlert" runat="server" Text="Go" onclick="btnSendAlert_Click" PostBackUrl="ItemUpLoadAdmin.aspx" CommandArgument="5" />
2
2375
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I'm reying to get around the problem of cross page post back. I'm attempting to use an interface to cast the previous page. if (PreviousPage != null) { ICommonPostback frm = PreviousPage as ICommonPostback; ... ... Previous page exists, but after casting frm is still null. I'm hoping this will work. If i reference this page directly using the <%@ PreviousPageType VirtualPath="~/Admin/ItemMaster.aspx" %i get a circular reference.
0
8617
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9174
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9035
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7751
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6534
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4376
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2347
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2009
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.