ورود

View Full Version : cross page postback



dr_csharp
سه شنبه 14 اسفند 1386, 11:26 صبح
سلام
منظور از Cross Page Postback اینه که postback یک صفحه به یه صفحه ی دیگه بره ! میشه اینکار رو با Rdirect کردن صفحه هم انجام داد و مثلا پارامتر مورد نظر را منتقل کرد ...
ولی عملکرد داخلی این دو روش با هم متفاوتند و در ظاهر یک کار را انجام میدن.
من میخوام بدونم کابردهای cROSS PAGEPOSTBACK چیه ؟

Behrouz_Rad
سه شنبه 14 اسفند 1386, 11:43 صبح
Cross Page PostBack برای انتقال داده ها از یک صفحه به صفحه ی دیگه از طریق POST استفاده میشه اما با Redirect از طریق GET داده ها رد و بدل میشن.
ضمن اینکه GET محدود هست و POST نامحدود.
GET در ظاهر قابل مشاهد است اما POST در ظاهر قابل مشاهده نیست.

موفق باشید.

dr_csharp
سه شنبه 14 اسفند 1386, 11:51 صبح
Cross Page PostBack برای انتقال داده ها از یک صفحه به صفحه ی دیگه از طریق POST استفاده میشه اما با Redirect از طریق GET داده ها رد و بدل میشن.
ضمن اینکه GET محدود هست و POST نامحدود.

ممنون میشم اگه راجبه gET و pOST بیشتر توضیح بدین !

Behrouz_Rad
سه شنبه 14 اسفند 1386, 12:35 عصر
www.Google.com

dr_csharp
سه شنبه 14 اسفند 1386, 13:40 عصر
Using "get" to pass information sends the information appended to the request for the processing page. It tends to be simpler and you can troubleshoot any problems simply by looking at the address bar in your browser since all values passed are displayed there. This is also the primary weakness of this method. The data being passed is visible and is limited in size to the maximum length of a request string.

Using "post" to pass information sends the information embedded in a header during the request for the processing page. It's main advantage is that you can send larger amounts of information. It also doesn't make that information visible in the address bar of the browser which is nice if you are using the "hidden" input type. The value of this type is still readily available to the user by using view source, but the average user won't see it or be confused by any information you may need to pass from your form for processing.