Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 30, 2012 04:27 AM by hitesh.hirpara
Member
64 Points
38 Posts
Nov 29, 2012 08:38 AM|LINK
i am using ajax accordion with link button on it. when i click on linkbutton page postback.
i also use update panel but its not work.
it work only in debuge mode . when i publish and used then page post back.
i dont want postback happen when linkbutton click.
Participant
1483 Points
330 Posts
Nov 29, 2012 08:46 AM|LINK
try to give
return false;
in the click event of that linkbutton.
All-Star
34545 Points
5554 Posts
Nov 29, 2012 08:51 AM|LINK
why not simply disable click of linkbutoon
like this
<asp:LinkButton id="lnk" runat="server" OnClientClick="return false" Text="Pane1"/>
hope this helps...
Nov 29, 2012 09:03 AM|LINK
where i give return false. its link button and on link button click i fetch data from database and display in page
Nov 29, 2012 09:08 AM|LINK
Dear, if you fetchin data from the server side, then postback is must...the other way is you can use jquery and call handlers and then get data..in this way, postback wl not happen.
Nov 29, 2012 09:29 AM|LINK
thats true but whole page refresh. i dont want whole page refresh. i also used update panel for that but its not work
Nov 30, 2012 04:15 AM|LINK
hope this can help u then,
http://codeclimber.net.nz/archive/2007/06/26/how-to-refresh-an-updatepanel-from-javascript.aspx
Nov 30, 2012 04:27 AM|LINK
problem solved.
problem is in url rewriting.
i have remove url rewriting then it working fine.
thanks guys
hitesh.hirpa...
Member
64 Points
38 Posts
post back issue in .net 4.0
Nov 29, 2012 08:38 AM|LINK
i am using ajax accordion with link button on it. when i click on linkbutton page postback.
i also use update panel but its not work.
it work only in debuge mode . when i publish and used then page post back.
i dont want postback happen when linkbutton click.
pratik_galor...
Participant
1483 Points
330 Posts
Re: post back issue in .net 4.0
Nov 29, 2012 08:46 AM|LINK
try to give
return false;
in the click event of that linkbutton.
Software Engineer,
iGATE Global Solutions.
pratik_galoria@yahoo.co.in
+91-8905195943
kedarrkulkar...
All-Star
34545 Points
5554 Posts
Re: post back issue in .net 4.0
Nov 29, 2012 08:51 AM|LINK
why not simply disable click of linkbutoon
like this
<asp:LinkButton id="lnk" runat="server" OnClientClick="return false" Text="Pane1"/>
hope this helps...
KK
Please mark as Answer if post helps in resolving your issue
My Site
hitesh.hirpa...
Member
64 Points
38 Posts
Re: post back issue in .net 4.0
Nov 29, 2012 09:03 AM|LINK
where i give return false. its link button and on link button click i fetch data from database and display in page
pratik_galor...
Participant
1483 Points
330 Posts
Re: post back issue in .net 4.0
Nov 29, 2012 09:08 AM|LINK
Dear, if you fetchin data from the server side, then postback is must...the other way is you can use jquery and call handlers and then get data..in this way, postback wl not happen.
Software Engineer,
iGATE Global Solutions.
pratik_galoria@yahoo.co.in
+91-8905195943
hitesh.hirpa...
Member
64 Points
38 Posts
Re: post back issue in .net 4.0
Nov 29, 2012 09:29 AM|LINK
thats true but whole page refresh. i dont want whole page refresh. i also used update panel for that but its not work
pratik_galor...
Participant
1483 Points
330 Posts
Re: post back issue in .net 4.0
Nov 30, 2012 04:15 AM|LINK
hope this can help u then,
http://codeclimber.net.nz/archive/2007/06/26/how-to-refresh-an-updatepanel-from-javascript.aspx
Software Engineer,
iGATE Global Solutions.
pratik_galoria@yahoo.co.in
+91-8905195943
hitesh.hirpa...
Member
64 Points
38 Posts
Re: post back issue in .net 4.0
Nov 30, 2012 04:27 AM|LINK
problem solved.
problem is in url rewriting.
i have remove url rewriting then it working fine.
thanks guys