asynchronous-postback

asp.net updatePanel PostBackTrigger triggering full postback

删除回忆录丶 提交于 2019-12-24 15:50:25
问题 Below is the markup page <asp:UpdatePanel runat="server" UpdateMode="Conditional"> <ContentTemplate> <table> <tr> <td> <label>File name<label> </td> </tr> <tr> <td> <asp:TextBox runat="server" ID="txtName" Width="150%"></asp:TextBox> </td> </tr> <tr> <td> <label>File</label> </td> <td> <asp:FileUpload runat="server" ID="fileUpload" /> </td> </tr> </table> <asp:Button runat="server" ID="btnUpload" Text="Upload file" OnClick="btnUpload_Click" /> </div> <div class="panel-heading">File display<

ASP.NET with jQuery popup dialog: how to post back on dialog closing

亡梦爱人 提交于 2019-12-18 17:14:48
问题 Folks, I'm working on a rather complicated site. We have an update panel that contains some controls. When one of the controls is clicked, a jQuery dialog box opens. When the dialog box closes, I want to signal the update panel to change its display. To do that I need to post back to the update panel. I know the dialog box has a handy callback event that you can hook up to. But here's the thing. The javascript that manipulates the dialog is all in a separate .js file. I want to continue

Is there any workaround for the UpdatePanel + Server.Transfer problem?

假装没事ソ 提交于 2019-12-08 01:37:00
问题 I'm trying to use an UpdatePanel in my ASP.NET application. Unfortunately, it seems that I can't do this if I am using Server.Transfer() in my application. Modifying that component of the application is not possible - the architecture makes extensive use of Server.Transfer() - in essence, every page request goes through this method. Does any workaround exist for this issue exist? Having to do full-page postbacks is so unfashionable these days... 回答1: I've got it! Thank Og for strange foreign

Is there any workaround for the UpdatePanel + Server.Transfer problem?

孤人 提交于 2019-12-06 12:43:32
I'm trying to use an UpdatePanel in my ASP.NET application. Unfortunately, it seems that I can't do this if I am using Server.Transfer() in my application . Modifying that component of the application is not possible - the architecture makes extensive use of Server.Transfer() - in essence, every page request goes through this method. Does any workaround exist for this issue exist? Having to do full-page postbacks is so unfashionable these days... I've got it! Thank Og for strange foreign language blogs :) To fix it, I can simply tell the ASP.NET AJAX client-side framework to direct the partial

Async trigger for an update panel refreshes entire page when triggering too much in too short of time

依然范特西╮ 提交于 2019-12-02 08:16:48
问题 I have a search button tied to an update panel as a trigger like so: <asp:Panel ID="CRM_Search" runat="server"> <p>Search: <asp:TextBox ID="CRM_Search_Box" CssClass="CRM_Search_Box" runat="server"></asp:TextBox> <asp:Button ID="CRM_Search_Button" CssClass="CRM_Search_Button" runat="server" Text="Search" OnClick="SearchLeads" /></p> </asp:Panel> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <Triggers> <asp:AsyncPostBackTrigger ControlID="CRM_Search_Button" /> </Triggers> <ContentTemplate>

Async trigger for an update panel refreshes entire page when triggering too much in too short of time

…衆ロ難τιáo~ 提交于 2019-12-02 05:01:44
I have a search button tied to an update panel as a trigger like so: <asp:Panel ID="CRM_Search" runat="server"> <p>Search: <asp:TextBox ID="CRM_Search_Box" CssClass="CRM_Search_Box" runat="server"></asp:TextBox> <asp:Button ID="CRM_Search_Button" CssClass="CRM_Search_Button" runat="server" Text="Search" OnClick="SearchLeads" /></p> </asp:Panel> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <Triggers> <asp:AsyncPostBackTrigger ControlID="CRM_Search_Button" /> </Triggers> <ContentTemplate> /* Content Here */ </ContentTemplate> </asp:UpdatePanel> In my javascript I use jQuery to grab the

ASP.NET asynchronous post-back on asp:button click

人走茶凉 提交于 2019-12-02 02:03:14
问题 I am using AJAX in asp:net and am trying to handle a situation where an asp:button triggers both a javascript method and a codebehind c# method. To do this I am using onclick and onClientClick attributes for the button. I need a postback to occur for the codebehind to be called however this postback causes the javascript to not work because variables have lost state. Can anyone describe how to handle this? Possible with ajax and async postbacks? It's starting to drive me a bit crazy! Edit:

How to keep whole page scroll position after asynchronous postback

眉间皱痕 提交于 2019-12-01 12:32:45
问题 i am using asp.net 4.0 iis 7.5 microsoft visual studio 2010 what i want is keep whole page (browser) scroll position (not a div or panel) when asynchronous postback happened (update panel) how can i do this actually i had a function which can keep div scroll bar position after postback like this <script type="text/javascript"> var xPos, yPos; var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_beginRequest(BeginRequestHandler); prm.add_endRequest(EndRequestHandler); function

How to keep whole page scroll position after asynchronous postback

做~自己de王妃 提交于 2019-12-01 12:17:59
i am using asp.net 4.0 iis 7.5 microsoft visual studio 2010 what i want is keep whole page (browser) scroll position (not a div or panel) when asynchronous postback happened (update panel) how can i do this actually i had a function which can keep div scroll bar position after postback like this <script type="text/javascript"> var xPos, yPos; var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_beginRequest(BeginRequestHandler); prm.add_endRequest(EndRequestHandler); function BeginRequestHandler(sender, args) { xPos = document.getElementById('Main').scrollLeft; yPos = document

File uploading in AJAX updatepanel without full postback

血红的双手。 提交于 2019-11-27 03:41:39
I have a update panel, in the update panel I have fileupload control and button control, On button click, I need the file that I have upload in the fileupload control in updatepanel. Exact scenario, I have 8 tabs on page, each tab contains too much information, One of the tab is Attachment, when user click on Add New Attachment Modal Popup shown, Modal contains detailsview in Updatepanel and in the detailsview I have fileupload control, when user hit save button, detailsview inserting event fired, In the inserting event I need the file that I have upload. Please Note, My page is heavy and I