How to call JavaScript/jQuery function from .cs file (C#) -
i'm working on asp.net (c#) project include page files (aspx, aspx.cs) , (.cs) file. i'm able access javascript/jquery functions page files (aspx, aspx.cs) using scriptregister
, question how access javascript/jquery function alone (.cs) file. i'm generating html tags in (.cs) file therefore in need of call javascript/jquery functions (.cs) class.
the file have are, example, default.aspx
, default.aspx.cs
, web.cs
(my concern call javascript/jquery functions web.cs)
actually, i'm trying generate html code in web.cs (business object) , while generating html code in web.cs need other dynamic html code generated jquery function output concern: var output ="my html code generated jquery function"
now need above jquery output merger web.cs html code generating.
kindly let me know how can possible call jquery functions web.cs , result jquery web.cs in order merge?
thanks
you can try write response stream directly , output
response.write("<script type=\"text/javascript\"> js call</script>");
regards, szymon
Comments
Post a Comment