Nov 15, 2012, 4:12 AM
Problem in raising direct methods in usercontrol
Hi,
Anyone can please help me in getting through my problem of solving ext.net task..
I need to raise directmethods from usercontrols in ext.net as i have a huge code which i can only put up in asc.cs rather than .ascx direct events
and i need to call this page in .aspx.
My task is..
I need to get the records from the database and display in panels as 20 per page, which is placed in placeholder.This is to be displayed in .aspx page layout.Each panel i used is usercontrol which contains each record as upper panel and corresponding lower panel is hidden by default.The upper panel contains a gridpanel whose each row contains edit button,onclick of edit button in corresponding upper panel i am capturing rowid and automatically lower panel of the record is opened by populating data of that rowid.The panel, gridpanel ,edit button all are in usercontrol.Once the lower panel is opened i need to do some operations and populate date again to that row in gridpanel in the upper panel.I had edit, delete,cancel methods in usercontrols.I had huge code to that so i require to raise directmethods which is quite comfortable than directevents in script.But i couldnt raise directmethods.Is there any alternative to raise listeners to the usercontrols?
Please Guide me if possible...If u r not clear, let me know i will be more clear.
Regards,
Lavanya
Anyone can please help me in getting through my problem of solving ext.net task..
I need to raise directmethods from usercontrols in ext.net as i have a huge code which i can only put up in asc.cs rather than .ascx direct events
and i need to call this page in .aspx.
My task is..
I need to get the records from the database and display in panels as 20 per page, which is placed in placeholder.This is to be displayed in .aspx page layout.Each panel i used is usercontrol which contains each record as upper panel and corresponding lower panel is hidden by default.The upper panel contains a gridpanel whose each row contains edit button,onclick of edit button in corresponding upper panel i am capturing rowid and automatically lower panel of the record is opened by populating data of that rowid.The panel, gridpanel ,edit button all are in usercontrol.Once the lower panel is opened i need to do some operations and populate date again to that row in gridpanel in the upper panel.I had edit, delete,cancel methods in usercontrols.I had huge code to that so i require to raise directmethods which is quite comfortable than directevents in script.But i couldnt raise directmethods.Is there any alternative to raise listeners to the usercontrols?
Please Guide me if possible...If u r not clear, let me know i will be more clear.
Regards,
Lavanya