I have a gridview working fine, however I need when the page gets clicked an update occurs to update my grandtotal label- which is outside my gridview. If I click a button the grandtotal updates, otherwise it just shows totals for the current page its on.
I NEED to find a way to raise postback on a button whatever, though without user clicking on it ot cause postback. Any code help would immensly be appreciated. Have tried everything!!! By the way autopostback for entry on the gv for txtquantity is set to
false...I know if I turn it on it will work and everything will be fine, however when doing so it wrecks havock with lost focusing occuring on the textbox going row to row, hoever when autopostback is off she works fine. HELP!!!
I'm pretty sure I'm not really understanding your problem correctly. Could you perhaps create and provide a small project with an isolated reproduction of your problem (a sample gridview, a totals label, etc), a description of steps to see the problem, the
actual result when following those steps and the expected result when following those steps? Given a reproduction of your problem it would be a lot easier to help you.
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
Which version of .net you are using? If you are using 4.0 then you can define the properties for updatepanel that on which event it should get updated or how it needs to be updated.
As updateanel has triggers which can execute depending upon the event asigned to it.
clowndog
Member
21 Points
65 Posts
UpdatePanel & Postback
Jun 29, 2012 08:14 AM|LINK
Hi,
I have a gridview working fine, however I need when the page gets clicked an update occurs to update my grandtotal label- which is outside my gridview. If I click a button the grandtotal updates, otherwise it just shows totals for the current page its on. I NEED to find a way to raise postback on a button whatever, though without user clicking on it ot cause postback. Any code help would immensly be appreciated. Have tried everything!!! By the way autopostback for entry on the gv for txtquantity is set to false...I know if I turn it on it will work and everything will be fine, however when doing so it wrecks havock with lost focusing occuring on the textbox going row to row, hoever when autopostback is off she works fine. HELP!!!
Thanks!!!
robert.weste...
Contributor
2352 Points
399 Posts
Re: UpdatePanel & Postback
Jun 29, 2012 10:04 AM|LINK
Hi clowndog,
I'm pretty sure I'm not really understanding your problem correctly. Could you perhaps create and provide a small project with an isolated reproduction of your problem (a sample gridview, a totals label, etc), a description of steps to see the problem, the actual result when following those steps and the expected result when following those steps? Given a reproduction of your problem it would be a lot easier to help you.
/Robert
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
Himanshu Por...
Member
116 Points
40 Posts
Re: UpdatePanel & Postback
Jun 29, 2012 01:45 PM|LINK
Which version of .net you are using? If you are using 4.0 then you can define the properties for updatepanel that on which event it should get updated or how it needs to be updated.
As updateanel has triggers which can execute depending upon the event asigned to it.
Himanshu