Tag | ASP.NET Posts

I've been seeing many developers in the forums asking: How can I display a message box from the server (code behind)? How can I customize the javascript confirm and alert popup? How can I display a message box like in windows application? As some of you may already know that displaying a pop-up message box has always been a pain for most developers in web programming. Everyone has probably used the Page.ClientScript.RegisterS... or the ScriptManager.RegisterClien... method to call ...
Sam Abraham (Me) will be introducing ASP.Net MVC 3 at the Tampa .Net Code Camp, taking place on Saturday November 13th, 2010. I plan to introduce ASP.Net MVC and showcase the latest and greatest features introduced with ASP.Net MVC3 including: Razor syntax, ASP.Net Web Pages Helpers and NuGet (formerly NuPack). Audience participation is encouraged and will be solicited. Look forward to seeing you all there! Here is the description and bio I submitted: Introducing ASP.Net MVC In this session, we will ...
Latest announcements by Microsoft executives leave no doubt. Microsoft is shifting its support to HTML 5 and by doing so gives up on its RIA platform Silverlight which it repurposes for mobile. Adobe releases a Beta of a new HTML5 supporting tool kit, and by doing so also embraces the HTML5 option. It does look as if both give in to the market preferences for standard, no-plug-in and non-propriety option of HTML5 (see "Microsoft favoring HTML5 over Silverlight: reports" ). If we follow Microsoft's ...
In this Issue: Mark Monster, Paul Sheriff, Andrew Tokeley, Sharker Khaleed Mahmud, Joe McBride, Jesse Liberty(-2-), Jeff Blankenburg, Kirupa Chinnathambi, Richard Waddell(-2-), and Manuel Felício(-2-). Above the Fold: Silverlight: "Silverlight 4 Borderless Windows" Andrew Tokeley WP7: "Windows Phone List Box with Images" Paul Sheriff Special Mention for all the effort for the community of WP7 devs: "31 Days of Windows Phone | Day #31: Charting Data" - and the entire series Jeff Blankenburg From SilverlightCream.com: ...
On Thursday October 28th, 2010, I had the privilege of attending and speaking at the SoFla Local PDC10 hosted by the Gold Coast and Miami .Net User Groups. While most local PDCs focused on viewing the Redmond event, South Florida kicked it up a notch by availing some of the community’s local speakers to comment and address any questions the audience might have. I greatly enjoyed covering and answering audience questions on WebMatrix, Razor Syntax, ASP.Net Web Pages Helpers, IIS Express, ASP.Net MVC ...
Latest update (and hopefully last update): Microsoft has published a few posts to clarify the debate. Please consider the following: PDC and Silverlight by Bob Muglia PDC Thoughts by Steve Ballmer *NEW* Silverlight Questions by Scott Guthrie Silverlight is dead. Long live Silverlight! by Tim Heuer Committed to Silverlight by John Papa ---------------------------... Read the rest of this entry » ...
Many sites have a contact form, instead of posting email addresses. Admittedly, email addresses are convenient for customers because they can use a mailto link that brings up their email client and allow them to start typing, archive the communication, and manage the thread. When I first started C# Station, that’s what I did; posted my email address for everyone. Holy cow, what a mistake. I received so much spam that my inbox was unusable. Fortunately, spam is more manageable these days, but it’s ...
I didn’t go to the Microsoft’s PDC Professional Developer’s Conference (PDC) this year because it was, as far as I could tell, a made-for-streaming video event. As such, I watched the keynote about 24 hours after it took place and used my Media Center PC to watch it on my plasma television. And I have to say, the keynote was worthy of the medium. Not only did the Silverlight Smooth Streaming technology deliver a fine HD image, but the content of the keynote itself, merited a big screen, and necessitated ...
In the past people could use services like the Microsoft Silverlight Streaming to host their Silverlight applications for free. This worked well in the past but it is now closed. What are the other alternatives? You can host your .XAP on Google App Engine but the process takes time and can be confusing. You could also find one of those free HTML host, but they could die tomorrow . This is where DropBox comes into play. Let me go ahead and stop and say, you probably don’t want to do this for a production ...
With concerns of HTML 5 overshadowing or affecting the roadmap for Silverlight actively addressed in many blog posts, I decided to cover the value HTML 5 brings to another set of web-based Microsoft solutions: ASP.Net MVC 3 and WebMatrix. A direction to embrace HTML 5 can already be clearly seen in ASP.Net MVC 3 with Unobtrusive Javascript leveraging the “data-“HTML 5 attributes. Additionally, WebMatrix Razor site templates are already HTML5 and CSS3 compliant while continuing to be backwards compatible ...
Sam Abraham (Me) will be speaking at the SoFla PDC 2010 hosted by the Gold Coast and Miami .Net User Groups in Boca Raton, Florida on October 28th, 2010. The local PDC event will run in parallel to and will embrace some of the content covered and unveiled at the main PDC 2010 hosted in Redmond. This would be my third speaking event in a quiet busy October 2010 and my second visit as speaker to the Gold Coast .Net User’s Group for the month of October. I will be covering WebMatrix, Razor Syntax, ASP.Net ...
I am very excited to speak again at Tech Days 2010 Winnipeg! The Details are listed bellow. session title is: Microsoft SharePoint Server 2010 for Developers of Microsoft ASP.NET session day and time: Day 2 (December 8), from 2:20 – 3:25 p.m. Winnipeg. Organizations always ask, what is the difference between SharePoint Development and ASP.Net development? well, the answer is...Not MUCH! Come out and check out issues, differences and similarities between the two. Tech days is a great opportunity to ...
Microsoft TechDays has been rolling through Canada over the last few months, and we’re coming up to the Winnipeg stop on the tour December 7 – 8! I’m going to be presenting two sessions at this year’s event: Building Web Forms Applications Made Easier with ASP.NET 4 and New IDE and Language Features in Microsoft VS.NET 2010 Using Visual Basic and C# I also have a local flavours track submission in for telling my own development story around Windows Phone 7 (which, if you’ve been following my blog, ...
Before working with MVC, I would claim to be somewhat intimidated by JavaScript development. Not that I did not know how to use it, however I found that is was much more bug prone and harder to develop against. Having the .Net compiler was a nice safety net-I did not have to worry about variable name mismatch, typos, not to mention the .Net framework itself. In a recent ASP.Net project we used the MS AJAX update panel to implement interface changes that could easily be implemented via client side ...
WebMatrix is a free “one stop shop” supporting all developers’ needs when creating web sites based on standard markup technologies (HTML, CSS, Javascript and jQuery). WebMatrix features an intuitive user interface to help minimize the learning curve and ease navigation and access to all application features. For instance, on startup WebMatrix enables the user to select of the following: 1-Existing sites created in WebMatrix 2-Obtain a site from one of the open source packages through Web Platform ...
Sometimes it seems implementing functionality in ‘standard’ asp.net takes several times longer than with MVC. In my case, I wanted to do the following when changing a checkbox on a form page (page uses partial page update). Note that I needed to use both client side and server side functionality, and the page updates only part of the page. On checkbox changed, display an “are you sure” popupup. On ‘Ok’, call server method to modify data on the backend, re-bind part of the page. On ‘Cancel’, close ...
Sam Abraham (Me) will be speaking on MVVM at the Ft Lauderdale ArcSig on October 19th, 2010. We will be covering the concepts and architectural patterns behind MVVM then move to discuss the MVVM-friendly features of WPF/Silverlight including XAML, Dependency Properties, Attached Properties and Behaviors. We will also take a look at some of the available MVVM Frameworks that can help quickly create the necessary structure and setup for an MVVM project including Prism, Caliburn Micro and MVVM Light. ...
Light up your Silverlight skills with the all-new Global Silverlight Firestarter! What is the Silverlight Firestarter? An Event: A one day, global, live streamed and on demand event keynoted by Scott Guthrie Training: New self-paced labs and walk through videos Interactive: Got questions? Get your answers! Watch live and ask the Silverlight product team questions during the event. Why Silverlight? Silverlight is Microsoft’s strategic development platform for building interactive applications across ...
I had the pleasure of speaking with Joe Homnick today about the Open Data Protocol. I presented an example on consuming OData in an MVC solution using jQuery. Joe presented on consuming OData feeds in SharePoint 2010/Silverlight 4.0 as well as a nice sample on setting up an OData service interface. I appreciate the opportunity to speak at a user group known for consistently bringing in only the very best speakers and content. At the end of the talk, I was presented with a certificate of appreciation ...
At a high level, this is how I understand the different MVC tiers: Model: Data libraries such as entities, Linq to SQL classes, or any other data library. View: The .aspx/.ascx pages. The classic ASP style code goes here. I have heard this layer referred to as a ‘report’ where you have as little logic as possible, and only that related to the display of the page. Controller: If you are coming from ‘standard’ ASP.Net and are new to MVC, You could say the controller is what replaces the code behind. ...
Someone asked me the other day, between Standard ASP.Net and ASP.Net MVC, which do I prefer and why. Although I have long been an ASP.Net developer, I have to say that I easily would choose MVC over standard ASP.net any day (and twice on Sunday). I feel this for the following reasons: Separation of interests: The three sections of MVC are logically separated: Model(Data), View(.aspx page), Controller (Code that feeds data to view). NO VIEWSTATE: If you are new to MVC, you think this is a bad thing, ...
As I continue to explore ASP.Net MVC 3, I decided to share a little on NuPack Tools, a recently released Visual Studio 2010 extension. There are a few nice blog entries on NuPack already which you can access here. Figure 1 - NuPack Tools shown as a Visual Studio 2010 Extension What is NuPack Tools? NuPack Tools is a Visual Studio 2010 Extension installed along with ASP.Net MVC 3 and also available as a stand-alone install. It provides a friendly interface that automates the retrieval and installation ...
Light up your Silverlight skills with the all-new Global Silverlight Firestarter! December 2, 2010 from 8:00 am to 5:00 pm pacific time — It's completely free! What is the Silverlight Firestarter? An Event. A one day, global, live streamed and on demand event keynoted by Scott Guthrie. Training. New self-paced labs and walk through videos. Interactive. Watch live and ask the Silverlight product team questions during the event. Why Silverlight? Silverlight is a powerful development platform for creating ...
At the beginning of September, we launched All-In-One Code Framework Customer Polling Survey. 62 customers filled out the survey in September, and provided lots of constructive suggestions. Thanks to all of you who shared your invaluable feedback! The project can become better and better because of you. Please continue to input your comments. Here is a summary of feedback that we collected in September, and the project team's follow-up action. ------------------------ The top five areas that the ...
The biggest question as a new version of a product or framework comes out is whether an upgrade path from the prior version exists and if the new features introduced are worth the headache and time investment made to upgrade. For ASP.Net MVC 3, the answer is yes to both questions. Personally, I would wait until ASP.Net MVC 3 is officially released, but for those wanting to upgrade right away, details for the upgrade can be found here and are pretty straight forward. Today, I decided to tackle a potential ...
Microsoft All-In-One Code Framework is updated on 2010-10-10. Download address: http://1code.codeplex.com/r... If it’s the first time that you hear about Microsoft All-In-One Code Framework, please read the introduction on our homepage http://1code.codeplex.com/, and this Port25 article http://port25.technet.com/a... Windows Shell Extension New Samples In the September release of All-In-One Code Framework, we gave ...
Today, I found a good answer on syntax highlighting for Razor. In the Visual Studio Gallery located at http://visualstudiogallery.... a new Visual Studio extension has been recently added for a “Razor Syntax Highlighter”. To leverage this new extension, I had to remove the editor mapping for .cshtml files in the Visual Studio Text Editor/File Extensions window (as outlined in my previous blog post) and install the highlighter extension. As ...
Thanks to all those who attended my session Retrofit WebForms with ASP.NET MVC at the Richmond Code Camp 2010.2. To be honest, it was my very first time speaking at a big event like this and I was quite nervous during it. I realized after the demo that I went through the topics quite faster than I should. Nonetheless, I hope my session was helpful and you learned something from it. Thank you all for asking very good questions so I can improve my presentation for next time. Please let me know if you ...
In this Issue: Bart Czernicki, Sharker Khaleed Mahmud, Dragos Manolescu, Peter Kuhn, Victor Gaudioso, John Papa, Jeff Blankenburg(-2-), Ning Zhang, Paul Seriff, Dennis Doomen, and Martin Krüger. Above the Fold: Silverlight: "My Silverlight 4 Reference Architecture: Commanding" Dennis Doomen WP7: "Windows Phone 7 RTM charting using the Silverlight Control Toolkit" Bart Czernicki Sketchflow: "Silverlight TV 48: Creating Rich Interactive Prototypes with Sketchflow - Part 1 " John Papa Now pulling Silverlight ...
Extension methods were introduced with the .NET 3.5 framework as a mechanism to add methods to extend existing types without modifying the original assembly. This is how the Linq methods were implemented to enable some very powerfull predicate function based operations to be performed over all existing collection types. Searching for web controls on a page is one of those tasks that seems to come up for all kinds of reason while programming using web forms. I was reminded of this problem recently: ...
It has been over a year since the last time I updated my list of Florida technical communities and a lot has changed since then. Joe Healy, our Florida Microsoft Developer Evangelist, maintains a list for each of the main areas in Florida, but this only covers the .NET-focused groups. Taking what he has started, I have put together a similar list (based on the information Joe maintains) that covers the other technical communities that I know of. If you are part of a technical user group community ...
In this blog post, we will take a quick look at the new MVC 3 project options as well as the pretty sharp Razor View Engine (not suitable for shaving :) ). Based on a nice Stackoverflow post, it seems that MVC 3/Razor will only be supported in Visual Studio 2010/.Net 4.0. This is great as it will give developers yet another good selling point to argue for upgrading to .Net 4.0. Creating a new ASP.Net MVC 3 project Prior to ASP.Net MVC 3 Beta, Selecting “New Project” in VS 2010 yielded two templates ...
Scott Guthrie’s team just unveiled a beta release of several projects. In the next few days, I will be exploring each of them, but given that I am preparing for my October 28, 2010 SoFla PDC 2010 talk on MVC, I will probably experiment with the latest ASP.Net MVC 3 Beta first as it will be my main focus at the local PDC event. To get to enjoy the latest and greatest ASP.Net MVC 3, we first would need to uninstall the MVC 3 Preview if we had that already installed. This can be simply done by going ...
I just noticed that I have reached the Professional level at the http://www.codeasp.net. Technorati Tags: Community ...
There are times that we need to set the border color of the GridView just like in my case, I was told to set the border color of GridView to a particular color instead of the default black. What I did is simply use the BorderColor property of the GridView and set it declaratively like below: <asp:GridView ID="GridView1" runat="server" GridLines="Both" BorderColor="Red"><as... Here's how it looks when we run that one in the browser. Firefox 3.5 Safari 5 IE 8 Noticed that in IE8 ...
The thing to realize is that the destination is never the most important part of the journey. It’s the journey itself. When you start a journey, you are never fully sure where it is going to end up. We started the journey down package management for .NET three times with Nu[bular] (we in this context means the nu team, not me in particular, I was only involved in the last reboot) before we decided to try an existing infrastructure with Ruby Gems. I have always said that I would use the best tool ...
I was working with a project that uses the concept of master page. Within the master page I have a bunch of UserControls for some specific purposes and one of the UserControl is for the site dynamic menu. The menu was basically built using JQuery and CSS. The menu works fine if you are using it as an anonymous user but if you logged in as authorize user the menu will no longer work for some odd reasons and produces the following script error below in the browser: Message: Object expected Line: 122 ...
Sam Abraham (Me) will have the privilege of speaking with Joe Homnick at the Gold Coast .Net User Group October 2010 meeting about The Open Data Protocol (OData). For this talk, I plan to demonstrate how the Open Data Protocol can be leveraged in an ASP.Net MVC solution to consume data feeds using JQuery. Speaking at the Gold Coast .Net User Group brings back good memories. It was at the Gold Coast group that I first met Alex Funkhouser, Sherlock Technology’s President a little over a year ago. At ...
In this Issue: David Anson, Jeff Blankenburg, Walt Ritscher(-2-, -3-, -4-), Dan Wahlin, xprblog, and Jeff Prosise. Above the Fold: Silverlight: "Sizeable, yet square, content control" Walt Ritscher WP7: "Creating Windows Phone 7 Application and Marketplace Icons" xprblog MVVM: "Getting Started with the MVVM Pattern" Dan Wahlin Shoutouts: Scott Hanselman brokered a deal for 2 lucky winners: WIN a FREE Phone with like NO effort and attend the Windows Phone 7 Developer Launch Michael Crump posted a ...
If you hit this issue and are pretty sure that you have downloaded the AjaxControlToolkit and configured it, the primary source of this error is that you haven’t added a script manager in the page where you are trying to use the toolkit control. Lets examine more into this. Setting up the Toolkit AjaxControlToolkit is a set of ajax enabled controls available for free download right from the ASP.NET 2.0 AJAX days and has evolved into various versions. It was moved to CodePlex couple of years back. ...
Back in April I began to work with Oracle again after a multiple year absence from doing so. So naturally I decided I would install Oracle on my home system so I could reacquaint myself with it. That proved to be more difficult than I expected. I was able to get Oracle 10g Express downloaded and installed but could not connect to it. So, to save someone else some of the grief I went through let me go through the final sequence of steps that resulted in a solid working Oracle development environment. ...
I was writting an article on web technologies and needed an image of the ASP.NET page structure. So I went online and searched for "ASP.NET page structure", but all I got was results on page life-cycle, relationship between aspx and aspx.cs files and so on. Know since the image I needed would be very simple to do, I didn't spent a long time searching for it, instead I decided to just do it myself and share it with you here: Now in case you don't understand this drawing, I'll give a brief description ...
Sam Abraham (Me) had the great pleasure of attending and participating at the SW FL .Net Code Camp which took place on September 25, 2010 at Florida Gulf Coast University, Estero, FL. I spoke at two sessions: “ASP.Net MVC” and “SSIS for C# Developers”. I was pleasantly surprised with the high turnout at the MVC session despite the fact that it was scheduled early on that Saturday (8:45 AM). This highlights the growing interest in ASP.Net MVC and its related suite of tools such as Razor, Web Pages ...
I am totally in love with ASP.Net MVC 2 so I figured what better topic for my first post. When I first saw the presentations on MVC (or if you prefer MVVM), I wasn't impresesed. My first reaction is "I already do that." I looked at it as a design pattern, seperation of concerns, etc. Then I watched Scott Hanselman's video and realized two very important things: MVC is not web forms MVC 2 ships with VS 2010 (even Express) The second is possibly the most important. I had looked at other Microsoft patterns ...
Has it ever happened to you that you are sitting with your laptop and need to do something with a computer on your local network and it turns out that computer is in a sleep mode and you have to walk to it and move the mouse or press some key to wake it up and then come back to your laptop to do what you initially wanted to do with it? Indeed, if you have to walk to a computer rather than remotely access it than the benefit of having local network is already somewhat undermined. My particular situation ...
In this Issue: Sandrino Di Mattia, Kranthi Kiran Gullapalli(-2-), Mike Snow, David Anson, Jeremy Likness, Vikram Pendse, Paul Sheriff(-2-), Markus Egger, Johan Danforth, and Beth Massi. Above the Fold: Silverlight: "Change Templates Dynamically in Silverlight" Paul Sheriff WP7: "Silverlight On Mobile : InputScope in Windows Phone 7" Vikram Pendse MEF: "MEF in the Wild: A Retrospective " Jeremy Likness Shoutouts: Jesse Liberty posted The Great Silverlight Competency Test #6 From SilverlightCream.com: ...
Often we want to have more than one form in the web page, just like in HTML or in classic ASP - except ASP.Net throws an error saying 'Only one <Form> tag can exists in Body'. The error message thrown by ASP.Net runtime compiler is not comprehensive, it should say that there can be only one <Form> tag with runat=server attribute. This means we can have more than one form tags in our ASP.Net HTML but only one of them can be server side. Rest of the forms have to be client side HTML forms. ...
In this Issue: Dragos Manolescu, Jeff Fansler, Andy Beaulieu, John McFetridge, Kunal Chowdhury, Kirupa Chinnathambi, Mike Taulty(-2-, -3-), and Peter Bromberg. Above the Fold: Silverlight: "Using ASP.NET Session with Silverlight and WCF Services " Peter Bromberg WP7: "Collision Detection on Windows Phone 7 " Andy Beaulieu Shoutouts: Just in case you missed Koen Zwikstra's Document Toolkit screencast, never fear... it's available online! Document Toolkit screencast (2) Tim Heuer announced some deep ...
Today, I was surprised to know that I have been selected as one of the moderators at the Code.ASP.Net community. I feel honored to be one of the moderation team. I know this is not an easy role but I will try my best to contribute more and help grow the community. I hope to be able to keep up the good work there for years to come. Technorati Tags: Community ...
Using a JavaScript function to show another window from an aspx page is pretty common. Often times you need to pass some variables by appending them to the URL string. And sometimes you don’t know which variables you may or may not need. This example shows one way of passing the variable(s) you need. The code below is going to pass some or all of the variables to a page that displays a map. The user may know some of the follow information about the site they are trying to find on the map like the ...