Click here to Skip to main content
15,891,905 members

Comments by tieudoan208 (Top 18 by date)

tieudoan208 8-Feb-22 21:01pm View    
I has a solution that. Project containt Lib js, in Middware a create a request and then i wrote contens js into this, in page cshtml i add url.

Eg.
MyLib.axd?v=23345
tieudoan208 24-Dec-19 21:07pm View    
Yes, but with aspx in event int page, i readed js in resource (dll file) and add into link as.

protected override void OnInit(EventArgs e)
{
base.OnInit(e);
RegisterResouce.Include_JS(this.Page.ClientScript);
RegisterResouce.Include_CSS(this.Page, this.Header);


}

and then when I create page aspx in inheritan page in dll.

public partial class ds_baucu : fpage


But in MVC or NetCore it has not page or Scripmanager to add it into page
tieudoan208 20-Dec-19 23:24pm View    
Yes. But i wanna inlude file into project 1 as Library. when other project add that dll, and then i can use those funtional c# and js.
thanks
tieudoan208 30-Oct-17 22:57pm View    
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
tieudoan208 30-Apr-16 6:54am View    
No I want to it suggest function (support visual if i refer in my website) else if i pack it into dll file, if not sugggest function when typed code.