Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
1.15/5 (4 votes)
See more:
JavaScript
function SetFocus(e, Control)
{
    if (getKeyCode(e) == 13)
    {
        document.getElementById(Control).focus(); return false;
    }
    return true;
}
Posted
Updated 20-Oct-14 1:43am
v3
Comments
Sinisa Hajnal 20-Oct-14 6:14am    
Please format the code and explain your layout in more detail. Thank you.
Member 11151776 20-Oct-14 6:22am    
I created a function in layout layer, i want to call from index but i did it wrong how can i call(e mean method and control is from UI)i want to place @id name in control parameter
SRS(The Coder) 20-Oct-14 7:43am    
design sample ?

1 solution

By this way you called the Action/method from layout page-

Set in layout page-

@{Html.RenderAction("Category", "Home");}



This will invoke Category action of home controller.
 
Share this answer
 

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



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