Click here to Skip to main content
15,904,348 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my project i found this line often used. I tried to search in google but didnot get the exact link where i can read about this.

Can you help me understanding this ?

C#
public partial class Shuttle_AdminShuttle : System.Web.UI.Page
{
    private int intRoleId;
    public string User_ID = null;
    protected void Page_Load(object sender, EventArgs e)
    {
        intRoleId = Convert.ToInt32(Session[TMS.Common.CommonConstants.CONST_ROLE_ID]);
        AjaxPro.Utility.RegisterTypeForAjax(typeof(Shuttle_AdminShuttle));




i want to understand this line 
 AjaxPro.Utility.RegisterTypeForAjax(typeof(Shuttle_AdminShuttle));
Posted
Updated 10-Sep-17 20:42pm

 
Share this answer
 
Comments
anurag19289 6-Jan-14 9:18am    
Hello Tadit ji,

Can i have an explanation in your words regarding this.
Hello Anurag,

Please go through these articles. I have not gone through them. It is late here man. :)

If you don't get anything specifically from those articles, reply me. I will read and try to make you understand.

Thanks,
Tadit
anurag19289 7-Jan-14 1:49am    
Hello Tadit ji,

What i have understood so far from the links that you gave is

1)we have to add the dll
2)create a webservice
3)Add the specific attribute to the method with [AjaxPro.AjaxMethod].
4)Add the JavaScript function to call the method.
5)Create the call back function to deal with the returned data.

But there are some doubts like
-->when we sould use this(a real time example would be much better)
-->what is the advantage
-->One of the most worthy features of this framework is that it supplies a developer with only one method for call and, therefore, dramatically increases the productivity effect.
(what exactly this line means)

Dear Tadit ji,
kindly read and explain me please.
anurag19289 7-Jan-14 2:06am    
and one more doubt like :

in my project this is used but i dont find any service is called.

[AjaxPro.AjaxMethod]
public void fnReleaseLock()
{
TMS.API.Route.VO_Route_Lock Route_Lock = null;
TMS.Business.Masters.INT_Route objBizRoute = null;

try
{
ArrayList iStatus = null;
//release locks
objBizRoute = new TMS.Business.Masters.INT_Route();
Route_Lock = new TMS.API.Route.VO_Route_Lock();

Route_Lock.RouteID = "0";
Route_Lock.Locked = "0";
Route_Lock.LockedBy = Session[TMS.Common.CommonConstants.CONST_USER_ID].ToString();
Route_Lock.LockedTime = DateTime.Now.ToString();

iStatus = objBizRoute.LockRoute(Route_Lock, 1, 10);
//release locks

}
catch (Exception exp)
{
//throw exp;
LogError.WriteError(exp);
}
finally
{
Route_Lock = null;
objBizRoute = null;
}
}
basically we implement ajax through register that dll
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900