Tag | Javascript Posts

In my last post, we put together a quick and simple photo gallery. This post will be building on that. Depending on the size of your photo, however, it didn't have the worlds greatest user experience. I'll be playing with the CSS, JavaScript and a ton more over time. Today, however, I'm going to be just returning a thumbnail rather than the full picture to show in the view. I don't want to have to physically create each of the thumbnails so we'll generate those dynamically on the fly. Read the full ...
So, for the past 10 months I've been working in ASP.NET, which is a first for me I'm been a desk top / middle tier developer for 99% of my developer career and thing that I don't like about the current application I support is this calendar control we have. The developer before me created a small calendar control that the user click on a icon and the window pops up. Problem with this is the calendar control has no business logic in it, to use it you have to call back the to the server, compile the ...
I need to show popup info message with single close button, but content is located in separate html file. The current implementation using window.open not working for many users with popup blockers. My question is which tool/framework should I use. Initially I considered to use UFrame (see CodeProject article:UFrame: goodness of UpdatePanel and IFRAME combined )inside ASP.NET AJAX ModalPopup. Then I found question http://stackoverflow.com/qu... ...
I changed the "welcome message" on my website www.galasoft.ch and thought I would also publish it here :) ---- Update: In addition to the talks listed below, I will also talk in TechDays Geneva. More details here. Read the rest of this entry » ...
Last year I had the pleasure of receiving a copy of the book Entity Framework Tutorial by Joydip Kanjilal from Packt Publishing and I recently got the time to read it so I thought I'd share my impressions on it. I have to confess to having great expectations from the book: it was from Packt, the publishers of the excellent Programming Windows Workflow Foundation by K Scott Allen and it was on Entity Framework, a topic which I had been meaning to read up on for a while. Like the WF book, EF Tutorial ...
In november 2007 our old desktop finally passed away. In the midst of our grief we were faced with the need for a new machine. To support my wife's mobile lifestyle we decided to get a notebook. In our hurry we purchased a 15" MSI notebook and upgraded the memory. All told the cost was about AUD $1400 . By february I needed a new notebook myself. I bought a Dell Inspiron 6400 - probably the ugliest notebook on the market at the time. The Dell cost me AUD $998. The MSI was expensive, has been unreliable ...
I attended the Houston TechFest today, and am now finding it difficult to sleep with all of the new knowledge and relationships filling my mind. I finally decided to get out of bed and put some of my thoughts in writing. The Fest was great. There are a few good reasons to attend an event like this. It's free. You get to meet new people with common interests. Employment opportunities are there if you are looking for them. You almost certainly learn something (if not many things). There are lot's of ...
Normally we use the term postback when an ASP.NET page submits it's content back to that page itself.But there can be situation when a page needs to submit it's content to a different target page.This is known as cross page postback.In this post we will discuss about how to handle and implement cross page postback scenario. Now to make a page postback to another page we have set the PostBackUrl property as shown below: <asp:Button ID="Button2" runat="server" Text="CrossPagePostback" PostBackUrl="~/TargetForm.a... ...
In this issue: Russell Greenspan, Andrej Tozon, Patrick Keating, Timmy Kokke, csharpsean, John Stockton, Mike Snow, Terence Tsang, Ning Zhang, and Lee. From SilverlightCream.com: Microphone access in Silverlight via Flash and JavaScript Russell Greenspan shows us how to get past the no microphone in Silverlight thing by going through Flash or Java along the way.... great idea and since I've never coded Flash, good info... thanks Russell! Silverlight TreeView: MVVM and editing [1] Andrej Tozon was ...
Yesterday, one my my friend ask me a query about sending some 500+ emails using an asp.net page. Sending bulk email using asp.net is obviously an issue. I mean, You cannot keep the page on the post back state for the five minutes. Your page will get expired and even if you increase the Request Timeout period it is still not a good approach. So for that, There are couple of approaches like 1. You can have a table in which you store all the emails and create a Windows Service or Schedule Task to read ...
While http://en.wikipedia.org/wik... outlines some limitations of SQL Server Express, there are some specifics that are missing for Reporting Services. One such example is what I discovered today while at a client that uses DB2 for its RDBMS. SSRS that comes with the Express Edition only supports creating reports against the local SQL Server data source. Be aware of this when considering SQL Server Express in your system design. http://www.microsoft.com/te... ...
TFS has a wonderful feature whereby it marks files as changed, even though there are no changes. These files show up in the Pending Changes window in Visual Studio (VS 2008). To work around this, add the following external command to your VS tools: First you need to install TFS Power Tools In VS go into Tools - External Tools and click Add Enter the following details: Title: Unchange Command: C:\Program Files\Microsoft Team Foundation Server 2008 Power Tools\tfpt.exe Arguments: uu /recursive /noget ...
Updated the post with the XML File I had used. I posted this article originally in March 2006 when the ASP.NET 2.0 TreeView had just been released. This article has received tremendous response (35000 views for this particular post) and also many recommendations / suggestions / corrections as comments. The script then supported checking/unchecking of children/parents when selecting/deselecting a particular node. However, in cases of having multiple children and de-selecting one of them, the parent ...
I was asked on Friday by a friend how one can consume JSON in Silverlight. At the time, I just said start with the System.Json namespace and I’ll get you a sample later. Well, here’s a sample and a peek into my head because I couldn’t just stop with creating the sample that he needed. In the end, I did a couple of different Silverlight examples including leveraging the JsonObject and LINQ. Then I ended up doing samples in raw JavaScript, MSAjax, Prototype and JQuery. Finally I ended it all up by ...
Regina.NET is participating in the INETA SQL PASS sponsored SQL 2008 launch. We have 2 sessions at this years event on January 22nd at the University of Regina. What is a community launch? Microsoft and others provide registered speakers with Web Casts, PowerPoint, code sample and / or hands on labs for a number of areas in the promoted product. The beauty of this type of event is that ANYONE can qualify to be a speaker. As a registered speaker, you are provided guidance in the launch topic. Speakers ...
OK. When the …\User Agent\Post Platform key (explained in the prior post) has too many items and the total length exceeds 260 characters, what happens is the javascript function windows.navigator.userAgent reports back as MSIE 6.0. As follows – using the http://www.fiddlertool.com/... test page: With a HTTP_USER_AGENT string exceeding 260 characters: getComponentVersion says you are running Internet Explorer 7,0,6001,18000. window.navigator.userAgent: [Mozilla/4.0 (compatible; MSIE 6.0)] window.navigator.appMinorVe... ...
Just for quick reference, I listed down all the BizTalk server 2006 R2 Technical documents. Developers Guide to Troubleshooting BizTalk Server 2006 Troubleshooting BizTalk Server SOAP Adapter Developing Integration Solutions using BizTalk Server 2006 and Team Foundation Server BizTalk Server 2006 Developer Guide for OAGIS Consuming and Hosting WCF Services with Custom Bindings in BizTalk Server Using the Windows Communication Foundation (WCF) Adapters in BizTalk Server Business Activity Monitoring ...
Tech Ed 2008 Software Quality Panel

