Last post Jul 10, 2009 05:13 AM by ashish.k
Jul 09, 2009 07:29 AMfirstname.lastname@example.org|LINK
I'm developing a complex WebCustomControl based on a Panel.
Thank you a lot!!!!!
c# server control
Jul 09, 2009 09:04 AM|Ashish.K|LINK
If your website is AJAX Enabled you can Use Json webervice call.You can call a c# method from JS using this method.
Jul 10, 2009 02:26 AMemail@example.com|LINK
thanks for for comment, but I think it's too complex if I need to call a C# funtion. This function only is querying agains DB. Nothing else. Must be a more easy call method for calling C# methods within a .js file function when all the code is in a WebCustomControl...
I checked Webmethod solutions. Despite to Scriptmanager had EnablePageMethods="True", PageMethods calls in js file function was undefined. Paradoxically a Webmethod is being called in the page which contains this control, but not inside the control.
Jul 10, 2009 03:42 AM|Ashish.K|LINK
PLease correct me if i am wrong If your problem is calling the method please place the method in a basePage and inherite all pages from this BasePage. this way all the pages will have this method and you can call it .
Jul 10, 2009 04:33 AMfirstname.lastname@example.org|LINK
mmm good choice... I will use it...
Jul 10, 2009 05:13 AM|Ashish.K|LINK
No problem. Please mark Answer right if it works.