Click here to Skip to main content
13,143,008 members (53,144 online)
Rate this:
Please Sign up or sign in to vote.
Hello friends,

I was developing a project in 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 17-Feb-13 5:10am
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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.
riteshsingh_jsr 17-Feb-13 12:20pm
You are right sandeep....
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Use update panel Ajax and update mode= conditional

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170915.1 | Last Updated 17 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100