Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 24, 2012 10:08 PM by rossisdead2
Member
236 Points
156 Posts
Feb 22, 2012 08:58 AM|LINK
hai to all
i wont to avoid refresh in a button click event..
please help me
Thanks
Raja.S
Contributor
5079 Points
821 Posts
Feb 22, 2012 09:06 AM|LINK
Hello Mate,
Wat u r trying to achieve?, if u dont want the entire page to be refereshed use Update Panel.
Cheers,
R
Feb 22, 2012 09:08 AM|LINK
how to use it
5266 Points
771 Posts
Feb 22, 2012 09:11 AM|LINK
Hi Friend,
Check
http://msdn.microsoft.com/en-us/library/bb398864.aspx
http://ajax.net-tutorials.com/controls/updatepanel-control/
Feb 22, 2012 09:12 AM|LINK
Its very easy, below tutorial will help u
2290 Points
419 Posts
Feb 22, 2012 09:15 AM|LINK
hi Raja
follow above link
if this will help you please mark as answer.
Feb 22, 2012 09:32 AM|LINK
hi friends i use the update panel
but its no use for me .... the page refresh is continue and redirect is not working....
Feb 22, 2012 10:28 AM|LINK
Hi,
Post your code.
Feb 22, 2012 10:34 AM|LINK
Hi
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"> <ContentTemplate>
<table id="main" style="margin-top: 0px; margin-left: auto" cellspacing="0" cellpadding="0" align="center" bgcolor="#ffffff" border="0" width="100%"> <tr> <td>
<asp:CheckBox ID="ChkAdmin" Text="ADMIN" runat="server" AutoPostBack="true" OnCheckedChanged="ChkAdmin_CheckedChanged" TabIndex="3" /> </td>
</tr>
<tr>
<td>
<asp:Button ID="btnBack" runat="server" AccessKey="B" CssClass="RSMenuItemColor" OnClick="btnBack_Click" onmouseout="this.className='RSMenuItemColor'" onmouseover="this.className='RSMenuItemOverColor'" TabIndex="5" Text="Back" /> <asp:Button ID="btnReset" runat="server" AccessKey="R" CssClass="RSMenuItemColor" OnClick="btnReset_Click" onmouseout="this.className='RSMenuItemColor'" onmouseover="this.className='RSMenuItemOverColor'" TabIndex="5" Text="Reset" /> <asp:Button ID="btnSubmit" runat="server" CssClass="RSMenuItemColor" OnClick="btnSubmit_Click" onmouseout="this.className='RSMenuItemColor'" onmouseover="this.className='RSMenuItemOverColor'" TabIndex="6" Text="Submit" />
<tr></table>
</ContentTemplate> </asp:UpdatePanel>
160 Points
55 Posts
Feb 22, 2012 11:45 AM|LINK
What you want to achive exactly???
Don't write onclick event of button. Page won't get postbacked!!!
raja_durai1
Member
236 Points
156 Posts
avoid refresh in a button click event
Feb 22, 2012 08:58 AM|LINK
hai to all
i wont to avoid refresh in a button click event..
please help me
Thanks
Raja.S
*" Please excuse my poor English "*
Ramesh T
Contributor
5079 Points
821 Posts
Re: avoid refresh in a button click event
Feb 22, 2012 09:06 AM|LINK
Hello Mate,
Wat u r trying to achieve?, if u dont want the entire page to be refereshed use Update Panel.
Cheers,
R
raja_durai1
Member
236 Points
156 Posts
Re: avoid refresh in a button click event
Feb 22, 2012 09:08 AM|LINK
how to use it
*" Please excuse my poor English "*
prasadP
Contributor
5266 Points
771 Posts
Re: avoid refresh in a button click event
Feb 22, 2012 09:11 AM|LINK
Hi Friend,
Check
http://msdn.microsoft.com/en-us/library/bb398864.aspx
http://ajax.net-tutorials.com/controls/updatepanel-control/
Blog
Ramesh T
Contributor
5079 Points
821 Posts
Re: avoid refresh in a button click event
Feb 22, 2012 09:12 AM|LINK
Its very easy, below tutorial will help u
http://ajax.net-tutorials.com/controls/updatepanel-control/
Cheers,
R
Prince Sriva...
Contributor
2290 Points
419 Posts
Re: avoid refresh in a button click event
Feb 22, 2012 09:15 AM|LINK
hi Raja
http://ajax.net-tutorials.com/controls/updatepanel-control/
follow above link
if this will help you please mark as answer.
My Blog
ROHIT KUMAR SRIVASTAVA
raja_durai1
Member
236 Points
156 Posts
Re: avoid refresh in a button click event
Feb 22, 2012 09:32 AM|LINK
hi friends i use the update panel
but its no use for me .... the page refresh is continue and redirect is not working....
Thanks
Raja.S
*" Please excuse my poor English "*
prasadP
Contributor
5266 Points
771 Posts
Re: avoid refresh in a button click event
Feb 22, 2012 10:28 AM|LINK
Hi,
Post your code.
Blog
raja_durai1
Member
236 Points
156 Posts
Re: avoid refresh in a button click event
Feb 22, 2012 10:34 AM|LINK
Hi
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<table id="main" style="margin-top: 0px; margin-left: auto" cellspacing="0" cellpadding="0"
align="center" bgcolor="#ffffff" border="0" width="100%">
<tr>
<td>
<asp:CheckBox ID="ChkAdmin" Text="ADMIN" runat="server" AutoPostBack="true" OnCheckedChanged="ChkAdmin_CheckedChanged"
TabIndex="3" />
</td>
</tr>
<tr>
<td>
<asp:Button ID="btnBack" runat="server" AccessKey="B" CssClass="RSMenuItemColor"
OnClick="btnBack_Click" onmouseout="this.className='RSMenuItemColor'" onmouseover="this.className='RSMenuItemOverColor'"
TabIndex="5" Text="Back" />
<asp:Button ID="btnReset" runat="server" AccessKey="R" CssClass="RSMenuItemColor"
OnClick="btnReset_Click" onmouseout="this.className='RSMenuItemColor'" onmouseover="this.className='RSMenuItemOverColor'"
TabIndex="5" Text="Reset" />
<asp:Button ID="btnSubmit" runat="server" CssClass="RSMenuItemColor" OnClick="btnSubmit_Click"
onmouseout="this.className='RSMenuItemColor'" onmouseover="this.className='RSMenuItemOverColor'"
TabIndex="6" Text="Submit" />
<td>
<tr></table>
</ContentTemplate>
</asp:UpdatePanel>
*" Please excuse my poor English "*
Vijay Giggs
Member
160 Points
55 Posts
Re: avoid refresh in a button click event
Feb 22, 2012 11:45 AM|LINK
Hi,
What you want to achive exactly???
Don't write onclick event of button. Page won't get postbacked!!!