Click here to Skip to main content
15,886,798 members
Everything / Programming Languages / JScript .NET

JScript .NET

JScript.NET

Great Reads

by Sebastiaan Meijerink
Object constructor with another object instead of named variables.
by Gerardo Recinto
Virtualization of RAM & Disk for high-speed, low-footprint & scalable data caching
by Hamid Mosalla
Dynamically building JSON tree for use In JavaScript components using C#
by Abhishek Nandy
Analysis Of World Climatic Condition

Latest Articles

by maayanwis
easy way to implement a webview in unity editor with tabbed window and callbacks from the html
by Vishal_Kumar
Call server side code using ASP.NET AJAX and jQuery AJAX
by Rajesh Pillai
Learning jQuery the fun and easy way (hopefully).
by Vitalii Novotarskyi
To simplify working with jQuery Datatables.

All Articles

Sort by Score

JScript .NET 

30 Oct 2012 by OriginalGriff
The same as the difference between Mandarin Chinese and American English.They are similar in that they are both langauages, and share a similar look, but otherwise they are very, very different.Javascript runs in a browser on a clinet PC, java is executed in a vertual computer and can run...
4 Apr 2013 by Sebastiaan Meijerink
Object constructor with another object instead of named variables.
10 Oct 2014 by Gerardo Recinto
Virtualization of RAM & Disk for high-speed, low-footprint & scalable data caching
31 May 2016 by Hamid Mosalla
Dynamically building JSON tree for use In JavaScript components using C#
19 Apr 2011 by Toniyo Jackson
Sendkeys can only deal with keys known to and processed by windows. Inmost cases, the FN key deals directly with the hardware, and not through theo/s.I suspect that Fn keys are hardwired and need special methods to pick themup.Check this link[^].
7 Jun 2013 by Abhishek Nandy
Analysis Of World Climatic Condition
11 Nov 2014 by sameh obada
Jquery plugin to create dynamic css animations and transitions.
23 Aug 2012 by Prasad_Kulkarni
Specifies or returns whether the element is visible.This property is useful if you want to hide or show the contents of an element. Similar to display property, but if you set the visibility property to 'hidden', only the contents of the element will be invisible, the element stays in...
10 Sep 2013 by josh-jw
This tip will give you a better idea of how to setup a KoGrid in Knockout.js.
20 Sep 2013 by Rajesh Udupi
JavaScript performance tips - Part 2
22 Nov 2013 by Sergey Alexandrovich Kryukov
You can always find some codes interfacing with Arduino. A serial (COM) port use is very usual:http://playground.arduino.cc/Interfacing/Csharp[^],http://www.technicana.com/physical-computing/73-connect-to-the-arduino-with-c-.html[^].This CodeProject article tells about USB connectivity:...
11 Nov 2010 by Kirankumar Ballapalli
Hi,Its a library function jQuery script.Refer following site.http://www.authenticsociety.com/blog/JavaScript_DollarSign[^]http://stackoverflow.com/questions/846585/can-someone-explain-the-dollar-sign-in-javascript[^]I hope links will help you to now about $...
19 Apr 2011 by Richard MacCutchan
You don't need to send "Fn"; that is merely a hardware feature on the laptop keyboard. All you need is the correct string for the key in question as described here[^].
14 Jun 2011 by walterhevedeich
You might find these links useful. Have a look.Easily build powerful client-side AJAX paging, using jQuery[^]Use jQuery and ASP.NET AJAX to build a client side Repeater[^]
22 Feb 2012 by Ganesan Senthilvel
CoffeeScript code compiles one-to-one into the equivalent JavaScript, and there is no interpretation at runtime. You can use any existing JavaScript library seamlessly from CoffeeScript (and vice-versa). The compiled output is readable and pretty-printed, passes through JavaScript Lint without...
18 Jun 2012 by Sandeep Mewara
Simple way, something like:function AdjustTextArea(ata) { // A fixed number lets say 20 to add for no clumsyness ata.style.height = (20+ata.scrollHeight)+"px";}
9 Jul 2012 by Sandeep Mewara
The gridview is in a separate page, and the JS function is in a separate fileIf so, then the below code would not work.TotalChkBx = parseInt('');In order to use the server delimiter , you need to be on the same page.
19 Sep 2012 by sohaib patel
How to create a dynamic label editor web control on ASP.NET (textbox and label).
14 Apr 2013 by Sergey Alexandrovich Kryukov
Please see: http://msdn.microsoft.com/en-us/library/ms178581%28v=vs.100%29.aspx[^].—SA
11 Oct 2013 by Sujee1
Thank you all. I have solve this myself. And this is the code...CS:-CurrContext.Items.Add("ResponseJson", JObject.Parse(executedPayment.ConvertToJson()).ToString(Formatting.Indented));String json = (String)CurrContext.Items["ResponseJson"]; hdnPassValue.Value =...
18 Oct 2013 by thatraja
Start from here http://docs.oracle.com/javase/tutorial/[^]Advanced Java Tutorials[^]And here more than couple of ways to learn anything in Internet. Education Needed[^]
3 Sep 2014 by Gihan Liyanage
See this w3schools examplehttp://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_close[^]If you want to add close button on same window try this simple web page example. Coppy this code and save it as html file and see.
3 Nov 2014 by Manas Bhardwaj
Let me Google that for you[^]
30 Aug 2016 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...
30 Aug 2016 by Peter Leow
We do not do your homework. But I can provide you with some useful resources:1. First, read and follow the hands-on in Beginner's Guide to HTML5 & CSS3 - Formidable Forms with HTML5[^]. It will tell you how to create an HTML5 Form and submit Form values from one page to another.2. Next,learn...
31 Aug 2016 by Patrice T
Mr Hunt your mission is not to improve your begging skills.Your mission is to work on your teacher's problem, use the course you attended, the problem must be related to.If you are stuck, tell your teacher, so he will know if some remedy is to be applied.
4 Jul 2017 by OriginalGriff
You can't get it at all: except in conditions which hardly occur at all these days: your user must be running IE, he must accept ActiveX controls, and he must permit ActiveX controls to run. Hardly anyone runs IE, and the other two are disabled by default for security reasons (because ActiveX...
2 Jan 2022 by raddevus
Keep in mind that JSON stands for JavaScript Object Notation. That means that any valid JSON is the stringified (or serialized) version of the JavaScript object. That means we can simply create an in memory object directly from the JSON string...
2 Jun 2010 by RickRoc
I think your problem here is that you are creating a new Excel.Application object throught every iteration of your FOR loops (ouch!). The Excel object needs to be created only once, before you begin the FOR loops.
23 Sep 2010 by Hiren solanki
So Easy,Use Javascript to accomplish,e.gvar myTextField = document.getElementById('myText');and put it to lablevar lableField = document.getElementById('myLable');lableField.innerText = myTextField.value;wrap the above code in the Jscript function on any event you...
11 Apr 2011 by Nischal Bhatt
Hi! All,I have a ASP textbox, and i accept the date in dd-MMM-yyyy format i.e. 01-Jan-2001,using AJAX Calendar. How can i validate the input of the textbox so that no endusers can enter any characters or any formats.I just want to restrict users to enter in the specified format in the...
11 Apr 2011 by Pong D. Panda
You can either use an asp validator or limit the user to type on your date textbox. Using validator:
19 Apr 2011 by Sergey Alexandrovich Kryukov
The functionality of SendKey is very limited. For completely authentic simulation of input you need to use P/Invoke for Windows API SendInput.There is nothing special about Fn, but it can be non-standard (maybe depending on hardware, I'm not sure). Is is handled as WM_KEYUP, WM_KEYDOWN as...
29 May 2011 by Kiran Sonawane
1. Jquery is advance version javascript (javascript library) with user friendly syntax. Easy way to play with DOM object using jquery .For more http://addyosmani.com/blog/javascriptuncovered/[^]2) You could follow the below jquery with vs 2008 with...
24 Jul 2011 by Prerak Patel
http://javascr...
16 Aug 2011 by H.Rajkumar Reddy
Dear All, I'm working on grid html report using code i able to print page in portrait orientation but client requirement is to print landscape orientation default without setting printer orientation how can i print page in landscape please help me,Advance thanks,
16 Aug 2011 by Herman<T>.Instance
see here: http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.defaultpagesettings.aspx[^]
20 Sep 2011 by jim lahey
Javascript:http://www.w3schools.com/js/default.asp[^]JQuery:http://jquery.com/[^]Google:http://www.google.com/[^]
27 Sep 2011 by shakil0304003
you can see this linkClickHere, 3 solutions are given.
27 Sep 2011 by Orcun Iyigun
That might be what you are looking for:function closeWindow() { netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite"); alert("This will close the window"); window.open('','_self'); window.close();}Good luck
5 Nov 2011 by member60
refer the following:http://www.programmingsolution.net/useful-js/jquery-treeview.php[^]http://www.pedrera.com/blog/using-the-jquery-treeview-in-asp-net/[^]
5 Nov 2011 by P.Salini
Check thishttp://www.dynamicdrive.com/dynamicindex1/treeview/index.htm[^]Treeview using jquery[^]
5 Nov 2011 by uspatel
these links may help youTreeView using JQueryTreeView
5 Nov 2011 by sravani.v
Refer these links:Treeview using jquery[^]http://www.programmingsolution.net/useful-js/jquery-treeview.php[^]
14 Nov 2011 by Manfred Rudolf Bihy
OK, I'll give you a hint. Indices start from zero (0) in javascript. So if you have an empty array like sumarr in your example and then push one element onto that array (LIFO fashion) how many elements are now in the array?If there are m elements in an array and one wants to get at the mth...
19 Mar 2012 by OriginalGriff
The clue is in the message: "Access denied; you need the SUPER privilege for this operation"The user id you are using does not give you sufficient permissions to create and/or modify a database on that server.Talk to your webhost: they will know how to solve it.
16 Apr 2012 by cpsglauco
Little-Big bug from ScriptManager
18 Jun 2012 by Sergey Alexandrovich Kryukov
The element textarea has certain irregularity, quite understandable though: you can set it width with CSS style and width property (please see http://www.w3schools.com/cssref/pr_dim_width.asp[^]), but the best way to set up its height is using the attribute rows. Why? Because this way you...
30 Oct 2012 by Thomas Daniels
Java is a programming language. JavaScript is a scripting language for the web.If you want to read more:http://www.htmlgoodies.com/beyond/javascript/article.php/3470971/Java-vs-JavaScript.htm[^]
11 Feb 2013 by José Amílcar Casimiro
WCF Rest vs. WCF SOAPhttp://msdn.microsoft.com/en-us/library/vstudio/hh273094(v=vs.100).aspx[^]
8 Apr 2013 by fjdiewornncalwe
Of course not because you have reintroduced the bug that I solved for you in this[^] question earlier today.$(document).ready(function() { $('#readfile').click(function(){ alert('hello'); }); });
23 May 2013 by ntitish
Actually i am having two text boxes in one panel which is in formview1 and checkbox is also in formview1 when i check the check box it should display the panel uncheck means it should hide the panel this functionality i am doing in .cs page in checkbox_checked event but now i dont want to...
23 May 2013 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Use jQuery .hide()[^] function.$('#lblId').hide(); // Replace the correct ID of Label.$('#drpId').hide(); // Replace the correct ID of DropDown.
21 Aug 2013 by thatraja
Try parentNode instead of parentJavaScript HTML DOM Elements (Nodes)[^]Here is a common workaround: Find the child you want to remove, and use its parentNode property to find the parent:var child=document.getElementById("p1");child.parentNode.removeChild(child);
9 Oct 2013 by sandip1711
hi guys I’m new in broadcasting technologyI’m broadcasting using windows media encoder 9, what I want is while broadcasting when I use insert link option of windows media encoder 9 that time I want to change image path on broadcasting page but when I insert link(of image path) it is...
10 Oct 2013 by Stephen Hewison
You can serialise and de-serialise JSON to programming objects using DataContract serialisation techniques.You have to construct an appropriate class to de-serialise to. The following topics should...
23 Oct 2013 by Tejas Vaishnav
you can refer this posts, it might help you..http://stackoverflow.com/questions/11981282/how-to-convert-json-to-datatable-in-c-sharp[^]convert JSON string to datatable Or Array[^]http://datatables.net/forums/discussion/comment/21769[^]
22 Nov 2013 by Ron Beyer
Depends on what Arduino you have, there are many, many different versions.If you have an Arduino with a WiFi or Ethernet shield, then the Arduino can be coded to send an update directly to your server. If you are using just the Arduino with its built-in serial port or USB port (if it has...
25 Nov 2013 by King Fisher
see thisyou can use a single update panel for the Whole ..
31 Jan 2014 by Sampath Lokuge
Please check below mentioned links for more info. :)Writing integration tests for ASP .NET with Selenium 2.0 – Part 1Writing Integration Tests for ASP .NET with Selenium 2.0 – Part 2design-of-selenium-tests-for-asp-net
4 Apr 2014 by Er. Puneet Goel
Working solution: var tableToExcel = (function () { var uri = 'data:application/vnd.ms-excel;base64,' , template = '
17 Jun 2014 by Jafarinejadvazifehkhorani
There are some ways for doing thatone way is sending user credentials(encrypted) to other site and by using an http module in destination try to login to the application but it is not Secure.the other way and the secure one is using WIF(Windows Identity Foundation) and with that you will...
30 Sep 2014 by ChauhanAjay
To dynamically add controls to your form please have a look at Can I add a row 0f 6 textboxes dynamically using javascript? Please give me a code snippet[^]Hope it helps you achieve what you want.
3 Nov 2014 by Peter Leow
Refer: Call JavaScript from Content Page[^]
18 May 2015 by Andy Lanng
This solution uses jQuery. If you don't use jQuery, I suggest you include it.function fnchkFlow(this){ //first get the jQuery version of the listbox var listbox = $(this); //make sure we have something (basic error checking) if(listbox && listbox.length) { ...
7 Sep 2015 by itsathere
function fnchkFlow() {var items = $('# input:checkbox');for (var i = 0; i
13 Nov 2015 by Krunal Rohit
Well, JSON has a default characters limit to 102400. See this[^].But you can specify the limit in web.config Rather return the split-ed list and combine them on client-side.-KR
13 May 2016 by Ryan Peden
It looks like it isn't working because updating the doughnutData variable during the AJAX call won't automatically update an existing chart.Additionally, when you create doughnutData inside the init function using var doughnutData, that variable is only visible from inside the init...
29 Mar 2017 by F-ES Sitecore
You'd have to check the binary of the file, but doing so in js is pointless as a malicious person can simply remove your javascript. Do that kind of checking on the server-side so it can't be circumvented.
4 Jul 2017 by F-ES Sitecore
You can't get this information for security reasons, and it's of no real value to you anyway.
23 Apr 2018 by CPallini
Quote: I managed the random number generator but cannot make it exclusive. Use the algorithm described here: Random extraction of 5 cards from a deck[^].
6 Feb 2020 by Richard Deeming
As discussed in the comments, the local version of the site is using your modified jquery.validation.unobtrusive.js file, but the published version of your site is using the minified jquery.validation.unobtrusive.min.js file, which hasn't been modified. The simplest way to update the minified...
28 Aug 2020 by Member 14925709
for mozila: about:config search dom.allow_scripts_to_close_windows and change false to true close the browser then window.close(); working perfectly for dynamically firefox and chrome in click event var browsernames = (function...
15 Nov 2020 by Richard Deeming
Given this HTML element: then this Javascript: jQuery('#div'+$(this).attr('target')) is looking for any element with the ID div1. But your element doesn't have the ID div1; it has the ID col1:
17 Mar 2021 by Richard Deeming
You're using a Bootstrap modal. Bootstrap adds the modal-open class to the element when a modal is open. You could use this style to hide the body content: body.modal-open .element-you-want-to-hide { visibility: hidden; } Or you...
2 Nov 2005 by Gabriel Torok
Using Dotfuscator to protect your .NET source code from decompilers.
10 Feb 2010 by Sandeep Mewara
First add an external JavaScript file to the ASPX page:Then when you want to check for textbox content (filled or empty), just pass its value to the function defined in the external javascript file. There in the...
10 Feb 2010 by Hir's 4Ever
i alreay try this thing but it not work if u have small program or application then plz send me Thank you for ur replay
10 Feb 2010 by rosyjoshi
U can add the below method in external java script file.function IsEmptyText(obj, msg, lbl) { var str = Trim(obj.value); if (str == "") { lbl.innerHTML = msg; obj.focus(); return false; } return true;}Add reference of JS file on ur page...
27 Mar 2010 by Not Active
You can use JQuery dialog, http://jqueryui.com/demos/dialog/[^]
28 Mar 2010 by Anagha2010
i want to create a binary tree expands on click for a MLM
28 Mar 2010 by PSK_
Same question was asked here.http://www.codeproject.com/answers/68900/Creating-dynamically-Binary-Tree-to-Display-Member.aspx#answer1[^]
1 Jun 2010 by Farah Siraj
Please please... can anyone tell me why this code doesn't store all read values of Excel sheet in array "store".Here debugger is showing the error "store[...]is null or not an object".Please help me in correcting this code and providing an errorless code for loading an Excel sheet via...
1 Jun 2010 by Sandeep Mewara
Why repost it multiple times?Follow it at one place: http://www.codeproject.com/Questions/85070/reading-excel-sheet-via-javascript.aspx[^]
28 Sep 2010 by Adam R Harris
Hey All,Ok really simple question that i cant seem to find the answer to. I am currently doing some classic ASP development in JScript. I have my basic functions and whatnot in an include file but the include file has the @Page directive in it so if i put one in each page i get @Page...
29 Sep 2010 by call to .net
Anybody Suggest book or site for Jscript for ASP.net
30 Sep 2010 by Not Active
JavaScript is independent from ASP.NET. Any JavaScript book will do.
30 Sep 2010 by Sandeep Mewara
Websites:Sit...
1 Oct 2010 by William Jordan
Here is one thing to try:To edit your Classic ASP files and still utilize syntax highlighting and intellisense. You need to associate the .asp file extension with the Web Form Editor. When doing this you are telling the IDE to treat .asp files the same as .aspx files, in turn sort of...
11 Nov 2010 by AngelLoose
function $(id) { return document.getElementById(id);}What does this code do? Who can explain the meaning of it, especially the character "$".Thanks.
26 Dec 2010 by krishnaraj40
My dot net application displays a Html page on a web control. The html page has a javascript embedded in it.The html page has button on it.When the html button is clicked, Java script lanches a print dialog using JScript's Window.print().There is some other application (Kind of...
26 Dec 2010 by Amit Kumar Tiwari
Try this:window.print();window.close();
26 Dec 2010 by Amit Kumar Tiwari
Here you go:http://embarcaderos.net/2009/06/17/how-to-print-and-close-the-print-dialog-from-javascript/[^]
6 Apr 2011 by Rajni from delhi
Hi, I am Having a grid in which there is an link button in side template field.ONClientClick,there is called a js function.. My problem is how do i get the value of clicked LinkButton in js?
8 Aug 2016 by Yonathan1111
Or, how about this, sending the key's code (ASCII) instead the key itself? Hallo Everybody,How can I press both the function key (fn) and f11 at the same time using the sendkeys method?I tried like this: var WshShell = new ActiveXObject("WScript.Shell"); ...
24 May 2011 by Sandeep Mewara
It does not work like this here. I am sorry but there is no quick question here. We expect you to put some time in trying the issue that you are facing and then some time in formulating the question while posting here. Here is what is expected by enquirers:1. TRY first what you want to...