<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET AJAX UI</title><link>http://forums.asp.net/1008.aspx</link><description>Here you can discuss UI-related issues with AJAX such as controls and client-side functionality including Silverlight controls for ASP.NET</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: server.transfer</title><link>http://forums.asp.net/thread/3484788.aspx</link><pubDate>Fri, 30 Oct 2009 02:54:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3484788</guid><dc:creator>chetan.sarode</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3484788.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=3484788</wfw:commentRss><description>&lt;p&gt;I found a working solution at &lt;a href="http://brunokenj.net/blog/index.php/2007/04/09/utilizando-servertransfer-e-aspnet-ajax-10/"&gt;http://brunokenj.net/blog/index.php/2007/04/09/utilizando-servertransfer-e-aspnet-ajax-10/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.dreamlabsolutions.com/post/2008/10/06/Server-Transfer-in-an-UpdatePanel.aspx"&gt;http://blog.dreamlabsolutions.com/post/2008/10/06/Server-Transfer-in-an-UpdatePanel.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.davidyack.com/journal/2007/7/17/atlas-update-panel-and-servertransfer.html"&gt;http://blog.davidyack.com/journal/2007/7/17/atlas-update-panel-and-servertransfer.html&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: server.transfer</title><link>http://forums.asp.net/thread/3483396.aspx</link><pubDate>Thu, 29 Oct 2009 10:40:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3483396</guid><dc:creator>manang</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3483396.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=3483396</wfw:commentRss><description>&lt;p&gt;http://msmvps.com/blogs/luisabreu/archive/2007/10/10/no-you-cannot-call-server-transfer-on-an-asp-net-ajax-enabled-page.aspx&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Please refer to this for the above query. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: server.transfer</title><link>http://forums.asp.net/thread/1428350.aspx</link><pubDate>Fri, 13 Oct 2006 20:09:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1428350</guid><dc:creator>Soledad</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1428350.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1428350</wfw:commentRss><description>&lt;p&gt;Thank you. It works!!!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: server.transfer</title><link>http://forums.asp.net/thread/1413357.aspx</link><pubDate>Thu, 28 Sep 2006 21:27:28 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1413357</guid><dc:creator>ntColonel</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1413357.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1413357</wfw:commentRss><description>&lt;p&gt;Server.Transfer() probably won&amp;#39;t ever work unless somebody makes the ATLAS scripts somehow smarter.&lt;/p&gt;&lt;p&gt;Here&amp;#39;s what I think happens with the UpdatePanel:&lt;/p&gt;&lt;p&gt;1) You click on the GridView row.&lt;/p&gt;&lt;p&gt;2) The UpdatePanel performs a POST in the background while it displays the old data.&lt;/p&gt;&lt;p&gt;3) When the page finishes rendering in the background, it basically does a cut-n-paste of the area under its control from the invisible background page to the visible foreground page.&lt;/p&gt;&lt;p&gt;4) When you Server.Transfer(), ATLAS has a fit because when the URL of the invisible background page is the same, but it can&amp;#39;t find the control it wants within there to paste into the visible window.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What you&amp;#39;ll want to do is a Cross Page PostBack with a button control.&lt;/p&gt;&lt;p&gt;Here&amp;#39;s how you do that:&lt;/p&gt;&lt;p&gt;1) Create a template field.&amp;nbsp; You can convert one of your bound fields to a template field and it won&amp;#39;t make a new, empty column.&lt;/p&gt;&lt;p&gt;2) In your template field, place an &amp;lt;asp:button /&amp;gt; control, setting the CommandName, CommandArgument and PostBackURL properties.&lt;/p&gt;&lt;p&gt;Mine looks like this:&lt;/p&gt;&lt;p&gt; &amp;lt;asp:Button runat=&amp;quot;server&amp;quot;&amp;nbsp; id=&amp;quot;viewRow&amp;quot; style='display:none' CommandName='Select' CommandArgument='&amp;lt;%# Eval('itemId') %&amp;gt;' PostBackUrl='~/Stuff/ViewItem.aspx' /&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;3) Override the page&amp;#39;s Render() method:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...other render code you may write...&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each row As GridViewRow In MyGridView.Rows&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; If row.RowType = DataControlRowType.DataRow Then&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;  row.Attributes.Add(&amp;quot;onClick&amp;quot;, &amp;quot;document.&amp;quot; &amp;amp; Page.Form.ClientID &amp;amp; &amp;quot;.&amp;quot; &amp;amp; row.FindControl(&amp;quot;btnViewRow&amp;quot;).ClientID &amp;amp; &amp;quot;.click();&amp;quot;)&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  End If&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;  ...other render code you may write...&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;  MyBase.Render(writer)&lt;/p&gt;&lt;p&gt;End Sub&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;4) Define a property to expose the selected item to the desination page.&lt;/p&gt;&lt;p&gt;Public ReadOnly Property ItemId() As Integer&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;  Get&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  Return MyGridView.SelectedValue&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Get&lt;/p&gt;&lt;p&gt;End Property&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;5) Now all you have to do after that is write your receiving page to handle a Cross Page PostBack, you can search for the instructions on how to do that in Google.&lt;/p&gt;&lt;p&gt;The effect is the same as PostBack + Transfer, you just POST somewhere else instead of transfering. The ATLAS stuff seems to be fine with it.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: server.transfer</title><link>http://forums.asp.net/thread/1404052.aspx</link><pubDate>Tue, 19 Sep 2006 18:08:21 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1404052</guid><dc:creator>Soledad</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1404052.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1404052</wfw:commentRss><description>&lt;p&gt;I have the same problem.&lt;/p&gt;&lt;p&gt;I&amp;#39;m using an ImageButton in a GridView, which calls to Server.Transfer(),&amp;nbsp; and throws an Unknown error.&lt;/p&gt;&lt;p&gt;It works with Response.Redirect() but I can&amp;#39;t pass any parameter.&lt;/p&gt;&lt;p&gt;I really need to pass some data from one page to another, but in a secure way. (if I pass&amp;nbsp; an ID with Response.Redirect I should encrypt it, because it goes back to the client). Is there another way to achive this? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>server.transfer</title><link>http://forums.asp.net/thread/1391157.aspx</link><pubDate>Wed, 06 Sep 2006 15:29:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1391157</guid><dc:creator>danchristie</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1391157.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1391157</wfw:commentRss><description>&lt;p&gt;I posted this earlier but have narrowed down my problem. I am using server.transfer in an update panel. To be consistant with the rest of the app I&amp;#39;d like to continue using this if possible. I get &amp;quot;unknown error&amp;quot; and from what I am reading there are problems with server.transfer and updatepanels. I have tried this in a sample application with only one update panel containing a link button which calls server.transfer when clicked. Nothing else going on. Without the update panel the user is transfered, with it I get unknown error. &lt;/p&gt;&lt;p&gt;&amp;nbsp;Has anyone gotten around this while continuing to use server.transfer?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks. &lt;/p&gt;</description></item></channel></rss>