Tag: CSharp
All the articles with the tag "CSharp".
-
SendMailControl for ASP.NET
Have you ever used the ASP.NET PasswordRecovery control, or the CreateUserWizard? Probably, you used the mail capabilities of these controls too, and set up a MailDefinition to send an e-mail when the control did his job. Personally, I missed this functionality when wanting to send mails to users. Luckily, ASP.NET is very extensible. I decided to create my own control providing an easy and convenient way to sending templated e-mails. Just set the From, CC, Subject and Body properties in the designer, and use the Send() method from code. Not the cleanest implementation of catching SMTP errors, but it was sufficient for my use. If you need to catch SMTP errors, you still need to add that... Anyway, as a gift for anyone who needs it, please find my SendMailControl underneath: [code:c#]
-
ASP.NET 2.0 Event Validation
Event Validation is a new feature in ASP.NET 2.0 which provides an additional level of checks on postback actions. It verifies whether a postback from a control on client-side is really from that control and not from a malicious person trying to break your application. Even if you forget to add security checks of your own, ASP.NET provides this functionality, because this feature is enabled by default. Sometimes, it is safe to turn this of, but Microsoft tries to have developers turn this of when they know what they are doing. Unfortunately: I came across Event Validation… A user control on a master page convinced ASP.NET that a postback within that same user control was unsafe, resulting in the following error:
-
Team Foundation Server tools linkdump
Currently, I'm playing around with TFS (Team Foundation Server), and here's just a quick linkdump of some TFS tools, mainly on CodePlex. http://msdn2.microsoft.com/en-us/vstudio/aa718351.aspx#cipphttp://www.codeplex.com/TFSAdminhttp://www.codeplex.com/automationhttp://www.codeplex.com/TFSCodeReviewFlowhttp://www.codeplex.com/tfsconsolehttp://www.codeplex.com/TfsPowerPack
-
Scalable Apps with Asynchronous Programming in ASP.NET
A while ago, I posted about the DevDays, and some interesting sessions I took. One of these sessions was "Scalable Apps with Asynchronous Programming in ASP.NET", by Jeff Prosise. Searching the Internet, I found that Jeff also published an article on this subject on MSDN, which can be found on the following URL: http://msdn.microsoft.com/msdnmag/issues/07/03/WickedCode/default.aspx.
-
DataBindable Business Objects in .NET
Checkout Emmanuel Nuyttens' article on DataBindable Business Objects. It's an interesting article, focussing on the other side of data binding that I wrote an article on myself for .NET magazine.
-
Article in .NET magazine
The new .NET magazine Belgium/Netherlands has been distributed to all subscribers. For the latest edition, #15, I've written an article on the basic principles and usage of NHibernate, an ORM-mapper for the .NET platform. It's written in Dutch, so I must disappoint my English blog readers... A PDF version and example code can be downloaded on the .NET magazine #15 homepage. Comments can be posted on this blog post.
-
CruiseControl.NET configurator
For those looking for a CruiseControl.NET configuration tool: I just stumbled on this one at CodePlex
-
Microsoft AJAX Library and ASP.NET AJAX Extensions
Scott Guthrie, one of the Microsoft "Atlas" guys, announced the "Atlas" 1.0 Naming and Roadmap stating that: Another nice thing in Scott's post is the following: Things will get even better next year with Visual Studio “Orcas” where we are adding rich JavaScript intellisense, debugging and WYSIWYG designer support for the ASP.NET AJAX Extensions within Visual Studio and many other great features to take advantage of.