In web development there are 2 major components that are involved in the process:
- Client side processing: these are things executed within the web browser (like JavaScript or CSS styles)
- Server side processing: these are functions executed on the web server to process data and generate dynamic output that is sent to the browser to render content
A "Postback" is the process of sending information from the browser to the server. The server then does processing and sends content back to the browser so that the user can see it and after interacting with it can then do more postbacks to the server for further processing.
So I am having a problem with answering your question:
I want to execute code behind button or text boxes without post back.
Because I have no idea what the "code behind" for the button click does or what your textboxes do....
Depending on what you are trying to do, it may be possible to implement some JavaScript code that can do processing client-side in the browser.
Or, maybe you just want to sent parts of the page up to the server for processing, asynchronously to the rest of the page... in which case you will need to use AJAX (which is just JavaScript that is responsible for posting data to the server for processing without having to post the whole page to the server).
So, think about what you are trying to do and answer this question "Does my button click need to be processed on the server for things like saving data? Or can my button click be executed in the browser because it doesn't need to save data or request additional information that is not accessible in the browser..."
-Frinny