ラベル item の投稿を表示しています。 すべての投稿を表示
ラベル item の投稿を表示しています。 すべての投稿を表示

2012年3月28日水曜日

Response.Redirect and AsyncPostBackTrigger

I've got a "Previous" button on a webform that uses this code to take user to previous page:

Response.Redirect(Session.Item("PREVIOUSPAGE"))

I set the button as an AsyncPostBackTrigger. This error occurs when the button is clicked:

Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.

If I change the button from AsyncPostBackTrigger to PostBackTrigger, it works fine.

Why won't this button work asynchronously? I've got 2 other buttons on the same page that are being used as AsyncPostBackTriggers with no issue.


I think it would not work because asynchronously - the Ajax enviroment is just expecting to work with the session variables of the current page, but you are trying to tell it to revert back to previous session ids with a redirect. A postback will work because it reloads or mimics a back button of the browser. Not saying it is not possible - I am wrong plenty of times - but it would make sense that that would be the behavior. You'll also get the same behavior if a session times out and the user tries to do a back button to a previous ajax enabled page.

What I would at least consider a better solution is leverage the ability with Ajax to load and unload controls dynamically. This way you can have 'paging' and still retain the benefits of the asyncrhonous enviroment.


There is an article on how to achieve that in the Scott Guthrie's blog:


http://weblogs.asp.net/scottgu/archive/2007/02/06/asp-net-ajax-goodies-documentation-download-back-button-support-new-animation-control.aspx

Juan

2012年3月24日土曜日

Right Click popups OWA style

Hi.

I need to use atlas to allow me to display right click popups, the content of which depends on the item that was right clicked on.

Basically.. I have a repeater which lists usernames.

I want to be able to right click on the username which then displays a popup with a few options relating to the selected user.

I have figured out that the popup needs to be in a update panel, and right clicking on the username needs to fire of a webservice which returns the options.

What I am not sure of is how to code it and what Atals functions to use.

Anyone got any pointers?

Cheers

Amit

You might be able to modify the click behavior with a new click behavior that handles the right click, cancells it to disable the browser right click contxt menu, and pop a floating div with the contextual items that you require..
try this:
Handling the context menu with a custom Atlas Behavior

2012年3月21日水曜日

RoundedCorners Control and Rounding Outward

Hi all,

I just recently saw that the latest toolkit (1.0.10301) supposedly implemented the Outward rounding (per work item 5611 and changeset 17333). I've downloaded it checked it out and I can't see any changes. Did they actually make it in? And if so, how do I access them so that I can access the inward and outward rounding on corners? Did I just miss it somewhere? Any help would be greatly appreciated. Thanks.

Cheers,

Gunner

So anyone looking at this or have an answer to this? Is this located somewhere and I missed it on search or something?