http://www.dotnetrocks.com/default.aspx?showNum=358
Recently, installed a bunch of new Windows Live components such as Messenger, etc. That update extended my HTTP_USER_AGENT string to beyond 260 characters, which unfortunately IE then, when asked via javascript, reports itself back as IE 6 – this causes the Modal dialog boxes in SharePoint for things like adding web parts to zones to report a message that “Not enough storage is available to complete this operation”. So, since this is an x64 machine, I need to trim down the string which is taken from ...
Ciao, I'm Valter Minute, I'm a software developer working for Fortech Embedded Labs (www.fortechembeddedlabs.it), in Saronno, Italy. I'm Italian, and this should explain my poor english and excuse it, I hope. I was born in 1973 and I work on Windows CE since the beginning of this century (sounds like a lot of time written in this way). I started developing application on version 2.12 of the OS and then moved to BSP, drivers and other low-level stuff from version 3.0 on. I try to provide some helpful ...
I've been invited to contribute to an exciting new project called Digital Meld .  Please check it out as this site provides great information from experts on a wide range of technology.  I will continue to update my geek blog from time to time, but for now will focus on assisting with getting D|M off the ground.  Please check it out and offer any feedback you can think of.

-Tray
For those who don't want to go through the long post that follows, here's the short attention span summary. <Short Attention Span Summary> Windows 7 is a pretty neat. Installs quick, seems to have lots of neat features and I'm looking forward to watching this progress to RTM. Only thing I don't like is the loss of the "classic" start menu option. </Short Attention Span Summary> So just like so many other MSDN subscribers yesterday, I raced over to download the Windows 7 Beta that was ...
If you have a gridview/repeater control or other tabular data within a div, scroll bar appears when height of data gets bigger than that of DIV. If you want to scroll down to a certain position, you can use 'Element.scrollTop' property in Javascript: document.getElementById(div... = PixelsToScroll; Calculating the PixelsToScroll may vary depending on scenerio, In my case, I wanted to scroll down to a selected row within Repeater control. Row was selected using RadioButton and page ...
This is like a very common issue, specially for those who are working on public site which is live and they have to release the builds every week or month and if the new build contain JS files then your change will not reflect on the client browser until someone there presses ctrl + F5. So, after googling this issue. I came to know it is possible to prevent the browser from accessing the cache copy by writing the script tag as below 1: <script type="text/javascript" src="../Includes/main.js?ra... ...
“Web 2.0” is a buzzword used all over the place these days. So what does it mean? Web 2.0 actually means a lot of different things and it means different things to different people. This is the first of a multi-part series attempting to define Web 2.0. Follow my blog at http://www.drivingsales.com... for future posts. Part 1 - “We're Talking Back” One definition of Web 2.0 is the ability for everyday people to change the Internet. A few years ago the Internet was mostly created by businesses ...
Wer schon immer mal eine sehr schön aufbereitete Antwort auf die Frage was ist MAC OS bekommen wollte, sollten diesem Link folgene >>hier<<. Amit Singh der Autor von MAC OS X Internals hat auf seiner Website sehr schon die historie sowie viele technische Details zu diesem Betriebssystem zusammengestellt. Viel Spass beim Lesen.
I was generating some JavaScript in the server code and found that bool.ToString() doesn't create string that JavaScript expects as boolean- .Net uses first letter as capital True/False. Then I found in my own class, that I've wrote helper function a long time ago: public static string JSToString(bool bValue) { return bValue.ToString().ToLower(); } ...
In the post below I am going to run down a short-list of some of the less-popular performance tips and the reasoning behind them. There are loads of blog postings and articles on asp.net performance enhancements, and I urge you to check those out as well. Onto the good stuff... Session.ReadWrite versus Session.ReadOnly It goes without saying that using the Session object will incur some performance overhead so if possible it should be turned off in the web.config. That said, If you’re using the Session ...
IIS Custom HTTP Error Messages Error code Error message 400 Cannot resolve the request. 401.1 Unauthorized: Access is denied due to invalid credentials. 401.2 Unauthorized: Access is denied due to server configuration favoring an alternate authentication method. 401.3 Unauthorized: Access is denied due to an ACL set on the requested resource. 401.4 Unauthorized: Authorization failed by a filter installed on the Web server. 401.5 Unauthorized: Authorization failed by an ISAPI/CGI application. 401.7 ...
<update> Be sure to check out the new video blog post based on this entry. It may be easier to follow and has a couple of upgrades from this post: Creating a SharePoint List Parent/Child Relationship – VIDEO REMIX </update> <update 12-16-2010> I FINALLY got around to blogging how to do this in SP 2010, you can find that blog here: Creating A SharePoint Parent/Child List Relationship– SharePoint 2010 Edition </update 12-16-2010> First Things First Okay, first off, my development ...
Eventually, I will be creating my own content.  For now, I'm satisfied to simply regurgitate other people's points of view.  :)

