Showing posts with label public. Show all posts
Showing posts with label public. Show all posts

Wednesday, March 28, 2012

calling C# f. from ajax

how can I call my f in C# ex.:

public void test()

{

Label1.Text = "test";

}

from AJAX ?

I need to call that f. from dragpanelextender after dropdown event

You can either use webservice or pagemethods. Refer to this:http://miejowo.blogspot.com/2006/10/calling-web-service-with-beta.html#links

Monday, March 26, 2012

Call webmethod in page possible

I thought it was possible to call a public method with the attribute [WebMethod()] above it. But when I try out the sample of the AutoCompleteExtender it works perfectly when I put the code in a webservice (.asmx). Unfortunately when I put the same code in my default.aspx page it doesn't work.

I changed the ServicePath to ="Default.aspx" but that doesn't seem to do the trick.

So does anyone have a clue here what I'm doing wrong?Hi,

at the moment the auto complete stuff works only with a web service. Page methods are not supported.
However, do a search in this forum since a user (I can't remember the name, sorry) has coded a custom version that supports page methods.

Jay Kimble is your man.

http://david.codebetter.com/blogs/jay.kimble/archive/2006/07/17/147436.aspx


The auto complete extender in my library also supports this.

Saturday, March 24, 2012

CalendarExtender: Any way to make dates unselectable?

I'd like to make certain dates unselectable (ie Public Holidays)

Anyone know of a way to do it with the new calendar, something along the lines of the DayRender event that we have for the bog standard ASP calendar would be perfec.

thanks.


hi, i have the same problem. i also want to make dates in furure unselectable. this is possible with old asp:Calender, but not with CalenderExtender of AjaxToolkit. if you have found a solution please inform me.

many many thanx. my email:paijyj@.gmail.com


My approach has been to allow them to select it but then use a validator to inform them they can't choose a date in the future/past whenever.