Tag | ASP.NET Posts

FredNUG is pleased to announce that we have an excellent speaker lined up for March. On March 16th, we’ll start with pizza and social networking at 6:30 PM. Then, starting at 7 PM, Roberto Hernandez will present “Ramp up on ASP.NET MVC2!” The scheduled agenda is: 6:30 PM - 7:00 PM - Pizza/Social Networking/Announcements 7:00 PM - 8:30 PM - Main Topic: Ramp up on ASP.NET MVC2! with Roberto Hernandez Main Topic Description: Learn about the new features in the ASP.NET MVC2 Beta release. Learn how Areas, ...
Quick Links Introducing the Earthquake Locator – A Bing Maps Silverlight Application, part 1 Adding Volcanos and Options - Earthquake Locator, part 2 Live Demo Source Code I finally got a live demo up and running! I signed up for a shared hosting account over at discountasp.net so I could post a working version of the Earthquake Locator application, but ran into a few minor issues related to RIA Services. Thankfully, Tim Heuer had already encountered and explained all of the problems I had along ...
Just a quick tip for working with the gridview in ASP.Net. If your data column contains HTML text, you've probably seen something like this in your gridview after pulling the data: <font color="red">First Item</font><br/>... color="green">Second Item</font><br/>... color="blue">Third Item</font> To have the relevant column render in HTML, just go to your gridview property pages, find the column you need rendered in HTML, and click 'convert this ...
My company, Applied Information Sciences (AIS), is currently hiring for multiple positions. AIS is growing and we have immediate needs for all levels of technologists with a focus developing on the Microsoft stack! We are seeking .NET developers with a strong Object Oriented Foundation around the DC metro area. Our goal is to find smart people that are technology enthusiasts and interested in staying on the bleeding edge. If you have a passion for solving complex business problems by building flexible ...
1) Turn off Tracing unless until required Tracing is one of the wonderful features which enable us to track the application's trace and the sequences. However, again it is useful only for developers and you can set this to "false" unless you require to monitor the trace logging. How it affects performance: Enabling tracing adds performance overhead and might expose private information, so it should be enabled only while an application is being actively analyzed. Solution: When not needed, tracing ...
On Friday night, I took my life in my own hands and helped out out our local school PTA quiz night. Of course being a techie, what could I possibly add to an event like this. The answer of course is a scoreboard… Using a projector a laptop I perched myself at the front of a school hall in front of all the parents to either face a techie success or dismal humiliation in front of my peers. The scoreboard itself was an ASP.NET AJAX application that periodically and smoothly refreshed itself drawing ...
Why Use Client-side Javascript Templates? When building rich internet applications you often need to construct html on the client. I am going to demonstrate how to construct DOM elements using the jqote jQuery plugin (2.0.0). The naive approach to client-side html generation is to embed html inside javascript like: var text = 'Some text'; $('body').append($('<div id="content>' + text + '</div>"')); This approach fails as the complexity of the html increases. It is also a clear separation ...
While I’m playing with Windows Azure I found it’s a little bit hard to find the information about it since it’s new to us. When I was investigated the new CloudDrive feature I almost could not get anything about it except its SDK. Today I found a very good series of posts on ASP.NET community by Jeff Windmer. For now there are the frist 3 posts of his series but I believe he will continue and finish it. Please have a look on his blog: http://weblogs.asp.net/jeff... ...
Note: Cross posted from GuruStop.NET. Permalink My first DotNetwork Cairo Code Camp in 2009 was a great experience, because it was one of the biggest events I’ve spoken at (in terms of audience count, similar to SilverKey Demo Day II). However, Cairo Code Camp `10 had a much different taste!...Note: Cross posted from GuruStop.NET. Permalink Cross posted from weblogs.asp.net/meligy ...
When Windows Azure was first released in 2008 the only programming languages you could use were .NET languages such as Visual Basic and C# and the applications you built had to run in Partial Trust (Similar to ASP.NET Medium Trust). In the interim we have made a number of changes including allowing applications to run in full trust, native code is now supported (no longer had to be managed code such as C#) and we support FastCGI applications. Which means: Windows Azure supports the Internet Information ...
Normally when I have develop a service layer for my silverlight app I have it all in the same web project (easy, no clientaccesspolicy headaches), … but in some cases I have my service layer in a separate solution, in theory it’s quite easy to setup a client access policy, but… when you try it it fails because that xml policy file is not in the root of the cassini web server :-(. What to do.. change your settings, good old trick that can be applied even to VS 2005 :-) http://weblogs.asp.net/scot... ...
The .NET community, unlike the Java and python community do not provide Data Mining solutions outside the framework of their RDBMS MS SQL Server. In my quest to integrate Data mining into an existing ASP.NET enterprise solution running on MySQL, i was faced with quite the task! In attempting to review existing solutions, i followed the following criteria: Open-source and free (not necessarily the same thing!) GUI for interactive data mining and exploration Concise, accessible and well documented ...
[UPDATED 10th March 2010: Edd produced a 2nd post on using IronRuby with WPF/.NET ] [You might want to also read other GuestPosts on my blog – or contribute one?] On the 26th and 27th of March (2010) myself and Edd Morgan of Microsoft will be popping along to the Scottish Ruby Conference. I dabble with Ruby and I am a huge fan whilst Edd is a “proper Ruby developer”. Hence I asked Edd if he was interested in creating a guest post for my blog on IronRuby. If you should stumble across this post and ...
UPDATE (2011-01-28): ASP.NET MVC 3 I have a newer blog post that shows how to get Client Side Validation Summary without doing any of this. I will still be answering questions and supporting this for developers who are still using ASP.NET MVC 2. If you are on ASP.NET MVC 3, go here. Problem The MicrosoftMvcJQueryValidatio... script file, which integrates with the jQuery Validation Plugin, does NOT populate validation errors inside the Validation Summary control. I will show you how to populate validation ...
This is the code I use to send an email from an asp.net page: Dim message As New MailMessage() message.IsBodyHtml = False message.From = New MailAddress("foo@foo.com") message.To.Add(New MailAddress("foo@foo.com")) message.Subject = ("Response from form") message.Body = ("Email message here") Dim client As New SmtpClient() client.Host = "email.foo.foo" client.Send(message) ...
I am starting work on some asp.net vb pages to consume and work with web services. Part 1 was to create a web form that posts xml that a dba can paste into a textbox on an aspx page. Here is the code; Imports System.Net Imports System.IO Partial Class _Default Inherits System.Web.UI.Page Protected Sub Submit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Submit.Click Dim Data As String Dim WebRequest As WebRequest Dim RequestStream As Stream Dim StreamWriter As StreamWriter Dim ...
Here is my web.config used to login protect a folder called administration; <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.web> <customErrors mode="Off"> </customErrors> <authentication mode="Forms"> <forms name=".ASPXAUTH" loginUrl="login.aspx" protection="All" timeout="999999"> <credentials passwordFormat="MD5"> <user name="admin" password="21232F297A57A5A74... /> </credentials> </forms> </authentication> ...
Technorati Tags: General Pluralsight is an online .NET Training library which provides online training materials for .NET developers. Example trainings available on demand: · .NET 3.5 · Agile Team Practices · ASP.NET 3.5 · ASP.NET AJAX · ASP.NET MVC · BizTalk 2006 · BizTalk Server 2006 R2 · BizTalk Server 2009 · iPhone ASP.NET · LINQ · Managed Services Engine · Silverlight 3 · SharePoint Services · SQL Server 2008 · VSTS · WCF · Windows Server AppFabric, formerly "Dublin" · Windows Workflow · WPF ...
Technorati Tags: ASP.NET,General I often see questions at forums(http://forums.asp.net) asking stuffs like: Where to begin? Where Do I start? How to Get Started? So I decided to write this "boring" post to express my opinion and hopefully this can help beginners find their way to get started with ASP.NET. Based on my experience learning ASP.NET is just like learning how to play a guitar.. (oh really? why could I say that? ).(1) First you must have this what we call "interest" because if you don't, ...
Last week, I needed to call the SQL Reporting Services Web Service to export reports as Excel, PDF, and Word formats. I could have used the [Add Web Reference...] as the MSDN Documentation Accessing the Report Server Web Service Using Visual Basic or Visual C#, but I decided to use [Add Service Reference...]. If you are wondering what the difference is between Web Reference and Service Reference, please read this blog post by Andrew Tokeley. Goal Create a common library project which I could reuse ...
Although the azure application will be running on the sky we still need to develop it on the ground since we would not be able to fly. In order to make it easy and simple to work with azure on local machine we need to download the Azure SDK firstly. Azure SDK extend Visual Studio 2008 and Visual Studio 2010 RC to enable the creation, configuration, building, debugging, running and packaging of scalable web applications and services on Windows Azure, and it includes all necessary assemblies which ...
Whew! It's been a busy week. Earlier in the week I put together an internal demo to illustrate some of the system architecture for an ungoing project. And the purpose of this post is to document a couple of gotchas that may not be clear and didn't seem to be well documented. This post is purposely terse, because I don't have a lot of time to be detailed due to some upcoming deadlines. The architecture involves WCF Services that are hosted in a Windows Service and that will be consumed by both Windows ...
Update: I have updated the repository to include references to Fubu's Dlls instead of copying their code directly. Here’s something fun that I’ve been playing with. A few weeks ago I saw Jeremy Miller’s post “Shrink your view’s with FubuMVC’s Html conventions” and knew I had to have this functionality in my Microsoft MVC applications. I pulled the source and started writing an adapter to make it work. I hope the FubuMVC guys don’t mind that I’ve borrowed some of their hard work. What are Html Conventions? ...
Hi, I am currently involved in a project that requires information about the size of files to be displayed to a user. Quite a common scenario I'll imagine. There are many examples online of how to convert bytes to megabytes and gigabytes and display a friendly message to the user. All the ones I've seen however, involve creating a method that does this which takes a value as a parameter and returns a string. My solution for this project was to implement an extension method for variables of type long. ...
To me Azure is a new technology but in fact it's not that new. In the PDC08 Microsoft announced that their cloud computing platform had been released with the name Azure, which stand for the color of the sky. I began to play with Azure recently and will post a series of blogs for what it is and how to use it. But first of all we'd better to understand what's Azure. If we went to the official website of Azure we can find the official definition. The Windows Azure platform offers a flexible, familiar ...
While my home development computer is fried I’m going to hack away at my backlog of non-code related posts. Today I’d like to discuss some of the advantages and disadvantages of using Microsoft MVC over WebForms. First of all, MVC is not the end all, magical platform that many people would like you to believe. In fact I wouldn’t even recommend it to beginner developers. However, if you have experience with .NET and you’re willing to put in the time to learn how MVC works, you will find that it offers ...
This ebook was released in December of 2008, but it stills a good resource for those (like me) who are now introducing to Entity Framework, The ebook was written by Zeeshan Hirani and it has 514 pages. The design of the ebook isn't pretty, but the content is pretty good :) Free download here: http://weblogs.asp.net/zees... ...
Embedded Resource Group had built an ASP.NET website for its hourly contractors and employees to submit online timecards (i.e. web forms). To complement the website, Embedded Resource Group had also built an internal WinForms application for the administrator to utilize the timecard data. The timecard data, stored in SQL Server, is accessed to generate customer invoices and vendor receipts in QuickBooks, as well as to create reports that indicate missing and unapproved timecards and other metrics ...
I've been home since Saturday, but today (Monday) is my first day back in the 'real world' after spending time breathing the rarified air shared amongst the attendees of the 2010 MVP Summit. Very simply put, the Summit brings together the MVPs and the Product Team members for the area of competency in which you're involved. There's some picking of brains both ways, and a bit of roadmap discusion. Beyond that, it's a world-wide networking opportunity to see all those folks you only see once or twice ...
While I was on holiday last week we announced Tech Days. Tech Days is shaping up to be something rather good. It is a week-long series of free events run by Microsoft and technical communities to “Celebrate and inspire developers, IT professionals and IT Managers to get more from Microsoft technology” You can attend for 1 day or all 5 days. You can just attend the developer days or mix it up with the IT Pro days. It is entirely up to you. I will be doing my bit delivering sessions on Azure, Entity ...
Last week, the Microsoft Visual Studio team released a new Visual Studio 2010 & .NET Framework 4 Training Kit that works with the Visual Studio 2010 Release Candidate. The training kit This includes 17 presentations, 22 Demos and 32 Hands-on Labs. I am also particularly excited to see content added for Visual Basic, as well as Office, SharePoint and Application Lifecycle Management! This kit is designed to help you learn how to utilize the Visual Studio 2010 features and a variety of framework ...
For Issue 800, Brian Henderson (@brian_henderson) suggested I do a best of, so I used the tagging that Michael Washington and I put in a year ago here at the Summit, and have produced a 'Top 25'. From SilverlightCream.com: Number 01, Julien Frelat: Quake in Silverlight 3.0 available with full GPL source code! Number 02, Timmy Kokke: A Glass Orb Button in Silverlight Number 03, Gavin Wignall: Silverlight Rain Effect - Playing with Random Number 04, Tim Heuer: Using Silverlight for workflow creation ...
Note: Cross posted from GuruStop.NET. Permalink First WordPress Post From GuruStop.NET/Blog A number of friends advised me to move GuruStop blog from weblogs.asp.net to its own domain, and make it a start for my own “GuruStop” brand, especially @BinYahia... Continue Reading Original Post ...
Article Source: http://geekswithblogs.net/c... There are various blog articles that give sample .NET code that can be used to validate a message against a schema from a BizTalk orchestration. These include: msdn, haloscan.com, biztalkgurus.com, eggheadcafe.com and Sujan Turlapaty. Many of these blogs have subsequent comments about problems. Under high loads, I too began to see these classes return “false positives” in my test environment. (i.e. An XmlSchemaValidationException is being thrown ...
One of the great new features in Visual Studio 2010 is the ability to now use code snippets inside of ASP.NET, HTML, and JavaScript files. Snippets have long been a productivity boost for regular C# code but have been sorely missing for mark up. In fact, frameworks like MVC 2 actually ship with their own snippets. There are only about 10-15 snippets that are currently shipping with MVC (and many of those are just duplicated because there are both VB and C# versions). That doesn’t seem like very many. ...
Setting the context… We have a web application which communicates with WCF based service façade for any business functionality. This service façade then loads assembly (based on configuration) at the runtime for making the system pluggable. By default the implementation is in the service assembly itself. Below is the sample code for loading the assembly and creating an instance of the desired class. Assembly asm = Assembly.LoadFrom(Path.Comb... assemblyName)); ...
As promised in the previous post, here is a first look on Visual Studio 2010 RC. i am sure many of you have downloaded the bits already so this is for those who are waiting yet. VS 2010 RC is an upgrade to the Beta 2 that was shipped last year. This build has been heavily focussed on implementing community feedback and fixing performance issues reported. The start up screen looks as below. A little darker compared to the Beta 2 build. You can read my earlier post on First look on Beta 2 here I didn’t ...
I have been using VSeWSS 1.3 since it first became available. As of this writing it is still in the CTP release stage. The previous version, 1.2 is still available, but the biggest advantage of the 1.3 release is support for 64 bit OS which was a prime motivator for me. Also 1.3 now supports publishing sites which was not possible with the previous versions. VSeWss 1.3 March 2009 CTP is available, and is the version I am using for the purposes of this article. A good blog post about the extensions ...

Hey all!

I need a suggestion what best practices are to be followed in asp.net validation. Please suggest.

Warning: This is my experimentation and cannot be taken as a recommendation ! I gave it to my temptation and installed the Visual Studio 2010 RC despite having a lot of upcoming WCF RIA Services talks. (One is scheduled right tomorrow and it would be disastrous to try anything fancy) Much has been explained around the non-availability of Silverlight 4 Tools updated version for this RC release and subsequently the inability to work with WCF RIA Services and SL4. Infact, Tim Heuer has put up a nice ...
In this Issue: Bruce Abernethy(2), Laurent Bugnion, and Jesse Liberty. Shoutouts: Robby Ingebretsen blogged Kaxaml Update + Downloads + A Request Shawn Wildermuth is getting ready to write a Silverlight book and is asking all of us to Help Me Figure Out What to Write Scott Guthrie posted this night before last: VS 2010 / .NET 4 Release Candidate ... but if you're developing with Silverlight 4B, don't grab it... check out Scott's comments Doing a post of what I have in an effort to get it squeezed ...
Episode 3 of the Community Megaphone Podcast is now up with special guest Dan Rigsby from Indianapolis, IN and you get it on http://www.communitymegapho... Dan talked to Andrew and I about a myriad of topics including Olso, Dallas, M and OData. Dan Rigsby is a System Architect for Aprimo in Indianapolis, Indiana. Dan has been an avid .Net developer since late 2001 starting with ASP.Net, but today concentrates on SOA, Wcf, smart client applications, and a host of other areas. Dan is very ...
Here is an old trick to get vertical scroll bars for a GridView. I find this handy when the end users do not want paging but they also do not want to have a page load a GridView that is a mile long either. The code below shows placing your GridView inside a Panel. The Panel is where the scroll bar option is set. I used “Auto” in the example, this way the scroll bar will only appear if the amount of rows in the GridView exceeds the height set. The trick lies in placing both controls inside a single ...
Data binding is a powerful paradigm to reduce boilerplate code. In this post I am going to talk about a way to convert Object Container Data Source (OCDS) to support hierarchical two-way data binding with In a recent project I worked on, we used Web Client Software Factory (WCSF) extensively to get a handle on the complexity of the web application. I know this is pretty old stuff when compared to exciting stuff like Silverlight and ASP.NET MVC. Two-way data binding in webforms is quite tricky when ...
In this Issue: Joel Neubeck, James Bacon, Jeremy Likness, John Stockton, Fredrik Normén, Subodh Pushpak, Alexander Golesh, PhaniRajuYN, Victor Gaudioso, and Syed Mehroz Alam. Shoutouts: Michael Sync posted the material for his My WPF MVVM Session at Consistel Michael also posted an interesting post Rules of MVVM?? Andrew Marshall reported to me that he now has the code posted for his Silverlight and CUDA interop article.. thanks Andrew! John Papa isn't wasting any time with Silverlight TV ... he's ...
Just a quick one to detail how this is done in case someone finds it useful. For those still getting into working with SharePoint features, a feature receiver is a class which contains some code you've written to execute when a feature gets activated. Or deactivated, installed or uninstalled. The key thing to note is that it's just standard ASP.Net debugging. The process is:- deploy the assembly to the runtime location, either the GAC or the site bin directory. Note that if it's the bin directory ...
To download the source code please click here Introduction Claim-based authorization is a new model of authorization introduced in Windows Communication Foundation. This model addresses more scenarios than the popular role based security model (IIdentity, IPrincipal). This is useful when an application requires complex and fine grained control on expressing access control decisions. Role based security model may not be powerful or flexible enough and is often too coarse when we reach complex scenarios ...
I've not done a great deal in ASP.Net and I've never done anything with Style Sheets. They are however really simple as long as you remember a couple of things. Create the css file and add it to your project in Visual Studio. Then drag it to the aspx page (in design view). This will add the lines to the aspx page <head runat="server"> <title></title> <link href="StyleSheet1.css" rel="stylesheet" type="text/css" /> </head> Then when designing the css classes use the wizard ...
Recently, one of the members at forums.asp.net is asking how to highlight multiple dates in the ASP Calendar and make it selectable and make rest of the un-highlighted dates disabled. So I thought of sharing the solution that I have provided on that thread as a reference to others who might need it. Here's the code block below: C# public partial class _Default : System.Web.UI.Page { private List<DateTime> listDates; protected void Page_Load(object sender, EventArgs e) { //Suppose that you have ...
Last week, I talked about the need and desire to build a better mousetrap. And by mousetrap, I mean user group website. If you think about it, a website is a good kind of mousetrap. You want people to easily find it. You want it to be enticing so that they want to learn more and get involved. And you want it to provide quality information so that they keep coming back. Of course, having a good website alone will not guarantee the success of the user group. That requires a strong leadership team putting ...