Showing posts with label wrong. Show all posts
Showing posts with label wrong. Show all posts

Monday, March 26, 2012

PageMethods....exists different way?

Hi,
i just installed newest version of ASP.NET AJAX and i was looking for an alternative way to PageMethods. PageMethods, if i'm not wrong, work only in page and not in UserControl (i need for that).
I found AjaxNet Pro that permits that but i don't want use other dlls in my project.
Any idea how to call UserControl's Methods with ASP.NET AJAX?

Thanks in adavance ;)

I'm having the same issue. I want to use PageMethods to call my UserControl codebehind methods. Is there a way to do that?

PageRequest context

I know the WebRequest class in js has a userContext property but how do I do the same in a PageRequest class.

Maybe I am asking the wrong question.

I want to keep track of which control raised the event (postBackElement property) so that when the request completes, I can set some properties for the control that raised the event.

Thanks.

Try to take a look at this link?about?WebRequest from MSDN -?http://msdn2.microsoft.com/en-us/library/system.net.webrequest.aspx
Is?PageRequest Class?you?said?in?your?last?post?in?Java? If?yes,try?to?take?a?look?at?this?link?about?PageRequest?Class
http://docs.jboss.org/jbportal/v2.2/javadoc/org/jboss/portal/theme/page/PageRequest.html?
http://www.valtira.com/api/cms/com/valtira/cms/client/PageRequest.html
Wish the above can give you some helps.

Wednesday, March 21, 2012

Partial Page loading using webpart

Hey,

sorry for posting again about almost the same topic, but i think i described my question in a wrong way:

I want to have a partial loading of my page - the main content is displayed immediately, while i call some external REST web service, wait for the results and display them as soon as they are ready. Since I want to add this functionality in many places, I need to create a web part. Can you help me how to implement the following:

- a web part that is able to display the results of an asynchronously called rest web service while the rest of the page is already finished

- during the function call, a waiting animation should be displayed

The important thing is that the function call has to be triggered during the page load, not by a button or something on the client side.

I already implemented the thing above using updatepanel, updateprogress, and timer. That works great, but only outside a web part :-(

Can you help me?

Best regards,

Sebastian


Web Part inside Update Panle is not suppored for partial postback.

See the more details

http://forums.asp.net/t/1066700.aspx


Well,

the web part is not inside an update panel but itself contains one...


Can you post some code details..

So it will be more helpful to me & others to solve the problem.