AJAX :: Changing URL With ScriptManagers History Points?

Jul 12, 2010

I'm using asp.net AJAX and history points with the ScriptManager and it works great. My only problem is that when I make non AJAX pages I have come to love url-rewriting with nice "hackable" urls. Without SecureHistoryState my url will look like for example [URL] where "/Home/Frontpage" is the page to show. I have seen on other web-pages with AJAX (maybe not asp.net) that the url will change into for example [URL] which is a lot nicer. Or if I could have[URL]I would be very happy. I don't need the history url to contain anything else than the page path. Is this at all possible with asp.net AJAX?

View 1 Replies


Similar Messages:

AJAX :: Way To Maintain History Points Even When Visit Different Pages?

May 28, 2010

I have a website which contains several ajax enabled pages. I need to maintain state in each page. I have added historypoints in each page. My back button works fine as far as I am on single page. But when I visit different page and then click back button to come to original page, only the last history state for that page is loaded and all other seem to get wiped out. What I mean is, clicking back button again takes me to previous page instead of loading same page again from history point. Is there any way to maintain history points even when I visit different pages

View 4 Replies

AJAX History Points Lost When Returning To Previous Page?

Jan 14, 2010

I am attempting to retrofit a web application that had a rudimentary, yet mostly effective navigation infrastructure that, when properly utilized, allowed navigating forward and backward through AJAX states and other pages through the use of additional <asp:Button> objects labeled "Back" to perform special code for restoring previous states. There was an elaborate stack push and pop algorithm for this. The effect was very similar to what is described in Diagram 1 (AStatex refers to an AJAX related state of the page). The reason for this is so that it takes away the reliance on the contrived Back button and so that accidentally hitting the browser's back button or hitting the Backspace key won't cause a loss of state.

View 2 Replies

Web Forms :: Setting History Points For Crosspage Posting With Masterpage?

Jan 11, 2011

I am trying to set history points for a form that posts to a second page. Both the first page and second page are content pages in a master page.The form is in an update panel and consists of several textboxes, one radiobutton group of two radiobuttons and one ajax calendar control. The last two textboxes are a zipcode box and a county box. The county box is populated from a database table when the user fills in the zipcode in a textbox and tabs out or clicks in the next textbox.

View 3 Replies

State Management :: How To Control And Add Extra History Points In IE8 Back Button

Jun 23, 2010

I wasn't sure where to post this type of question so here you go. The title says it all really I'm using the Microsoft.web.preview dll so that we can provide history support for the Ajax controls used in a .net 2.0 project. This works in IE6 but fails to function correctly in IE8 it appears to add additional history points when you attempt to navigate backwards through history.

Enter the page > Make a change using Ajax (add history point) > press back button you would expect to go back to initial page state but another two history points have been inserted between your initial page request and new your manually added history point. there is no where in the code that is adding these additional history points by accident. Remember it works perfectly under IE6. What are my options do I have to upgrade to 3.5 .net to make use of the history functionality built into the scriptmanager?

View 1 Replies

C# - How To Use Multiple ScriptManagers

Dec 10, 2010

I have an asp.net 4.0 app where all pages use a master page. I have several dynamic aspects going on in both the masterpage and the child of the pages. For both I'd like to be able to use the built in Microsoft ScriptManager with this kind of pattern:

Code behind:

[code]...

So, to use this technique I'd like to expose static [WebMethod]'s in both my masterpage and my child page. My question is, how do I manage this with a ScriptManager? From my understanding, I need to have a ScriptManager within a form tag (why?) so that a javascript library is added to allow me to use the PageMethods object. Should I just create one ScriptManager in my masterpage and tuck it in a useless form tag in the masterpage? Will that ScriptManager pickup the [WebMethod] functions in my child page? And what about that form tag: I know I can only have one form runat='server' tag so how would I manage a that with other forms I need within my masterpage? Like my little form that wraps my search function at the top of the page?

View 3 Replies

Can A Page Have Multiple ScriptManagers

Jun 15, 2010

Can a page have multiple ScriptManagers? If yes then under what condition will it be required ?

View 2 Replies

Maintain Browser History In AJAX?

Jan 20, 2011

How can maintain the browser history while performing ASP.NET AJAX asynchronous postback operation.

View 1 Replies

AJAX :: Verify If Points Exists On Line Chart Control

May 7, 2015

This is my aspx code :

<asp:Chart ID="ChartAlertes" runat="server" Width="500px">
<Titles>
<asp:Title Text="Nombre d'alertes et leurs status en fonction des filtres renseignés"
BorderColor="Black" Alignment="TopCenter">
</asp:Title>
</Titles>

[code]...

I display 2 Points (2 columns) in the Chart Control and I change the color of the each Points with :

ChartAlertes.Series[0].Points[0].Color = System. Drawing. Color.Red;ChartAlertes.Series[0].Points[1].Color = System.Drawing.Color.DarkOrange;

But sometimes, I have only 1 Point to display or nothing at all on the Chart. So I'd like to check If there are some Points before to put the color of each Point.

For example :

if (ChartAlertes.Series[0].Empty == false)
{
//...
}