Infoworld Article: The 7 deadly sins of IT management

How many of these sins are you guilty of?  I think this applies to IT Professionals, not just managers...  The thing is, those who don't manage should know better...  ;)
Download the design template here. In my role, I am lucky enough to get to design lots of very cool software to solve (sometimes difficult) business problems. Many times, these applications involve design solutions that leverage SharePoint technologies. In this series, I will be discussing some of the design patterns and documentation patterns that I have encountered in my applications. Disclaimer: this documentation is given as-is, so please use it and modify it as needed to meet your needs. This ...
Please note, I've moved this post and cleaned it up a bit...you can find it at the following URL:

http://geekswithblogs.net/SanjayU/archive/2009/04/15/another-abstract-factory-amp-strategy-pattern-explanation.aspx

Cheers!
I was writing an app in which i needed to store a dictionary.. I thought to post the code..: public void StoreDictionary(Dictionary&... files) { FileStream fs = new FileStream(fileName, FileMode.Create, FileAccess.Write); BinaryFormatter bf = new BinaryFormatter(); bf.Serialize(fs, files); fs.Close(); } public Dictionary<string, FileInfo> RetrieveDictionary() { FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read); BinaryFormatter bf = new BinaryFormatter(); ...
Today I was working on a WebForm that includes a GridView which presents text boxes for various columns. I put these in the ItemTemplate so all of the rows could be edited at any time. The next requirement was to update certain read only columns (e.g. Total Amount) based on the changes of the others. Originally, I had the entire GridView in an UpdatePanel, but that quickly proved to be a problem for two reasons. First, the updates were fairly slow. Second, the active control would lose focus after ...
Good news ... On Monday December 8th, 2008 Microsoft announced Public beta of BizTalk Server 2009 (https://connect.microsoft.... What’s new in BizTalk Server 2009? Ø Simplify Interoperability ü Support for .NET Framework 3.5 SP1 and Visual Studio 2008 SP1 - take advantages of the latest developer tools. ü Support for Windows Server 2008 and SQL Server 2008 – full support of Hyper-V, and increased performance and scale. Ø Extend To The Edge ü EDI - enhanced out of the ...
I flattened my home PC this weekend and started to get "only part of a Readprocessmemory or Writeprocessmemory request was completed" error message when I tried to read any discs with my LG Dvd drive. Since the solution seemed rather obscure to me I figured I better post the answer that I found for the next time this happens to me. Go into your device manager->IDE ATA/ATAPI controllers. Right click on secondary and choose properties. Go to the advanced settings tab and choose PIO only for "transfer ...
A big Thank you to Lee Brandt for organizing a great event in good ole Kansas City. There was a great turn out for the event and the event was very well organized. I reluctantly took on presenting jQuery for the Day of Dot Net event, but I am glad I let Lee talk me into it. It feels great to be presenting. (If you can get passed the fear of public speaking.) For those of you who attended my jQuery presentation, Thank you to you as well. I hope it was enlightening and if you’re not using a javascript ...
In this issue: Pete Brown, Tim Greenfield, Boyan Nikolov, Jesse Liberty, Mike Ormond, David Justice, Tim Heuer, Chris Szurgot, Matthias Shapiro, Budi Kurniawan, Mike Snow, Martin Grayson, and Azret Botash Busy folks... I've still got a backlog and I was only slow a couple days :) From SilverlightCream.com: Pie Chart Styling in the Silverlight Toolkit - Cross-Slice Gradients Pete Brown gives us the benefit of his excursions in the chart control plus his conversation with team members, and he ends ...
In this issue: Alex Golesh, Bart Czernicki, Matthias Shapiro(3), Michael WOlf, Swiss MSDN Team Blog, Michael S. Scherotter, Jesse Liberty, Chris Carper, Bill Reiss, Jonathan van de Veen, and Jobi. Shoutout: Adam Kinney reports that Project Rosetta turns into a MIX09 workshop From SilverlightCream.com: Silverlight Tip: How to Inject and Execute JavaScript Function(s) on-the-fly from Silverlight Alex Golesh has a post up on injecting JavaScript Functions from Silverlight. He has a nice text-entry front ...
December user group meeting we combined the Roanoke Valley .NET User Group and Roanoke VAlley SharePoint User Group into one meeting. Kudos to Kevin Israel for addressing an audeince that is: 50% SharePoint Admins that do not know .NET 50% .NET Develoeprs that have never seen SharePoint He lived up to the promise of providing contnet for all. Quick overview of SharePoint OTB, SharePoint Object Model and SharePoint Services and then a demo in C#. Might have to do this again sometime before next December. ...
Here is a bit of JavaScript that can be used by a site visitor to email a page. Nothing fancy - just a plain ol' mailto command. 1: <script type="text/javascript"> 2: function mailThisPage() 3: { 4: var link = window.location; 5: var emailSubject = "Check this out: "+ document.title; 6: var emailAddress=prompt("Please enter the recipients email address",""); 7: window.location = "mailto:"+emailAddress+"?Su... 8: } 9: </script> Technorati Tags: javascript ...
Oh the adventures of JavaScript and ASP.NET. Can you turn on validators [RequiredFieldValidators or otherwise] from JavaScript. Yes, and actually it is easier than I thought. ValidtorEnable(ControlId,Tr... Ex: //You could easily make this prettier by not hardcoding the ClientID here ValidatorEnable(document.ge... true); Keep in mind, you need to pass the object not the clientID of the object. Source: http://msdn.microsoft.com/e... ...
Hi!, As all of you (I hope) I want to have something similar to Intellisense everywhere. So also I want it in JavaScript and particularly in jQuery. Yeah, yeah, I know, that we have Script# and even M$ uses it, but I want pure JS and pure jQuery. I become very as jQuery team brought us Visual Studio Documentation for jQuery. It is on their site in download section. Works very nice and start its help as soon as you start typing, $ goes first then identifier in brackets and after $("sth"). there is ...
How to Customize theme code for MYTHEME theme. It is only necessary if you want to create another one like MYTHEME theme. Here are the instructions of creating Custom Theme with MYTHEME standard. How to: Customize Themes You can add new themes or customize existing ones for application to Web sites in Microsoft Windows SharePoint Services 3.0. This programming task shows how to customize an existing theme. To create and customize from an existing theme Copy one of the theme folders in Local_Drive:\Program ...
Here are the slides from the presentation I gave to the UK BizTalk User group (now the UK SOA/BPM group). I gave two sessions – firstly an overview of the work we had done at my current employer and then running through some code, configuration and live demos. The download location might change if I find a more suitable home. The initial project was part of the Integration story in rolling out a global instance of SAP. The first interfaces we put live were those between the UK Warehouse Management ...