Click here to Skip to main content
15,892,927 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 Updated

JScript .NET 

9 Jan 2017 by #realJSOP
3 Ways to Convert DataTable to JSON String in ASP.NET C#[^]
15 Nov 2010 by 10Tec, Sergey Gorbenko
Tool for creating MS Visual Studio documentation files - XML Summaries, HxS/MSHC help solutions and manuals.
1 Oct 2013 by _Damian S_
Write a function. Have each buttons click event call the same function.
26 Oct 2015 by _Hariom_Singh
USE GET METHOD OF JQUERY ON SELECT CHANGE OF THE DROPDOWNLIST
13 Jan 2010 by Abdul Sami, PMP
This article is an introduction to some of the new features in ASP.NET 4.0 and the Visual Studio 2010 IDE.
21 Sep 2011 by Abhinav S
I really enjoyed going through some of these[^] videos.
8 Dec 2013 by Abhinav S
There seem to be tons of tutorials available here[^].
22 Dec 2014 by Abhinav S
Try$('.divLocal').each(funct...
13 Sep 2013 by abhishek burnwal Kolkata
How to search hotel or anything else in India dynamically google map not database from json javascript api in asp.net c#
7 Jun 2013 by Abhishek Nandy
Analysis Of World Climatic Condition
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...
15 Dec 2017 by Adnan Okko
I am using the jQuery function toggle() with a button to toggle between a DropDownListFor and EditorFor. The function is as follows: function toggler() { $("#DDLF, #EF").toggle("slow"); } What I have tried: The code for the button, DropDownListFor and EditorFor is:
14 Dec 2014 by Afzaal Ahmad Zeeshan
To upload the files without a POST request (page refresh) you would need a client-side framework. JavaScript is one of them. You should be using jQuery, to make things easier.You can create a new ajax request (Ajax request is required, there is no other way for you to send the data to the...
14 Aug 2021 by Afzaal Ahmad Zeeshan
Apart from what Solution 1 suggests and what Richard has mentioned in the comment to question, I would also suggest giving a try to the Visual Studio Live Share[^] in Visual Studio Code. This should give you a good way to "quickly" share the...
3 Jan 2013 by Agrawal Ashok
Checkboxes working like radio buttons.
5 Jan 2013 by Ahmad Abd-Elghany
i have a master page i want to display a slideshow in the default.aspx ,the slide show hook the images from a database .in any other page the slide show hidden .hot i can do that ?
26 Jan 2013 by Ahmad Abd-Elghany
hello , i want to make an image gallery that take the images from my data base , is there any way to do that ?
5 Feb 2014 by Ahmed Bensaid
Have a look there ;)http://stackoverflow.com/questions/1545849/possible-to-force-printer-setup-paper-size-in-javascript[^]
14 Aug 2004 by Akash Kava
Visual Studio.NET 2003 version's property browser goes blank, I found the remedy and I have made an Add-in to resolve this bug.
27 Sep 2014 by Akshay Raut
In one line : move to IE9 because you have to.
16 Feb 2007 by alex turner
A JScript that is really used in business for cleaning up named ranges in Excel.
16 Mar 2007 by alex turner
How to make a simple Excel database reporting engine with XML configuration.
12 Nov 2013 by Alexandru Lungu
Is this what you're looking for?function Show(value){ var $obj = $("#foo"); $obj.text(value);}function GenerateRandom(){ var x = Math.floor(Math.random() * 1000).toString(); Show(x);}$('#go').click(function() { GenerateRandom();});
21 Aug 2013 by Am Gayathri
How can i get the text in parent element in javascript?var elements= document.getElementsByTagName("span");alert(elements[5].parent.innerText);This is the what i am using, but this code is not returning any...
26 Sep 2013 by Am Gayathri
I want javascript to display one image while placing mouse on it.I have one image in my page, While placing mouse on it ,it should display another image with a good size.how to do this?
15 Apr 2022 by Aman Singh Apr2022
document.addEventListener("DOMContentLoaded", function () { var swiper = new Swiper(".mySwiper", { spaceBetween: 0, loop: true, speed: 1000, autoplay: { delay: 4000, disableOnInteraction:...
15 Oct 2012 by Ambesha
Freind please share the error you are getting on IE, and it would be possible that JavaScript/Jquery code work for 1 browser and not work for others, so we need to code accordingly.Thanks,Ambesha
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 Feb 2013 by Amittal_rke
Same Error : - Microsoft JScript runtime error: Unable to get value of the property 'click': object is null or undefined
26 Oct 2009 by Amol M Vaidya
This is a web-based WhiteBoard. It uses C# and AJAX to communicate between the server and clients. Data sharing between different users is made possible using AJAX. Drawings can be shared in real time over multiple clients.
9 May 2021 by Amongusify
module.exports = { name: 'youtube', description: "Youtube channel.", execute(message, args){ let role = message.member.roles.cache.some(r => r.name === "Mod"); if(message.member.roles.cache.some(r => r.name ===...
28 Mar 2010 by Anagha2010
i want to create a binary tree expands on click for a MLM
11 Aug 2023 by anas-w
I need help with the js code, the information in the json file is not correctly linking to the js code. I want to put information in a JSON file to display on my website, arrange it in a specific way, and call it up by clicking on one of the HTML...
11 Aug 2023 by Andre Oosthuizen
First things first, in future, please do not just dump all of your code and expect to get a solution. By doing this shows me that you do not really understand the code (copied and pasted from somewhere else maybe?) and hope someone will work...
28 Jan 2013 by andreasjohansson123
I first have a list, sort of a dropdown-menu. Which I first pick a option, example"option_1_1", "option_1_2");When this is pressed, I open a popup. Inside of...
2 Jan 2022 by andrew rew
I would like to extract some data from a json file and insert it into another json file like this: { "name": "File", "artist": "Andrew", "attributes": [ { "trait_type": "Background", "value": "Black" ...
11 Mar 2015 by Andrey Golubtsov
Hi everyone. I have asp.net page and confirmation message when I click on button. But when i click yes to this my page refreshing( do postback). How can I make confirmation message without resfreshing my page?Asp.net C# Framework 2.0 JS
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) { ...
21 Feb 2017 by angappans
Hi.,you have list of values. but you didn't assign the list of field value. please check fields: [ { name: "Name", type: "text", width: 150 }, { name: "Age", type: "number", width: 50 }, { name: "Address", type: "text", width: 200 }, {...
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.
8 Aug 2016 by Anil kumar 55
$('.other').on('click' , function() { $('.db1').each(function(){ $(this).removeAttr('checked'); })});$('.db1').on('click', function(){ $('.other').removeAttr('checked');});
28 Jan 2016 by Anil Sharma1983
Please check these linksPassing Json data to a RESTful WCF 4 service using Json.Net | Levelnis[^]How to create a JSON WCF RESTful Service in 60 seconds[^]
31 Jan 2016 by Anil Sharma1983
You can try this wayvar startDate ="09-01-2014"; //$("#ctl00_cntPlcHld_txtFrom").val();var endDate = "09-12-2014"; //$("#ctl00_cntPlcHld_txtTo").val();var startDateFormated = startDate.split("-")[2] +'-'+startDate.split("-")[0]+'-'+startDate.split("-")[1];var...
2 Jan 2014 by Ankit Roy
Hello,Please visit this link it will sure help you http://bit.ly/JxOQyE[^]Happy Coding...
19 Jul 2011 by Ankur\m/
It would be great if you can add your previous question link because this question is related to the previous one.Otherwise it means, you are using TabContainer1 without defining it.So before using it, add a statement like this - var TabContainer1;
25 Sep 2012 by Ankur\m/
It seems your jQuery library isn't loaded. Check src is correct for the script tag. Take use of Visual Studio widget to add the source.
14 May 2008 by Antonio Suarez
this is an easy way to get Freeze GridView header and add image sort. And it works on IE,Firefox and Others. work inside and outside of updatepanel.
24 Sep 2012 by Anusha Sridhar
Hi,I have a set of acronyms in my grid and ona a mouse over i ll get the abbreviations for those acronyms on a pop up. I have also added a scroll bar for tat. but I am unable to move the cursor over the pop up and scroll it. Below is the styles i have applied to the popup. ...
8 Sep 2015 by Arasappan
$(window).load(function() { $('#slider').nivoSlider({directionNavHide:false}); }); ...
18 Jun 2012 by Arjun Menon U.K
How to set width and height of textarea based on content
3 Apr 2013 by Arjun Menon U.K
Hi,I am using an embed tag to play a song in my web page,provided i click a play button .When the play button is clicked a stop button appears too. Now when the audio file has reached its end i want to hide the stop button,for that i need to know whether audio has played till its end. I...
18 Sep 2013 by Arjun Menon U.K
Hi,I am trying to play an audio file which i uploaded using a image button using html. I used a tag which is created when i click on that image. But sadly this works only in chrome not in FF or IE.. Can anyone pls help. The javascript is used is below function...
27 Dec 2013 by Arjun Menon U.K
Hi,i am trying to learn MVC and in my page there are two actions1. Update2. DeleteI did update using submit and delete using AJAX. When delete is successful,i want to redirect to a page. I achieved it but the problem is the URL of browser. It still shows the edit page url. So is...
2 Jan 2014 by Arjun Menon U.K
Hi,I want to update browser url without page being submitted.The URL can be anything, like xyz..Please help me.Thanks in advance.This is what i have done so far.// if (history.pushState) {// // The first is an object that you will use to identify the...
27 Jul 2021 by Arslan Anjum 2021
I want to give 'value' from Selected index in select list to "timeZone" attribute in JavaScript What I have tried: HTML Javascript
22 Feb 2012 by Arunprasath Natarajan
What is Coffeescript and How can we use that?Is it useful or we can go with Javascript?Give small eg or link to learn about that.
27 May 2012 by Arunprasath Natarajan
Dear Friends,I want to make Image to rotate in a square format using Marquee tag within a specified table width and height.Regards,AP
20 Jul 2009 by Ashish Kaila
A simple and practical introduction to Asynchronous JavaScript and XML (AJAX).
1 May 2014 by Ashok8033
Hai Try this code to disable the datepicker."#from" is Element id name$( "#from" ).datepicker( "option", "disabled", true );
13 Nov 2015 by Ashutosh kumar04
//More than 593 values it goes to error instead of successfunction getZipCodeListDefault() {var arrs=[]; var index = 0; try { $.ajax({ type: "POST", cache: false, async: false, contentType: "application/json;...
28 Sep 2011 by AswinKrishnan
You can go for paging or either dynamically add it if the Grid is a repeater or else use Ajax and Repeater to load data and dynamically build your UI.
16 Jul 2013 by Atulkumar P Patel
Anti Patterns are wrong practice followed by Developers. They are opposite to Design Patterns.
26 Jun 2012 by AvivaPhong
Hi everyoneI try to build a simple windows 8 Metro Style application in JS and. I wonder if I can select a picture from an images gallery and put it as wallpaper on my desktop . I already checked few answers but its not working on Windows 8. Any code will HelpThanks
22 Sep 2015 by ayhanUGUR
jQuery(window).ready(function(){ jQuery("#btnInit").click(initiate_geolocation); }); function initiate_geolocation()...
25 Dec 2011 by bbirajdar
You need to add this code in web.config to enable calling WebMethods from javascript ...
22 May 2012 by bbirajdar
This is all you needhttp://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/CollapsiblePanel/CollapsiblePanel.aspx[^]
30 Aug 2016 by Beginner Luck
IS example codevar person = {firstName:"John", lastName:"Doe", age:50, eyeColor:"blue"};// StorelocalStorage.setItem("info1", person );// Retrievedocument.getElementById("result").innerHTML = localStorage.getItem("info1");
7 Feb 2012 by behrad110
i use extended javascipt for asp.net ajax programing.i want to add a namespace to my javascipt code and i use Type.registerNamespace("myspace"); but during complie i get this error:type is undefined; what is the problem?thanks a lot
18 Sep 2013 by bitofweb
Hi Arjun,Try this codeFirst Add div to your pagethen add following js code to your script file.var val = navigator.userAgent.toLowerCase(); if (val.indexOf("msie") > -1) { $("#divSound").html('
20 Apr 2012 by Bruno Vasconcelos
Hi, my application needs to do these tasks: -Login and upload images and video using the website. -Client is able to login to a remote server with the mobile device. -Client is able to consult an image gallerie/video and upload photos/videos to the webserver.All i ask is for a good...
6 Nov 2018 by Bryian Tan
if you want the code to use custom CSS, here another example cp_bootstrap_btn - JSFiddle[^]
29 Sep 2010 by call to .net
Anybody Suggest book or site for Jscript for ASP.net
27 Oct 2004 by Chad Z. Hower aka Kudzu
In this article, I’ll explain how you can easily store and retrieve your application settings with just a few lines of code
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.
4 Apr 2015 by CHill60
Try working your way through the 72 articles on CodeProject[^] on the subject
14 May 2015 by CHill60
It sounds like you do not mean a "progress bar" (which implies you are showing how a process is progressing) but "breadcrumbs" which track which pages a user has visited on a site (in order). Have a look at this article Breadcrumbs in ASP.NET[^]If this is not what you meant then use the...
27 Jul 2021 by Chris Copeland
You have the code there to support it, it's just not been put in the correct order. You need to build your date and update the content within the event listener code. For example: time_zones.addEventListener('change', () => { const timezone =...
13 Oct 2014 by Coddddder
Hi,I have charting options in my web portal & charts are developed using VML. But as we know, VML becomes obsolete with IE10 & also not supported by other browsers I need to convert the code into SVG as it later supports major browsers.Is there any tool or method to convert my existing...
22 Jul 2015 by CodeIsCool
I have a mvc4 application. I am using a datepicker and a method(GetAvailableDates) that generate a list of available dates. The dates in that method(GetAvailableDates) have to be also available in the DatePicker and the rest of the dates disabled in the DatePicker.The...
18 Aug 2013 by CPallini
var cmd = new TsoapCommand('newContractForNewCustomer');As you probably know, the above line creates an instance of the TsoapCommand (passing the string newContractForNewCustomer to its constructor).Like Ron Beyer already pointed out, the TsoapCommand class is probably provided by a...
16 Sep 2015 by CPallini
You should ask the developers. However it isn't really that important what was the actual programming language they used. What matters is what is the language enabling you to develop a similar application for your target platform.
13 Oct 2015 by CPallini
As others already pointed out, the sentenceQuote:using Public key for communication so it is vulnerable is just wrong.Have a look at this Wikipedia page "Public-key cryptography"[^].
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[^].
16 Apr 2012 by cpsglauco
Little-Big bug from ScriptManager
14 Jul 2007 by daluu
Framework for porting code between different languauges and platforms through a standard XML schema.
12 Jul 2023 by Dave Kreskowiak
Not going to happen. This isn't a "code for hire" or "code to order" site. The only code you get is the code YOU write.
16 Feb 2010 by dawright, ProtoBytes
A heurisitc graphing tool to help discover 'Big O Notation' function thru infinite asymptotic's and instrumentation.
5 Apr 2018 by Deekshaa Singh Chauhan
when i click on in my admin panel logo the use logs out ,user redirect to the login page.I dont know why and how to solve this. AdmintTheme (Here in anchor tag given href="/" i dont know why we use /(slash) what is the meaning of this here) What I have tried: AdmintTheme (Here in...
6 Nov 2018 by Deepu Kumar
I have my site registration page and there is a different color in a submit button but i want to change this color. how can i change the button color....? there is a code of button field
12 Aug 2013 by Deviprasad Das
I can see one issue with your usercontrol.Since you have not externalized your user control's javascript, so if the user control is used mutiple times in a page then the javascript code will get repeated.
12 Jul 2013 by Dholakiya Ankit
its not possible use jquery alert css or do by modalpopup which will display your msg and add close button for that one
26 Sep 2013 by Dholakiya Ankit
In this link use image instead of spanhttp://stackoverflow.com/questions/18783225/display-image-on-mouseover[^]Another one which give you exact ideahttp://stackoverflow.com/questions/17444912/jquery-show-hide-on-mouse-over-image[^]If you want to use div try below one add css on...
27 Feb 2014 by Dinesh K.S. Kushwaha
7 Dec 2013 by dineshkumar51
ClientScript.RegisterStartupSc...
2 Mar 2006 by Dmitry Khudorozhkov
Learn how to integrate MS Excel functionality with your JScript/WSH scripting solutions.