Showing posts with label extender. Show all posts
Showing posts with label extender. Show all posts

Wednesday, March 28, 2012

PageMethod called within User Control (ascx)

Hi all,

I am trying to call a PageMethod on an AutoComplete extender within an ascx (user control). I am able to do so when the extender sits directly on an ASPX (web form) but would like to reuse the component.

I know to decorate the method with [WebMethod] and [ScriptMethod] attributes and also to make the method static. I know, too, that the parameter names must match the expected signature.

Is it possible to place Page Methods within User Controls or do they have to sit on ASPX pages?

Thanks in advance,

MIKE

I have seen a couple of blog posts saying no and I was trying to do something similar last night and couldn't make it work. I would really perfer the AutoComplete extender and the NumericUpDown extender to have the option to fire events or at least non static methods but I don't think that will be possible under the current Ajax setup.

Saturday, March 24, 2012

Paging Bullet List Extender

I am trying to use PagingBulletedListExtender in my Project (VS 2005). When I used the demo data which was around 500 records it was working fine. But now when I have tried to connect bullet list control with more than 13000 records it has hanged. I am not surprised with this as I understand that this is a huge amount of data and no matter what application will hang. I wish there could be some way where we can get only that data which is required. One of the problem with Paging bullet list control is that the header bullet (A - B-C-D-E...) doesn't get generated till thhe time there is no corresponding data (which is a good thing in other sense). We solved this problem by getting all the records for first bullet and one record for rest of the bullet points, so this way we have specific amount of data. But I was surprised after that I could not find any other event which gets called when user has clicked the header bullet that is A-B-C-D-E-F-G........ If I could find this event I can always pass the bullet which user has user clicked and get the rest of the data. There is click event which is fired when we click any of the items in the bullet list control.

The only solution to my problem which I thought was to create two bullet controls. One for showing the alphabets and another for showing the data. I do not require the Paging Bullet control now. But I am really surprised that there is no event related to this or may be I was not able to find it. No I have to re-do this part again.

It would be really great if there is a event and some one can suggest that OR for the next version we can add this event.

Thanks,

Archna

Hi Archna,

Please create an item for this feature requesthere. So that it can be noticed by our product group.

Please also post the item's URL in this thread so that it may help others. Thanks.

Wednesday, March 21, 2012

parameters in a query string to a cascading combo box...

hi all.. i have 3 combo boxes working with the cascading extender.

the problem i facing is that the first combo data depends on an item from the query string...

since now the method is a web method, i dont have access to the querystring, (i can write the code, but it always returns nothing)...

any idea how can i catch this value? for the trace i made that's the only problem i'm having with it...

Might you be able to save the relevant information on the server in the page/session state and access it there from your web method?


hi there.. i don't understand what you mean...

Hi,
By save the relevant information on the server, means that instead of passing the value in the querystring, you could for example save what you need into a session variable (Session.Add("VariableName", Value) ... and then access it in your webservice...

 <WebMethod(EnableSession:=True)> _Public Function GetContent(ByVal contextKeyAs String)As String Dim TranslationAs String =""Dim langNbAs Integer = -999Try If (Session("ParamLang2") IsNotNothing)Then langNb =CInt(Session("ParamLang2"))End If Catch ExAs ExceptionEnd Try . . . . . . . . end function

well.. that's a good idea..

Thanks :)