View 1 Replies

AJAX :: Can't Disable Back Button History

Oct 5, 2010

we have a web form with check boxes on.

When we click our back button the page only returns to the previous state (un checking the check boxes one by one after each click). We would like it to go back to the previous page and remember the history of the page.

I've tried :

[Code]....

but this just crashes the page.

our javascript button looks like this:

<input type="button" value="Back" onclick="history.go(-1)" />

(the browser back button does the same thing)

View 6 Replies

AJAX :: Find The Extensions History Control?

Feb 16, 2010

I want to add the History Control to my Ajax Extensions Toolkit.

I'm using Visual Web Developer 2008 Express Edition Version 3.5 SP1

Is this Possible? - cause I understand Visual Studio 2008 Standard Edition SP1 already includes these Ajax Extensions.

If it is from where can I find the right download?

View 1 Replies

Ajax Javascript Error, Break Point Points To The View State?

Oct 13, 2010

I have an aspx page that is getting an Object Expected javascript error on submit, but when you break into the error the breakpoint is somewhere in the middle of the __VIEWSTATE input html element.A javascript stack dump shows just "{anonymous}(null)".What does this mean and how does one go about debugging further?

View 3 Replies

AJAX :: Data From WebService Is Not Retained In Page History

Jan 19, 2011

I am using a web service to pass back search results. To do this I am using ToolkitScriptManager with a ServiceReference to my web service and calling the web service up with javascript. The javascript call looks something like this:

WebService.GetResults("search term", OnSuccessGetData, OnFail);

If the request is successful the "OnSuccessGetData" function is fired and the results are inserted into a DIV tag. Because the resulting search results can be large I wrote the service to only pass back the first 20 results on the first trip. After that I make calls again to the service to return the next 5 results and continue to do this until all the results are loaded. This all works wonderful. You can see it in action at www.lsbio.com and use the search term "human mouse". My problem is that when the user clicks on a product and then hits the 'Back' button the search results have to be fetched again from the webservice.

Is there a way to keep the search results in the DIV tag to remain as part of the page so when the user navigates away from the search page and uses the 'Back' button to navigate back the search results are still there without having to hit the webservice again?

If I didn't make myself clear enough on what I am trying to do, go ahead and test the site www.lsbio.com, use the search terms human mouse, click on a product and then hit the back button.

View 1 Replies

AJAX :: Maintain Accordian History And User Navigates To Next Page

Mar 3, 2011

How to maintain Accordian history and user navigates to next page and trys to comeback to same page (where the accordian is). Its not actually a different page, but I am using asp multi view and Accordian in a view.

View 1 Replies

AJAX :: Firefox Retaining History Point In URL Even After Response.Redirect?

Dec 14, 2010

