Tag | Javascript Posts

I found an interesting little tool from Microsoft Research for profiling the Javascript functionality in your AJAX applications.

http://research.microsoft.com/projects/ajaxview/
This is problematic with ASP.NET AJAX. The main Script Components are NOT sent to the client when in :Legacy” mode. This is “By design” in ASP.NET AJAX, although it is a clear limitation!! I’m investigating the problem for other solutions and will be sending an update soon. Thank you, Iman Halawany, for making me note this. I’ve been working on WCF services and ASP.NET MVC stuff lately than normal webforms, so, didn’t realize this obvious showstopper. To all my readers, I owe you a BIG apology. The ...
If you have ever thought that the famous if(Page_ClientValidate("val... {/*JS Code*/} and myValidator.ValidationGroup = "validationGroup"; are sure not enough client side capabilities in ASP.NET validators, you are right. The list of client side API for ASP.NET Validators can be found on this MSDN page "ASP.NET Validation in Depth": http://msdn.microsoft.com/e... Look for subtitle: "Client-Side APIs". Thanks Simone Chiaretta for mentioning ...
One of the greatest features of WCF 3.5 is direct accessibility of WCF Service on ASP.Net page. Before that there is no direct way to call WCF 3.0 Service on ASP.Net page and you have to create a communication bridge in the form of Web service. Here you find on my blogs how to call AJAX-Enable WCF service from ASP.Net page. Here is my interface called IoperationService and its implementation class OperationService. namespace AJAXEnableServices { [ServiceContract(Namespace = "AJAXServices")] public ...
If you have the requirement to make your website accessible, unless you were given that requirement before you began the project, you will probably be converting an existing site. This was my task. After a lot of research, some work with blind users, and working with JAWS myself, here are the recommendations that I am presenting to our development team to make our ASP.NET 2.0 application more accessible. In another post, I will give some more detail about some of the specific solutions we developed. ...
Here is the meeting information: Title: Developing with AJAX in SharePoint Register: http://www.clicktoattend.co... Must Register for Prizes ) Sponsor: Levi, Ray & Shoup, Inc. - Food Provider for the June Meeting Presented: Becky Isserman Date: Thursday, June 5th (Each meeting will be on the 1st Thursday of the month) Time: Food at 5:30pm; Presentation from 6:00pm - 7:00pm Location: Centriq Foss Training 8700 State Line Road, Suite 200 Leawood, KS 66206 Phone: 913-322-7000 Description: ...
Lot geeks facing this problem, how to enable intellisence support in Visual Studio 2008 of ASP.NET AJAX client-script. Actually by default only JavaScript native intellisence support is available in Visual Studio 2008. Follow the Following steps to enable ASP.Net AJAX Client-script intellisence. Steps 1. Create Web Project in Visual Studio 2008. 2. Add Script Manager Control from toolbar on Default.aspx page. 3. Goto Script View and write the following function ...
Property Naming Guidelines recommends to consider creating a property with the same name as its underlying type. For example, if you declare a property named Color, the type of the property should likewise be Color. Enumeration Type Naming Guidelines recommends do not use an Enum suffix on Enum type names. I found this recommendation conflicting if I want to declare Enum within class and have a property of the type of this enum. I've tried to create something like the following:. public class Control ...
I am reading about Windows Workflow and have a question: If I created a workflow with a few activities (While,If etc) and want to convert it to custom composite activity with ability to insert new activities inside blocks, how can I do it? Analogy in ASP.NET is strightforward- just a few steps(see How to: Convert Web Forms Pages into ASP.NET User Controls ) . Is something similar available for WF? Related links how to write Custom activities: Creating a Custom Composite Activity – Morgan Skinner's ...
Mark Berseth wrote a very interested article about Bulk Insert Data Using ListView Control. Basically, the ListView control is displayed with the TextBox controls in each row (like MS Excel). Now, the user can write in the TextBox and then use the submit button to insert all the new rows to the database. This works well when you are inserting the data into the database. The problem starts when you try to update the data which is already in the database. Let's say you populate the ListView with some ...
Something that stumped me a few years ago was trying to code a Javascript window (i.e. alert, confirm) from the code behind. I’ve listed some code below on how I did it in VS2005 using VB. For VS2003 the idea is the same but use Page in place of ClientScript and remove the GetType(String) parameter. One thing you do lose when doing it this way is any execution control that goes along with let’s say a confirm window. The window will appear but the rest of the code in the code behind sub or void will ...
In 2004 I discovered Visual Studio 2003 and the WebMatrix tool. Having avoided Classic ASP in the days of VB6, I could not wait to sink my fingers into the new tool. I found the IDE to be quite daunting at first but quickly brought myself to speed. At about the same time, Photoshop also crashed landed into my newbie life. I found myself stuck between development and design. Eventually, I went for the whole deal, I wanted my apps to look slick and polished, so I hit the web and stuffed my 40Gig HD ...
Below is a helper function to insert javascript to Navigate To Named Anchor Page should have anchor with the passed name <a name="anchorName"></a... // from http://www.webdeveloper.com... ///<summary>/// ///</summary> ///<param name="page"></param> ///<param name="anchorName"></p... ///<remarks>Page should have anchor with the passed name <a name="anchorName"></a... /// If there are more than one call ...
I came across a situation where another web application is calling a web application I have. The calling application is limited to the javascript that can be used to pass information to my application. So the parameters are passed through a querystring GET. The resulting web page from my application appear as a new web page tab in IE7. The desired result is not to have the new window appearing. I tried to use window.close(); in the body onload event but it prompts the use to confirm the closing. ...
*Moved to: Post Event: MSDN Roadshow (Glasgow)Spent the day yesterday at the MSDN Roadshow in Glasgow. It was a very good day that provided me a deeper insight into the ADO.NET Entity Framework, Data Services and Silverlight 2 (Which I like even though I did not like Silverlight 1... no JavaScript). The last session on Team Suit was a little marred by Neil Kidd being rather ill...get well soon Neil...but I followed it anyway, but I do think that other attendees became lost fairly quickly...we all ...
Microsoft .NET framework 3.5 Service Pack 1 and Visual Studio 2008 Service Pack 1 now have public BETAs. The service pack of Visual Studio 2008 has really interesting stuff. Highlights I'm interested in are performance improvements in HTML editor, collection of JavaScript intellisense hotfixes plus new ones enabling better JavaScript intellisense for libraries like jQuery, JavaScript Code Formatting, ASP.NET Routing engine (the one used in ASP.NET MVC, it is actually developed as separate component), ...
Selecting checkboxes inside the GridView control is a very common operation and that is why I have several articles and videos dedicated to this subject. Selecting CheckBoxes Inside GridView With a Twist VIDEO: Selecting CheckBoxes Inside GridView Recently, I was playing around with JQuery library and thought of implementing the same scenario using the library. Here is the code used to perform the SelectAll and DeSelectAll function. <script language="javascript" type="text/javascript"> $(document).ready(function() ...
I just finished my presentation about consuming Google Maps at BarCampKC. Thanks to everybody who attended. We talked about the three different ways of using Google Maps in your applications or websites. Static Map Image API My Maps JavaScript API The slideshow is available via Google Docs or dowload the PPT The code is available for download here, make sure you change your api key ...
ASP.NET MVC is going pretty HOT these days so I thought I should post some links to the ASP.NET MVC Videos which are hosted on www.AspAlliance.com. Video: Introduction to the ASP.NET MVC Framework Video: ASP.NET MVC Framework Unit Testing Video: Passing Parameters Across Pages Using ASP.NET MVC Framework Video: Url Rewriting Using ASP.NET MVC Framework Video: Introduction to the MVC Toolkit Video: Using JavaScript with the ASP.NET MVC Framework Video: Implementing Controller Action Authentication ...
I am going to speak about some of the AJAX Page Loading User Controls that I have created. I am going to talk about how a developer would go about converting the SharePoint Application to work with AJAX. Here is my bio and Abstract: Abstract: AJAX (Asynchronous JavaScript and XML) allows developers to create loading screens easily without a great deal of development in SharePoint 2007. In this session we will walk through how to create various page load events using the AJAX toolkit, Web User Controls, ...
I recently ran into an interesting challenge in QTP. I am scripting out a page that uses Javascript to make some controls invisible based on values selected in other controls. For example, if Field1 is selected to specific value, javascript runs something like this: document.getElementById("Fi... = "none" Or document.get\ElementById("F... Interestingly, QTP doesn't recognize that anything has changed; it sees the visible/non-visible objects as completely ...
Peter Matuchniak on a PodCast, Tamir on making Silverlight 'Air', Page Brooks on Disabling JS debugging, John Stockton on Textblock Mouse Event Issues, chrishayuk deeper in Isolated Storate, and Dan Wahlin/Spike Xavier with the Silverlight Song! From SilverlightCream.com: Podcast about Live Streaming Media System Peter Matuchniak from Technicolor shows off a Live Streaming Media System he's been single-handedly working on... in an interview from Infragistics. Peter's system is awesome... lots of ...
If you want to show the progress bar please refer back to this post on how to get an AJAX Progress Bar to work with SharePoint: http://www.mosslover.com/ar... For the next step you want to create a Javascript Function in your user control or web part that looks a little bit like this: <script type="javascript/text" > HideButtons() { var Button1 = <%= Button1.ClientID %>'; document.getElementbyId(But... ...

HTML Color Codes description and Tables shows html numbers for different colors

JavaScript Color Show can do the opposite- show color of specified number.

First off it rocked...Special thanks to Lee Brandt, Blake Thiess, Joe Loux, Timothy Wright, and John Alexander. These guys were my teammates and what I would consider some of my new friends. They are some of the best band-mates a girl could ask for in Rockband also. So here is a little bit of my experience in general: I was looking forward to this event for a month. I was incredibly excited, because I love helping a good cause and felt like I had not done enough to give back to the community. I love ...
A new preview of the ASP.NET Dynamic Data Web Site was made available on April 23, 2008. Some new nice features for Dynamic Data Wizard and routed URLs were included in this release. The Visual Basic language support was added for the first time as well. In this quick blog post, we will take a look at some of the enhancements to the wizard template. First off, download the latest release from the following URL http://code.msdn.microsoft.... ...
Introduction I guess that it's time to write about it, after making a few people curious at the MVP summit in Seattle. This article is to be taken as a proof of concept, and (I hope) as a way to "motivate" Microsoft to integrate this ability into Silverlight. As soon as I started playing with Silverlight, I saw the great potential that this technology has. As a RIA technology, it provides extended functionality over the web. As a WPF subset, it allows me to leverage the knowledge I already acquired ...
I found couple code sample in Javascript to parse QueryString: Passing Parameters Via Query Strings The Read Function QueryString - get parameters from URL with JavaScript Is any in ASP.NET AJAX client library ...
In my previous installment of recapping the events from ALT.NET Open Spaces, Seattle, I covered pretty much the opening ceremonies as it were. The weather was definitely interesting the entire weekend. Who would believe that we had snow, hail and rain for most of the time we were there in the latter half of April? Mind you it didn't stick, but if you believe in God, there is something to be said of ALT.NET coming to town. Coverage Galore Jeffrey Palermo was gracious enough to capture the opening ...
You've been there. "It works on my box!" Our new SharePoint web parts don't work in production! This project called for a suite of data entry grids inside custom SharePoint web parts. The customer already owned Infragistics' NetAdvantage for ASP.NET so I used their UltraWebGrid. Very slick and easy to deploy with your custom web parts. The primary feature they wanted was the cool Excel-like cut-n-paste functionality but that wasn't working in our production environment. At the beginning of the project, ...
C# Excel Export from ASP.NET Page ----------------- --web Page - ExcelExport.aspx ----------------- <%@ Page Language="C#" MasterPageFile="~/MasterPag... AutoEventWireup="true" CodeFile="ExcelExport.aspx.cs" Inherits="Forms_Techniques_... Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="Conte... Runat="Server"> <asp:GridView ID="GridView1" runat="server"> </asp:GridView> <br /> <asp:LinkButton ID="LinkButton1" runat="server" ...
Javascript <script language="javascript" type="text/javascript"> function ConfirmDelete() { if(confirm("Do you really want to Delete the Abused Record?")==true) { return true; } document.getElementById('&l... return false; } function ClearMessageLabel() { var msg=document.getElementById... if(msg!=null) { msg.innerHTML=""; } } </script> Cs code btnDelete.Attributes.Add("o... "javascript:return ConfirmDelete('" + CommonFunction.GetErrorMess... ...
Well while implementing Ajax i had received error due to Sys.WebForms.PageRequestMan... the best solution that i could figure out to over come is catch this exception and byPass it.. if any body has a good way of catching this exception why this arise Please do let me know. i has to modify the script <script type="text/javascript"> Sys.WebForms.PageRequestMan... (sender, args) { if (args.get_error()!=null) { if (args.get_error().name ...
Javascript <script language="javascript" type="text/javascript" > function openPopUp(sPicURL) { var win=window.open(sPicURL, "","menubar=no,scrollbar=ye... return false; } function openImagePopUp(sPicURL) { window.open("../common/cont... "","width=250px,height=180p... } </script> Cs code imgPhoto.Attributes.Add("on... "javascript:openImagePopUp('" + strPath + "');"); ...
If you've ever tried to find a way to display an ESRI ShapeFile on a Virtual Earth map, you'll have probably noticed how little information there is on the Internet about how to accomplish this apparently arduous task. As a matter of fact, I needed to do exactly this while adding some collateral features to the software Serena and I are developing for our thesis, but after some Googling, I found that there was (and there still is) almost no useful information on how to achieve integration between ...
Now that Unity has been released into the wild, there has definitely been a bit of interest swirling around it. One of my key wants for a good IoC container is basic interception capabilities. My criteria for evaluating a container usually comes down to the following: Configurability (XML, DSL, Code) Dependency Resolution, usually opinionated Lifetime Management (Per Thread, Pooled, Singleton, Transient, etc) Extensibility for Interception So, I realized that Unity was missing some of these things ...
In my previous project i was using window.showModalDialog to open a modal window (ASPX Page) from parent ASPX page using JavaScript. But whenever the postback occurs in the modal window during <save > button click, it would spawn off a new window. When searching turned up my Colleagues with same problem who managed to work with window.open.Finally i found a solution which is very simple by just including below tag line in the <head> html of the modal window. <base target=_self> ...
I 've created GridView with HyperlLinkField columns. But I wanted to have link click to postback to the same page. I looked at some solutions like in a thread:GridView HyperLinkField with call to a javascript function It seems not working, I have a link as : <asp:HyperLinkField DataTextField="Field1" HeaderText="ID" SortExpression="Field1" NavigateUrl="javascript:ret... datanavigateurlfields="Fiel... target="_top"/> One of possible approaches described in Steps to ...
Michael Washington provides a Hello World SL2/DNN, Karen Corby has part 1 of 2 on SL2 and Networking, Laurent Bugnion talks about SL2/JS/Unit Testing, DeepZoom Composer Forum from Expression BLog, Andy Beaulieu's material from a SL2/Data CodeCamp talk, Adam Kinney on SL2 Sidebar Gadgets on Vista 64, and LeeOnTech with a Silverlight Wizard. From SilverlightCream.com: DotNetNuke Silverlight Hello World Michael Washington decided to start at Hello World with a DNN/Silverlight 2 series... he's been doing ...
And so the Twin Cities Code Camp came to an end yesterday, and Jason and his team did a phenomenal job once again. The turnout was even higher than last year, and the presentations and speakers were a who's-who of talent from Minnesota and the surrounding states. I was able to connect with a few new faces, like Javier Lozano, Chris Sutton, Bryan Sampica, and Chris Johnson, among many others. It was a great community event. My afternoon presentation on Developing ASP.NET with MVC without the MVC Framework ...
I am currently writing a Silverlight class library which I want to use in a project, and decided to try Test Driven Development for this class. This is a really nice way to work, and the Silverlight development team made this very easy by providing a unit test framework easy to integrate into Visual Studio 2008. Read the rest of this entry » ...
Formatting numbers for currency display and more. Formatting numbers so they conform to a specific format can be deceivingly tricky. For example, one of the most common tasks is to format a number for currency display- an integer followed by two decimals. There are more subtitles in such a task than many might think. In this tutorial, I'll discuss formatting numbers in JavaScript, such as number rounding, formatting a number for currency display, and more. Number rounding in JavaScript Lets first ...
Congratulations Mr. Copy & Paste Blogger Guy I'm awarding this clipboard barf blogger with our 3rd More On Alert: http://geekswithblogs.net/G... What has he done to deserve such an honor? Allow me to list his qualifications... Not posting a single original thought in nearly 2 years. Even the blog tagline is an unattributed quote. Blatantly ripping off other people's content (CTRL-C, CTRL-V) without giving any credit ANYWHERE. Vomiting all over the GeeksWithBlogs main feed with ...
2 Javascipt code on the pop up page//////////////////// Button1.Attributes.Add("onc... "javascript:return closeBrowser(1);"); Button2.Attributes.Add("onc... "javascript:return closeBrowser(2);"); function for closing the browser and taking the value in a hidden control function closeBrowser(val) { // alert(window.opener.documen... // window.opener.document.form... = val; if (val == 1) { window.returnValue ...
2 Javascipt code on the pop up page//////////////////// Button1.Attributes.Add("onc... "javascript:return closeBrowser(1);"); Button2.Attributes.Add("onc... "javascript:return closeBrowser(2);"); function for closing the browser and taking the value in a hidden control function closeBrowser(val) { // alert(window.opener.documen... // window.opener.document.form... = val; if (val == 1) { window.returnValue ...
Javascript Function for date validation function checkDate() { var myDayStr = document.getElementById('dd... var myMonthStr = parseInt(document.getElemen... var myYearStr = document.getElementById('dd... var dteDate; dteDate=new Date(myYearStr,myMonthStr,m... var valid= ((myDayStr==dteDate.getDate()) && (myMonthStr==dteDate.getMon... && (myYearStr==dteDate.getFull... var myDateStr = myDayStr + ' ' + myMonthStr + ' ' + myYearStr; ...
Javascript Function for Select All CheckBox functionality.. <script language="javascript" type="text/javascript"> function SelectAll(CheckBoxControl) { var ctrlName; if (CheckBoxControl.id=='chkAl... { ctrlName="chkLocations"; } if (CheckBoxControl.checked == true) { var i; for (i=0; i < document.forms[0].elements.... i++) { if ((document.forms[0].element... == 'checkbox') && (document.forms[0].elements... > -1) ) { var str = new String(document.forms[0].el... ...
Javascript Function for Closing any popup window. ASPX CODE <script language="javascript" type="text/javascript"> function GetRadWindow() { var oWindow = null; if (window.radWindow) oWindow = window.radWindow; else if (window.frameElement.radWin... oWindow = window.frameElement.radWindow; return oWindow; } function CancelEdit() { GetRadWindow().Close(); GetRadWindow().BrowserWindo... return false; } onclick="javascript: CancelEdit();" [u can use it on aspx as shown here or ...
Javascript to be Used <script type="text/javascript"> function TrackParent() { var timeout; try { if(window.opener.parent); { timeout= self.setTimeout('TrackParen... } } catch(e) { this.close(); } } </script> On Master Page Add this on body tag <body onload="TrackParent();"> ...