Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all
I create other project classLibrary with Name CORE Contain javascript file and view (cshtml).

i create an project asp MVC has referent CORE.dll, i wanna used javascript and view in core.dll for this project. but i dont how to call it ?

please help me

What I have tried:

In project core.dll, a create those file and built it
in project asp mvc, i called those used resource, but it not working.
Posted
Updated 27-Oct-17 1:00am

1 solution

 
Share this answer
 
Comments
tieudoan208 30-Oct-17 22:57pm    
in aspx, i created control textbox enable javascript as Ajax Control and register javascript throw iscriptcontrol. But in asp mvc. i don't know register it where.

Her my code in aspx control Checkbox.


protected virtual IEnumerable<scriptreference> GetScriptReferences()
{
return new ScriptReference[] {
new ScriptReference("Lib.Resources.LibCheckBox.js", "Lib")
};
}

anyone give me a solution?

Thanks

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