adspace
What is ispostback method in asp.net? Why do we use that?
Answer Posted / Nadine Pde
"IsPostBack"; is a property of the Page class in ASP.NET that indicates whether the page is being posted back (i.e., submitted through an HTTP POST request) or whether it's being requested for the first time (HTTP GET request). The purpose of IsPostBack is to differentiate between user interactions on the server-side and initial page loads, allowing developers to perform specific actions based on the state of the page.nFor example, when you want to reset form fields after a submission, you can check if the page is being posted back using IsPostBack: "if (!IsPostBack) {n // Code for setting default values or initializing form fieldsn}"
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What do you mean by query string?
hi .net gurus. plz if any one has dumps on 70-631 and 70-541 on windows sharepoint services kindly mail me.
a web application needs to be created to accept the product name and quantity of a toy from a customer. After the customer has entered the product name the application needs to display the discounted price of the product to the customer (company is offering 35% discount on all products). The application should allow the customer to select the product name from a list box. and also while i'm data binding to a label with custom data binding with some declarations : "The Discounted Price is "+((System.Convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)) - ((System.convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)*0.35)). Where i need to give this declaration in asp.net 2.0.