Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello friends,

I was developing a project in asp.net with c#, in this i've a button, when i click this button it will display a panel which consists of a gridview, textbox and some buttons. it is done by normal panel's property visible true/false.
It works fine but when i click the button it postback the entire page, one time two time is ok but every time it loads the entire page is sometimes irritates,

so i just want to know that is there any way to overcome this problem, that is without postback can i fire the button click event.

i tried UseSubmitBehavior=false but it was of no use..

I hope you understood my problem, Please help me to get rid of this problem.

Thank you.
Posted

Sounds like using AJAX might help you out. Have a look at UpdatePanel and use it. It would re-render only the update panel on postback.

Here you go:
UpdatePanel control[^]
UpdatePanel Class[^]

Nutshell: You need to put your content in an Udpate Panel to enable partial rendering.
 
Share this answer
 
Comments
riteshsingh_jsr 17-Feb-13 12:20pm    
You are right sandeep....
Use update panel Ajax and update mode= conditional
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900