hello.
what do you meanu by exclude? if you're speaking about not generating html, then just set the enabled property to false...
I have two export buttons inside my usercontrol and said usercontrol is inside an UpdatePanel. I cannot change that it is inside an UpdatePanel, so I cannot just take them out of the UpdatePanel. I want them to generate, I just was wondering if there is a way to exclude them from the UpdatePanel that is surrounding the whole UserControl.
hello.
how about using an udpatepanel inside your user control that delimits all the controls (excluding the buttons)?
Hello, I have the same problem:
I use a GridView inside an UpdatePanel, every row has a 'print' button that generates a RTF document using the server side command 'Response.BinaryWrite'.
The button is generated inside the GridView using a template element, if the gridview is inside the updatepanel the action fails, if the grid is outside the updatepanel the action succeed
How can I exclude the print buttons from the UpdatePanel leaving the other columns updatable?
matteo conta
I have found a solution, not very clean but working:
My problem is how to download a RTF on the browser using a button inside an UpdatePanel, in my case a button inside a GridView:
Insert in the update panel a hidden iframe with runat=server
<atlas:UpdatePanel ID="UpdatePanel1" runat="server" >
<ContentTemplate>
<iframe id="frameGenerateRTF" runat=server src="http://pics.10026.com/?src=about:blank" width=0 height=0></iframe>
... GridView code....
On theGridView1_RowCommand that generates the RTF export change the src of the IFRAME pointing to the page that generates the binary export
frameGenerateRTF.Attributes.Add("src","Export.aspx?ACTION=PRINT&IDDOCUMENT=12345");
The Export.aspx page uses the Response.BinaryWrite and Response.End() to write a stream (PDF,RTF etc..) to the browser.
You can't use the Response.Redirect on the same page because when you write the binary stream you interrupt the processing on the page usig Response.End() and the atlas page end to respond.
Hope to be usefull
Matteo Conta
I will check it out. Thanks for the help.
How about this:
1a) Set UpdatePanel.ChildrenAsTriggers = false, it is true by default.http://ajax.asp.net/docs/mref/0b850465-67ca-2600-9fdc-2c16d689ab89.aspx
1b) Then any controls inside the UpdatePanel you do want to trigger a refresh, you can set a trigger for.http://ajax.asp.net/docs/tutorials/enhancing/declareTriggers.aspx. (You can set a control like GridView as an async trigger and then all postbacks originating from inside it will be treated as async postback.)
another option
2) Set the control inside the UpdatePanel as a PostBack trigger, i.e. it causes a full page refresh.
<Triggers>
<asp:PostBackTrigger ControlID="YourControlID"/>
</Triggers>
The second option may not be exactly what you are looking for but thought I'd mention it.
hello.
not sure but what i think he wants is to define a zone inside the panel which doesn't get updated...
Oh, if that's the case, I don't know of any easy way to do that. Probably should start by removing the UpdatePanel that wraps everything (including the piece that you dont' want updated) and then add sibling UpdatePanels on the page with UpdateMode=Always.
Thanks marcgel, that helped me alot!
Pat
marcgel:
Oh, if that's the case, I don't know of any easy way to do that. Probably should start by removing the UpdatePanel that wraps everything (including the piece that you dont' want updated) and then add sibling UpdatePanels on the page with UpdateMode=Always.
What is the meaning of "sibling UpdatePanel on the page"? Can you please make it more clear?
Eriawan.
No comments:
Post a Comment