JQuery, ASCX and webmethods not seems to be working

Posted by Karthik K on Stack Overflow See other posts from Stack Overflow or by Karthik K
Published on 2010-04-24T15:07:39Z Indexed on 2010/04/24 15:13 UTC
Read the original article Hit count: 463

Filed under:
|
|
|
|

Hi all,

I have a cascading dropdown (3 of them) Type, Categories and Sub Categories. Type loads first and upon selection of Type, Category load and selection of Category, Sub Category loads. Also i have 2 buttons, "Add Category" and "Add Sub Category" Upon clicking on these buttons, i call a JQuery Modal Form to add them. I use Webmethod in code behind to add them to database

This works perfectly in ASPX page.

Since I need use this in 3-4 pages, i thought of making the above as User control (ASCX). When i try to use this in a webpage, the webmethods in ASCX don't get called.

Is my approach correct? what should be done for my scenario

lOoking forward for your suggestions.

Thanks in advance Karthik

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#