Hiii...
In my web form by clicking on the buttons the page is getting refresh ..how to solve the problem for this.?
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sanjeeb LenkaRank #301 · 8.3K reputationPosted May 30, 2013, 12:48 AM EDT
1st plz describe what the problem you get means
1.your page controls are getting refreshed or you want on button click
solution within page load write the code within
if (!Page.IsPostBack)
{
}
or
if you want the data will updated but it will not show refresh in browser. then
write your Source code within AJAX update panel in design.
selva kumarRank #2,987 · 483 reputationPosted May 30, 2013, 1:15 AM EDT
azeem ahmed34 reputationPosted May 30, 2013, 1:31 AM EDT
azeem ahmed34 reputationPosted May 30, 2013, 1:38 AM EDT
I'm sending you sample code for ADD button. If this button is clicked, following code is written. This code will do very simple logic like change operation, clear controls of the page, enabled or disabled of the buttons, enabled of the textboxes, BindData in the gridview.
Alok UniyalRank #8,369 · 223 reputationPosted May 30, 2013, 2:13 AM EDT
You can use update panel to avoid page refresh.
azeem ahmed34 reputationPosted May 30, 2013, 2:19 AM EDT
Alok UniyalRank #8,369 · 223 reputationPosted May 30, 2013, 2:24 AM EDT
Sanjeeb LenkaRank #301 · 8.3K reputationPosted May 30, 2013, 2:29 AM EDT
plz describe the problem in details and your .cs code with pageload event