Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 2261

Javascript is a dynamic computer programming language, most commonly used as part of web browsers, whose implementations allow client-side scripts to interact with the user, control the browser, communicate asynchronously, and alter the document content that is displayed.

2 votes
Accepted

How do I run some JavaScript in a web part?

This works: Add to AssemblyInfo.cs [assembly: WebResource("ReportingMDMWebPart.Height100Percent.js", "text/javascript")] Add to web part: ClientScriptManager csm = Page.ClientScript; csm.RegisterClientScriptResource … (this.GetType(), "ReportingMDMWebPart.Height100Percent.js"); Rename the string for the javascript file's project path to your own in each code block. …
Matthew Steven Monkan's user avatar
1 vote
3 answers
5k views

How do I run some JavaScript in a web part?

I added the JavaScript file to Visual Studio and called it Height100Percent.js and changed it to an embedded resource. … But, I can't get the JavaScript to run at all. I've searched around for this quite a bit, but I can't seem to find anything that explains this process at all. …
Matthew Steven Monkan's user avatar