<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" /><div>
<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server"></telerik:RadToolTipManager>
<radC:RadComboBox ID="RadComboBox1" ToolTip="ToolTip Test" runat="server" SkinsPath="~/RadControls/ComboBox/Skins" Width="150px">
<Items>
<radC:RadComboBoxItem Text="1" Value="1" />
<radC:RadComboBoxItem Text="2" Value="2" />
<radC:RadComboBoxItem Text="3" Value="3" />
<radC:RadComboBoxItem Text="4" Value="4" />
<radC:RadComboBoxItem Text="5" Value="5" />
<radC:RadComboBoxItem Text="6" Value="6" />
<radC:RadComboBoxItem Text="7" Value="7" />
</Items>
</radC:RadComboBox>
</div>
</form>
| protected override void Render(HtmlTextWriter writer) |
| { |
| StringWriter stringWriter = new StringWriter(); |
| HtmlTextWriter htmlWriter = new HtmlTextWriter(stringWriter); |
| base.Render(htmlWriter); |
| string html = stringWriter.ToString(); |
| html = html.Replace("\t", ""); // tabs |
| html = html.Replace(" ", " "); // double spaces |
| html = html.Replace(" />", "/>"); // space before end of tags |
| html = html.Replace(">\r", ">"); // space before end of tags |
| html = html.Replace(">\n", ">"); // space before end of tags |
| writer.Write(html); |
| } |
| ColorPickerID.Items.AddRange( ColorPickerID.GetStandardColors() ); |
| ColorPickerID.Items.Add(ColorPickerID 'coloritem'); |
Anyone tried to get the browser back button to work with the Prometheus release yet?
I can't do it... Perhaps I'm missing something.
Here's what I've done.
-- Install the ASP.NET AJAX framework, and the ASP.NET AJAX extensions.
-- Install the Prometheus release
-- Build an ASP.NET Ajax-enabled website that contains two pages: Default.aspx and Error.htm
-- On Default.aspx, I add a button (Button1), a regular ASP.NET Panel (Panel1), and the new Prometheus AjaxManager (whose seemingly relevant properties are as follows: EnablePageHeadUpdate=True; EnableAjax=True; EnableHistory=True; EnableViewState=True; also I do NOT set any ClientEvents).
-- I also add another Button (Button2) (more on what that does in a second).
-- In the AjaxManager configurator, I set Button1 as the control that fires the Ajax request, and Panel1 as the control that receives the request. In my code behind, for the Button1 click event, I simply add a control (a button, but it could be anything). I'll call this the "code-added control".
-- I click on Button1, and the "code-added control" (a button, but again, could be anything) is loaded into the Panel, using Ajax of course.
-- For the Button2 (which is not associated with Ajax manager), I have a code-behind click event that will either use Server.Transfer or Response.Redirect (I've tried both) to cause the application to transfer / redirect to Error.htm (this models what my real application will do when an error is encountered).
-- I click on Button2, which transfers / redirects me to the Error.htm page. From here, I would expect that I could use the browser back button to navigate back to Default.aspx, and once there I would expect to see my "code-added control" still visible in Panel1. But it is not!
Am I doing something wrong? Based on prior communication I've received from Telerik, I understood that Prometheus would have allowed me to see that "code added control" in Panel1.