Happy New Years! Recently I had to manipulate C# ASP.NET controls with embedded javascript. I was able to display image links with javascript functionality to different control functions. See below as I embed javascript into a Label Control with HTML tags as well:
Label1.Text += "<br /><a href='#' onclick='javascript:form1.txtCommand.value=\"enable user " +
cu + "\"; form1.cmdExecute2.click()'><img src='images/enableuser.png'></a> <a href='#' onclick='javascript:form1.txtCommand.value=\"disable user " +
cu + "\"; form1.cmdExecute2.click()'><img src='images/disableuser.png'></a> <a href='#' onclick='javascript:form1.txtCommand.value=\"unlock user " +
cu + "\"; form1.cmdExecute2.click()'><img src='images/unlockuser.png'></a><br />";
Label1.Text += "---------------------------------------"
+ "------------------------------------- <br />";
Various Scripts and Application Code Segments for .NET, VB, C#, C++, C, Java, JavaScript, HTML, Python, Perl, AutoIT, Batch, ASP Classic, Objective-C, Swift, Unreal Engine 4, Unity3D & others. Also contains numerous IT tidbits, procedures, and tricks including Technology Hacks on various platforms.
Showing posts with label .NET controls with JavaScript. Show all posts
Showing posts with label .NET controls with JavaScript. Show all posts
Subscribe to:
Posts (Atom)
Generating "Always On Top" NSWindow in macOS across all detected displays
Also: Using UIKit & Cocoa Frameworks using Objective-C In m acOS or OS X , written in either Objective-C or Swift Langues, you m...
-
This simple script is how to submit scores and points to the Game Center from a Unity3D Game. People use the prime31 plugin, and pay the e...
-
Also: Using UIKit & Cocoa Frameworks using Objective-C In m acOS or OS X , written in either Objective-C or Swift Langues, you m...
-
This simple code allows you to do the Trace Route command via .NET. Be sure to use the referenced ICMP.DLL class. I'll post the code for...