Observing this strange behaviour in Firefox when a history point is added using ScriptManager. Firefox retains the history point in a URL even if Redirect the browser to a new URL.teps to recreate:1. Save the code below as an aspx page in a website and browse to it.2. Click on the "AddHistoryPoint" button. It just adds a history point to the browser URL. (#&&key1=value1 gets added to URL)3. Now click on "Redirect to Google" button. The browser redirects to [URL]) is retained in the URL bar.This happens only in FF (checked in v3.5 and v3.6) browser. This odd behaviour in FF causes lot ot trouble when redirecting to other pages in the same site that change their state based on the state info present in URL.

[Code]....

View 5 Replies

AJAX :: Javascript Window.history.back() With Modal Popup Extender

Sep 30, 2010

I have a asp.net page that has a list of items. When one of the items from the list is clicked a details page is displayed. This details page has a link button to show a popup for history of the item. The details page also has a button with text 'Back'. The back button has onclick event set to "javascript:window.history.back();".

This back button works fine and goes back to the first page. However when the user is on the second page and opens the pop up by clicking on the link button, the back button stop working and displays Webpage has expired message.

View 2 Replies

Detect Client-side When A Page Load Is The Result Of An AJAX History Point?

May 25, 2010

I'm trying to prevent a "flicker" effect that is occurring on my ASP.NET page which occurs when a user navigates to the page via the browser back button after having navigated away from it. The reason for the flicker is that I'm using an Update Panel which has some content in there on the initial page-load. As a result, when the page is loaded via a back button that initial content is shown very briefly before it is updated with the correct History-aware data.

In order to overcome this I am intending on having the updatepanel hidden (display: none) on inital page load and then show it as long as we don't have any history to deal with. The problem is that I can't find out what to check to determine if there's any history. I can see that the Sys.Application has a _history member but when I'm checking it on page init it is null each time.Does anyone know what I should be checking to determine if there's history to deal with for a page load client-side? And at what point to do it?

View 3 Replies

Web Form And Ajax Data Lost On Post Back - Finding Possible Cause / Ajax Or Changing Visible Property

Sep 15, 2010

I have two Repeater controls, each hosted in a user control. Both user controls are contained in the same aspx page. Only one User Control is visible at any one time. The repeaters are comprised of checkboxes, and text boxes for user input.

The aspx page is configured with an Ajax ScriptManager; and contains several Ajax UpdatePanels. These UpdatePanels result in partial page post backs when text is changed in a textbox control in controls on the aspx page (this is not the behaviour for the Repeaters in the User Controls). Through use of several AsyncPostBackTriggers, various controls contained in the other UpdatePanels on the page have their content refreshed in response to the partial page post backs they are configured be notified about.

Depending on a radio button group selection, I set the visible property to true or false - as appropriate for the User control containing a repeater control. The Repeater control is then populated with data using databinding. All of this works.

However, when the Submit button is clicked, the Repeater control contains no data.

Given that I am not dynamically adding the Controls containing the Repeater controls (but using Visible true / false). I would have thought that the State of the fields and the data in the visible control would be preserved during the post back.

The User Controls are contained within the UpdatePanel that contains the Submit Button.

I have explicitly Enabled View state without any effect.

Am I correct in assuming that I should not have to do any explicit handling of data changes the user makes (via client side script and manipulation of an Data Structure Representing the Repeater Data); and the View State should maintain the data I need to access on the server when submitted?

I do not believe that it is the User Control visible state changes that are causing the issue because when the page is initially loaded on of the User controls is populated with dummy rows (so it displays).

I am suspicious that because the visible state of the controls is changed during partial page post back, that the Page View State ends up with no knowledge of the User Control and therefore cannot track its data (or changes).

View 1 Replies

AJAX :: Changing Web Reference URL

Feb 25, 2010

I have a GridView on my main page, and each record contains the address of a different Web service. When a user clicks on a record they are directed to a details page for whatever they have chosen. I am displaying a GridView on the details page with an ObjectDataSource pointing to a Web service. My problem is that I somehow want to change the 'Web Reference URL' depending on which record the user chose on the main page? Is this possible or is there another way to go about the problem, such as jQuery/AJAX?

View 2 Replies

Why Won't VS 2005 Hit The Break Points

Feb 12, 2010

I'm going crazy and wasting a lot of time. I am running in DEBUG, checked the web.config to ensure debug=true is there, checked the code to ensure I am reaching it, cleared all temp files and pdb's. The only thing that works is to continually kill the solution, create a new solution and add all the projects again.I shouldn't have to do this every day.

View 4 Replies

AJAX :: Application Hangs While Changing The Tab?

Feb 19, 2010

I am using update panel and Tab container of Visual Studio 2008 (VB .NET) in my pages, but in one of the pages I am having a problem. The page structure is something like a List Tab and Details Tabs. On page load LIST tab is visible and other tabs invisible. User clicks on a record and click Modify button. Then List tab gets invisible and other details tabs (4 of them) visible. Here I have OK (to save data) and CANCEL (do not save the data) buttons. On which the list tab again gets visible and other tabs invisible. Now here I am facing a problem. I have same functionality on my other pages also. But in this page when I click on OK or CANCEL button my application hangs after END SUB. My whole click event of both the buttons runs fine up to END SUB but after that the problem starts.

View 2 Replies

AJAX :: Changing Web Service URL In App.config?

Jun 16, 2010

Is it possible to change the url that the web service is using in the app.config file once the windows application is running? Example a user changes the index of a drop down that will change the URL of the web service?

What I'm trying to accomplish is having a drop down that will let the user select between using the web service on our dev system versus the live system.

View 4 Replies

AJAX :: Changing Page Without Refreshing?

Jul 30, 2010

I am very new to ASP, .NET and MVC but am reasonable with HTML, Javascript and CSS. I was hoping someone could answer a question about how to change a page without refreshing the actual page.

<div id="dashboard">Data-Heavy Content Content</div>
<ul id="menubar"><li><a>Home</a></li><li><a>Page 2</a></li>...</ul>
<div id="MainContent">Main Page Body</div>

The dashboard div contains a lot of information that will be present on each page, so when the user navigates to another page, I only want the MainContent to change. I suppose this could be done by using an iframe, but I'd rather not go that path.

How would I go about this? Are there any tutorials that cover this? What functions/terms should I be looking for regarding this?

Edit: I don't know if it is relevant, but I thought I'd better state that I am trying to do this using MVC, and I want to get the content of the MainContent div handled by the appropriate controller of the 'page' contained within that div.

View 3 Replies

AJAX :: Changing The Path Of Scriptresource.axd?

Feb 12, 2010

In my website i have used ajax. I have made a subdomain. All the files are in the subdomain. But no ajax controls are working. When viewing source,

<script src="/subdomain/ScriptResource.axd?d=pIGD9Q63Ayfy9TvkTDZXYa7KKGxArRY0b7cvnO2ePCz6Y3RvV0egKLh8SptZV4uh0uHt-WTAswFxYQAekdl0wytwvJVYp1G-DPHL4quv6Vc1&t=633528638860312500"
type="text/javascript"></script> is coming.

In web.config i have written

[Code]....

View 1 Replies

State Management :: Session Table Value Also Changing When Changing Any Coloumn Name?

Jan 10, 2011

The problem is when am assigning my session table value to newly created table and if now am changing any coloumn name then the session table value also changing.

But my question is am assigning Session value to newly created table so how should session value should be affected?

for refference in my application

sessionState
mode="InProc"

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved