Tag | Javascript Posts

Need to turn on or off MSI installer logging? Found the reg setting here http://support.microsoft.co... To enable Windows Installer logging Open the registry with Regedit.exe and create the following path and keys: HKEY_LOCAL_MACHINE\Software... Reg_SZ: Logging Value: voicewarmupx The letters in the value field can be in any order. Each letter turns on a different logging mode. Each letter's actual function is as follows for MSI version 1.1: v - Verbose output ...
In Windows Workflow I had a Replicator Activity inside While Activity. In Replicator _Initialized event handler I've set the InitialChildData property of the activity with the list of my objects, but Replicator didn't invoke any _ChildInitialized event , but went directly to _Completed event (similar problem was reported in the thread ReplicatorActivity shows all children complete when they aren't ). I tried to change a few things without success.It was also confusing that even in Initialized AllChildrenComplete ...
Normal 0 false false false EN-GB X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans... ...
At Mix09, the Microsoft Translator Team announced that they have released a preview of the very exciting in-place Translator Widget that works in conjunction with the current Windows Live Translator Site. They have provided an AJAX API to implement the translation functionality. Currently the feature is in Preview mode only and open to reviewers and testers only by Special Invitation. To see a cool demo of the Translator Widget in action visit Laurent Duveau's Site. As you can see from the code-snippet ...
Alright, I already know what you're thinking after reading the title, but that's why I prefaced it with "Another..." Long story short, I wrote this nice long e-mail to my friend/colleague here at work and I thought maybe it would be of use to one of the three people out there that haven't read 84 different explanations of the abstract factory pattern. Again, it was formally an e-mail so I ran through it and added some clarifications in brackets...hope I made _some_ sense :) A link to an explanation ...
This example demonstrates the basics on how to store and retrieve data between pages using ASP.NET Session. As you may know there are lots of ways on how to pass information between pages and these includes the following: *Sessions *Querystrings *Cross-Page Posting *Cookies *Form Submit *Server.Transfer In this example, I'm going to show the basics on how to store the information in Session and retrieve the value of Session in the next page.. C# protected void Button1_Click(object sender, EventArgs ...
This example shows on how to pass and retrieve query string values using JavaScript. Passsing QueryString to other pages with window.open JavaScript function <html xmlns="http://www.w3.org/19... <head id="Head1" runat="server"> <title>Passing Parameters between pages</title> <script type="text/javascript" language="javascript"> function PassValue() { var paramVal = "Hello ASPNET"; window.open("Default2.aspx?... + paramVal); } </script> </head> <body> ...
I spent hours trying to figure out why my ASP.Net page, which uses a master page with a RadGrid surrounded by a RadAjaxPanel with an AjaxLoadingPanel, would not show the loading message. I would click on the link to the page in the site menu, then IE would sit and spin for a while until it loaded the entire page, rather than loading the page right away but showing the loading spinner until the data was returned. What I had to do was add this javascript (w/jQuery) to the user control that the grid ...
Typically, if Silverlight isn’t installed for the user’s browser, they see this: …or something like that. But what if you don’t want that to display? Maybe you want to actually replace an area with alternate markup, javascript, etc. when Silverlight isn’t available? Or maybe you want to just have your own message letting them know that Silverlight needs to be installed. There’s a built in way to handle this with the Silverlight control. Below is my Silverlight application running in IE: Now, what ...
First of all, thanks to all those brilliant people who made the long arduous journey to the UK (and to all those who just happened to be near by). I know it must have killed you to be so far away for so long. I can only imagine how hard it was for you. All of us that couldn’t go really feel for you and feel your pain. Okay! So, for those of us that couldn’t go, some of these guys really did a tremendous job of twittering what was going on during the conference. They absolutely did not have to do ...
We have been busy organizing a number of community events. I would like to share some events Regina.NET has been working on and other community events. All the below events are free and open to the public. Regina.NET Date: April 8th @ 6 PM Speaker: Rod Paddock Topic: JQuery with ASP.NET Web 2.0 is here to stay. jQuery is a JavaScript library that abstracts away all of the gory details of working with JavaScript for web applicatons. This session will demonstrate how to add jQuery to your ASP.NET applications ...
I was running into an issue with storing javascript as an embedded resource, but had a boolean that needed to maintain it's state. I originally was using a hiddenfield to maintain the boolean via getElementById b/c javascript gets reloaded from the assembly, causing the boolean to get reset. The problem is what happens if something dynamically changes your page values, and your script reliant on looking for specific controls becomes null? A better solution I found was extending controls via ExtenderControl. ...
I’m in conversation with a group that’s using Ext JS for their RIA. As I haven’t used it, I thought I’d go ask at the international water fountain that is twitter about it. Anyone using Ext JS? Thoughts compared to jQuery or Prototype/Scriptaculous?about 3 hours ago from TweetDeck Read the responses I got back from a number of industry leader and JavaScript experts at Antidotal info on JavaScript Library Ext JS ...
Relatively recently it was discovered that the MVC framework was inadvertently leading to some bad practices around deleting resources with HTTP GET requests. Specifically, HTTP best practices (and RESTful best practices) state that GET requests should never modify resources. Some people consider this a “security” hole and, while that may be true, I consider it more of a “best practices” hole. Stephen Walther has a great post on this topic here. In his post, Walther demonstrates two different alternatives ...
Finally, I got my laptop after a long wait of three weeks. Its a Dell Studio 15 with Intel Core 2, 2.4GHz, 4GB of RAM, 320gig hard drive and 256mb ATI Radeon graphics card and last but not the least its gorgeous 15.6inch WLED screen. Well, the looks and the finishing are impressive and I must say that Dell has done a good job on the outside. The 15.6inch WLED screen is, as I said gorgeous and super bright, totally worth the extra buck and I would recommend it to anyone planning to buy one. Got a ...
My journey with jQuery has actually began last month when along with ASP.NET MVC I started exploring the different features provided by jQuery and related plugins.I am simple amazed at the overall design of jQuery core and also by functionalities provided by the various plugins built around jQuery.I am planing to write a series of posts with my observations on jQuery and this happens to be the first in that series. In this post I will discuss about the magical ready() function in jQuery.I always ...
EDIT : Please visit www.wcfstorm.com for th updated tutorials. This is a first in a series for post describing the tasks and the features available inWCF Storm. 1. Getting Started 2. Invoking a service having multiple endpoints. 3. How to create and run a performance test 4. How to create and execute a functional test Ok, so lets get started.... Getting Started : (Invoking a method of a WCF/Web service) Add a service. This can be done by either clicking "File --> Service --> Add" or by clicking ...
Found this hack to allow popups without calling the window.open which is blocked by IE. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>Don't Block Me</TITLE> </HEAD> <BODY onunload="pop();"> <object id='launcher' width=0 height=0 classid='CLSID:6BF52A52-394... <script language="javascript"> var popUrl = "http://hotmail.com"; function pop() { launcher.launchURL(popUrl); ...
Recently I was working on a project where the need for rotating ad functionality was needed. The site used Ektron and one of the content blocks was required to rotate between three different pieces of content. The first go at this resulted in an implementation that used the MooTools javascript framework. This implementation achieved the desired functionality, with the different pieces of content rotating between each other. However, this implementation also resulted in a feature (as we developers ...
During the last few months I've been working on a commercial tool for testing WCF services. The knowledge I learned building STORM really helped alot in building this tool. So here it is my fellow coders, WCF Storm. It has more features than its open source cousin, STORM and the best part is it works on both WCF and Web services! EDIT : www.wcfstorm.com is up! Please visit the site for updates and to purchase WCFStorm online System Requirement: .NET Framework 3.0 or higher. Features at a glance: ...
About a year ago, I started to evaluate ASP.Net MVC, but decided to put it aside because it was still in heavy-duty development. With the official release a couple of weeks ago, I decided to check it out once again. MVC has a lot of things to offer, but there are a few critical things that we couldn’t overlook. We have a few web applications that all have quite a lot invested in server controls (both third-party and developed in-house). In ASP.Net WebForms, for something as simple as a GridView with ...
In .NET, When you add an event handler to any of the predefined events in HtmlDocument of WebBrowserContro.Document, it will register a default event handler for all the other events. If the submit button has an onclick javascript event handler. The javascript returns false to prevent the page to postback. However, return false will not work properly if there is another event handler registered. Instead of returning false, the best choice in the HTML page is to set event.returnValue = false. Another ...
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; ...
A JavaScript object can be of great help when you need to pass multiple values to a Modal Window. E.G.

 var objArgs = new Object();
 objArgs.Value1 = "Value 1";
 objArgs.Value2 = 2;
 var modalWindowFeatures = 'dialogHeight:600px;dialogWidth:600px;scroll:no;status:no;resizable:no';
  url = 'relative/path/to/page';
  var returnValue;

  returnValue = window.showModalDialog(url,objArgs,modalWindowFeatures );
This demo shows on how to dynamically adding /removing ListItems in the ASP.NET DropDownList control using JavaScript. Here’s the mark up and the JavaScript code block below: <html xmlns="http://www.w3.org/19... <head runat="server"> <title>Dynamic DropDownList</title> <script type="text/javascript" language="javascript"> function AddItemInList() { var list = document.getElementById('Dr... var box = document.getElementById('Te... var newListItem ...
“When checking your page in various browsers, you may find Safari displaying a bright red text color for your page anchors (links), overriding the colors you've specified in your CSS selectors. First, look for a CSS document that may not be uploaded to your server. It will be returning a 404 (page not found) error. The simplest way to do this is to use the Web Developer's Toolbar extension for Firefox (by Chris Pederick) and simply click on the CSS > View CSS menu item. The page that appears will ...
Looking for a simple datepicker that uses AJAX.NET (to avoid full-page postbacks), for your date fields? Look no further! I was on the same "hunt", and ended up writing my own code for it (inspired by other examples/code I was looking at). The code does all the work using ASP:NET, nothing is done using JavaScript. Below is the code for the solution. This could (and should) be made into a UserControl if you need to use in more than one place In the .aspx file, put this: (As you see, I am referencing ...
Check out the 2009 Microsoft SOA & BPM Conference presentation on Microsoft ESB guidance 2.0, Oslo, BAM, REST with WCF, Customers case studies etc... 1. Keynotes, Lunch Sessions and Customer Case Studies 2. Technical Offerings Track 3. Best Practices Track ...
I ran into an issue with my SharePoint Central Administration website recently. This was in a my development Virtual PC, using IE7. I would open the SCAW which appeared to be fine, but some of the functionality wasn’t working. I’d click on certain buttons and nothing would happen. I then noticed that IE was reporting javascript errors. I tried using FireFox. Some of the errors that I saw in IE weren’t in FireFox, but some of SCAW (usually popups) didn’t work. Rather try to figure out what I did (I’m ...
Why did I start a Blog? welcome to my world of blogging, this is my first. Why did I start a Blog? First to express myself and to also contribute to the medium that has support my career (Internet). it is also my goal to achive MVP status soonest. What do I plan to cover here? Almost everything related to the technology and developer community. I will be writing .NET code snippets, talk about javascript, fiddle with jQuery, cover new product releases, write about new technologies as I encounter them, ...
I thought it was about time I imparted some actual information, instead of just reporting on where I've been, so here goes... Suggestion #1: Quicker access to the Bash History with Ctrl+R Find your self constantly hitting up and down buttons when logged into a UNIX terminal, trying to locate the last command entered in the history for rebooting the cable modem, backing up the internet or shutting down the HAL 9000? There are much quicker ways to do it! My personal favorite is hit Ctrl + R, then type ...
This morning I received an email that posed a question so interesting that I thought I would blog about the answer. The question was, essentially, how can we invoke a partial update (using ASP.NET AJAX triggers), from an on(up) button handler in Flash? There are a few different ways to approach this problem. I believe the method I’m going to write out here is what I like to call the “path of least resistance” – it’ll get you there quickly. However, it will create some interdependencies among your ...
Here's what's happening: Attendees: 428 Sessions: 73 Speakers: 49 Tracks: 15 Sessions: ASP.NET Make your Data Dance with ASP.NET Dynamic Databy Shawn Weisfeld + Show Description ASP.NET Dynamic Data is a framework that lets you create data-driven ASP.NET Web applications easily. It does this by automatically discovering data-model metadata at run time and deriving UI behavior from it. A scaffolding framework provides a functional Web site for viewing and editing data. You can easily customize the ...
Stephanie Grima’s Curriculum Vitae Introduction As a person, I consider myself as capable to work alone and with a team easily. I am very hard working, and do whatever I set my mind to doing. I am currently at MCAST ICT, during my last year of my studies reading my Higher National Diploma. I also hold an A-Level in IT as well as a National Diploma in Computing. I see myself working in IT as a web developer or software programmer while I continue furthering my knowledge by doing exams such as MCTS ...
I did something stupid against all my beliefs and should have never done it. I tried to deploy something on Friday. It was the dumbest mistake. First off I had no idea what type of master pages were in the environment. I assumed there was only one master page in the entire environment and I used the most disgustingly wrong program for a developer, SharePoint Designer. I pasted in this fix for AJAX Update Panels with FireFox (<script type='text/javascript'>_... = document.forms[0].action; ...
I think that Microsoft is missing a large opportunity with the Microsoft Office product. I’ve been thinking about this for some time now. To me, it has been evolving in the wrong manner over these last few releases and it has bothered me greatly. You might be saying, “what is Bill talking about here, they just did a major and well-received upgrade to Microsoft Office with the Office 2007 release!”. I do have to say that you are right in that regard – but what I am talking about is Microsoft Office ...
I gave another lightening talk Lightening Talk, this time at ColArc: No video footage to got with it this time, I left my camera behind, sorry! I have to admit, I struggled a little delivering this one, probably because its a subject I'm less fluent in, and it was a bit longer than my last presentation. But that said, it was good practice for me, and I think I got the subject matter across, just about ...
Today I experienced what appears to be a small WSSF gotcha :) If you have a Data Contract which has a Data Member called Value (for example contract is ParameterInfo, so having a member called Value might make sense), the code that gets generated by WSSF looks like so: Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; ...
I've been working on creating an xsl stylesheet from an xml document transformed by a base xsl stylesheet. The problem I was having is that the xsl elements I wanted to output were causing validation errors in VS2005. Of course trying to googling creating xsl from xsl resulted in nothing that approached the problem. I finally stumbled on the solution. Use the xsl:namespace-alias element to convert the namespace in the stylesheet into another alias in the transform. The microsft XSLT documentation ...
The answer is not so easy. But here goes my opinion… Learn C C is your closer to the metal programming language. You must learn C. Why? Because we have reached the point where learning assembly is not particularly of any practical use, although you would gain insight into the way computers work (and what languages boil down to). The C language will allow you to program against low level APIs, such as the operating system. Write embedded software for devices, write drivers, and eventually understand ...
This is on the request of some of my readers to show how effective Asp.net menu control is by using CSS Control Adapter. Most of the folks either have no idea of what CSS Adapter is or have some problem in integrating that with their applications. So, In this post I will brief you guys how can we use CSS Adapter to format the design of Asp.net Menu Control. Before we start, let me dig out why would somebody use CSS Adapter and what does that do ? Have you ever notice by viewing the source of your ...
The Problem If you search for "Right Click Silverlight 2" in Google, you will get several hits. There are several ways to achieve this functionality, and they all have two things in common that I object to: 1. They use Javascript to send a message to the Silverlight application. While there is no way (that I know of) around this, requiring the hosting HTML to include this code is what I object to. Moving the app to a new page requires the same hookups that the developer may or may not remember to ...
This example shows how to select ListItems in the ListBox based from the TextBox values using JavaScript. Here’s the code block below. <html xmlns="http://www.w3.org/19... > <head id="Head1" runat="server"> <title>Demo</title... </head> <script type="text/javascript" language="javascript"> function SearchList() { var l = document.getElementById('&l... ListBox1.ClientID %>'); var tb = document.getElementById('&l... TextBox1.ClientID %>'); if(tb.value ...
One of the biggest problems with using a WCF service in Silverlight is resolving the service itself in the correct place at all times. When moving code from your dev machine to staging and to production you may run in to issues. Using SSL and not using SSL can also be issues. So we came up with this simple solution to a complex problem. Credit goes to Jeff Wolfer on our team for creating this. Here is how the solution is actually used. It uses generics: private SLGlobalCustomer.SLGlobalCu... ...
I have been working with Silverlight 2 and its integration into SharePoint and I am a convert! I had thought that this was an application that would change the face of the internet! I just kind of browsed it while it was in its 1.0 stage and now I am a confirmed Silverlight advocate! I had a web part that I built that was an ad rotator with lost of business process on the server. You know the kind of rules: 1. GoLiveDate 2. ExpireDate 3. SortOrder 4. LinkURL 5. Approved! 6. More! Not hard to do on ...
This demo describes how to implement multiple delete in GridView using CheckBox control and display a confirmation message upon deletion. Assuming that we have this GridView column mark up below <Columns> <asp:TemplateField> <HeaderTemplate> <asp:Button ID="ButtonDelete" runat="server" Text="Delete" /> </HeaderTemplate> <ItemTemplate> <asp:CheckBox ID="CheckBox1" runat="server" /> </ItemTemplate> </asp:TemplateField> <asp:BoundField DataField="CustomerID" ...
This demo describes the different approach to display a confirmation message when deleting a row in GridView and pass the id of the item to the confirmation message. Confirmation means a user is asked first if he/she wanted to delete a record by choosing an option (OK and CANCEL). In this demo, we use the JavaScript confirm function for displaying the confirmation message. Now let’s create our JavaScript confirm function. To do this switch to ASPX source and add the following code block within the ...
This week we switched to using Declude Interceptor as our anti-spam solution. We looked at 3rd party sites like postini and others which are actually very inexpensive at a few bucks a user per year. But because have thousands of users the costs were too high. So I found that Declude's new Interceptor product was exactly what we needed. It runs as an anti-spam inbound gateway server in our data center that filters the spam before it gets to our mail servers. It was much, much cheaper than Barracuda, ...
Check this site, http://pikdev.free.fr/ for PIC development in Linux and then check this one Piklab on your Linux Package install manager Well, I am trying to find an IDE for PIC Microchip on Linux. Specially for PIC18. It is nice to be able not to depend on MS Windows anymore and just use my Linux OS full time. Now, Piklab seams to contain all the parts/options I am looking for except that it needs a compiler to use! What? so it is just an Editor that I can write my code in and then I need to send ...