Showing posts with label back. Show all posts
Showing posts with label back. Show all posts

Wednesday, March 28, 2012

AJAX UI and the old BACK BUTTON problem

Hi,

I googled "disable back button" and all solutions are fine for a standard ASP page but not for an AJAX UI. I can and do want to redirect my user to his last action inside my javascript code. But this of course only works if I can catch and reassign a new function to history.back(). Assigning a new function works (alert history.back gives me my code) but obviously the browser does not use it.

With AJAX this is a SERIOUS issue. Of course I can open the page in a new control less window, but even that at least the old IE with a tab add on screws up by opening the window in a tab.

So is there any solution for this ?

Thanks

Joe Robe

Hi,

While mainly focused on security, in one of the two (in the series of five), vids that are available on-demand already, Joe Stagner mentioned that they would be looking at this issue in an upcoming webcast. This is, after all security related, in that you need to know what is going to be executed - if and when. Beyond that, he mentioned that he is revising (again), the tutorial AJAX vids available in the Learn section of asp.net. Take a look at his site http://joeon.net for links for the on-demand webcast, or to sign up for the live Meeting editions still available (one a week, I think). As these have Q&A sessions, you'd have a shot at posting your question directly. Hope it helps. BTW, if you get a good answer - remember to pass it along. BRN..


In every page or in mater page add a script that will execute on page load. This script should imitate FORWARD button on the web browser. Note that it will do nothing if there is nothing in web-browser forward history. Since every page of your app tries to skip forward one page then one-by-one your browser will advance to the very last page in web-browser history.

history.go();


Take a look at Nikhils solution to this problem:

http://www.nikhilk.net/BackButtonSupport.aspx

Monday, March 26, 2012

Ajax ToolKit Version 1.0.10920.0

hey Guys,

I am facing a strange problem. Until now I was using toolkit ver 1.0.10301.0 for my app, few days back I downloaded latest version of toolkit that is ver 1.0.10920.0 and I am facing few problems.

1) I am not getting focus in Modal PopUp fields in Mozilla Firefox, in IE everything is fine.In earlier version also it works fine.

2) If I am calling message box(error message:which again is a modal PopUp) from my modal PopUp, its not getting displayed, although error message PopUp gets displayed properly if called from page. Sadly this also use to work fine in earlier version which I was using.

P.S I am not getting any Javascript error also.

please suggest, are these bugs in latest version or I am doing some mistake.

Regards,

Pankaj

I'm really not sure of the problem, but I gonna take a guess at something. When you did the upgrade and copied the new AjaxControlToolkit.dll over the previous copy and then went to your Toolbox and selected the new updated AjaxControlToolkit.dll, did you uncheck the previous reference to the 1.0.1.0310.0 controls? I'm not sure if that has anything to do with it, but there could possibly be some kind of version reference issue, if you didn't do this.

AJAX Toolkit install on Vista reverts back to Beta version & whats up with the sub folders

Anyone have issues install AJAX on Vista OS? It appears that the controls revert back to <cc1 etc... as was in beta version dubbed Atlas... Anyone know why the many sub-folders?

Previous apps however do recognize the controls from the Toolkit as <ajaxToolkit: etc...

Thanks,

It has worked fine with us. We have a couple people using Ultimate x64 and others using Ultimate x86.

Wednesday, March 21, 2012

Ajax TabControl and validation are incompatible - any way to resolve

Hi -

I've found out that the buttons in my tab panels no longer post back when I add validation on the input form. Is there a way around this? Has anyone solved this?

Thanks for ANY help or idea how to tackle ...

Oliver

Each tab have their own buttons? if this is a case use ValidationGroup. e.g: in tab1 assign to ValidationGroup property in your validation controls and button controls to say tab1, in tab2 assign a validationgroup property of say tab2 and so on.


the content of each tab are in a user control ... I thought that would take care of it, ... thanks for the pointer

AJAX tab control postback of dropdown event in VB

I've read so many posts my head is spinning! So, I'm struggling w/ the autopost back of a dropdown from within a AJAX tab control.
Does anyone have a simple example? Here's my code.

<asp:ScriptManagerID="ScriptManager1"runat="server">
</asp:ScriptManager>
<asp:SqlDataSourceID="SqlEvents"runat="server"ConnectionString="<%$ ConnectionStrings:LLB_Con %>"
SelectCommand="SELECT [T], [X] FROM [Events] ORDER BY [startdate] desc"></asp:SqlDataSource>
<ajaxToolkit:TabContainerID="tabAdmin"runat="server"ActiveTabIndex="1"Height="512px"Width="1121px">
<ajaxToolkit:TabPanelID="TabPanel1"runat="server"HeaderText="Manage Data">
<ContentTemplate><br/>
<asp:HyperLinkID="hlEventFormat"runat="server"NavigateUrl="~/Admin/Event_Format.aspx"Text="Manage Event Format"/>
</ContentTemplate>
</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanelID="tpProcessing"runat="server"HeaderText="Event Processing">
<ContentTemplate><br/> <br/><br/>
<asp:DropDownListID="ddEvents"runat="server"
DataSourceID="SqlEvents"
DataTextField="T"
DataValueField="X"/><asp:HyperLinkID="hlEnter_Event"runat="server"Text="Enter Event Data"NavigateUrl="~/Admin/eventEntry.aspx"/>
</ContentTemplate>
</ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>

I think you need to add at the DropDownList

AutoPostBack="True"

George