Community Blogs

Browse by Tags

Related Posts

  • Region is an excuse for hiding large files

    Often when I take a look at sample code there are a lot of regions. I need to open them all the time, it really start to make me crazy. Why does people even use Region in their code, what's the point of hiding code? I think it's only an excuse to hide code because of a too large file. What do you think? Read More...


  • I Love VB: Silverlight UI Creation with XML Literals

    My actual problem is to develop a image (object) carousel. There are a lot of details to take care about. One of them is to create images dynamically with a great UI like border or shadow. First I startet up to write code like: Dim brd As New Border brd.Height = 130 'Bildhöhe+ 30 für text brd.Background = New SolidColorBrush(Colors.LightGray) brd.CornerRadius = New CornerRadius(3) brd.BorderThickness = New Thickness(3) Dim grdcoll As New GradientStopCollection() Dim grdstop As New GradientStop grdstop.Offset = 0 grdstop.Color = Colors.LightGray grdcoll.Add(grdstop) .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;...


  • HTML Comments, Other Comments and Some VS Tips

    I just found out something really weird about HTML comments. Apparently, according to standards, you can't do this: <!-- comment ------------------------ --> That is, you can't put two or more ‘-‘s inside a comment. It works as expected in IE7, but it breaks down horribly in FireFox. FireFox simply renders the comment to the user, which is pretty useless as that's not what comment are for!!. The standards "recommend" developers to not put two or more consecutive ‘-‘s inside an html comment. Now, that's weird. If there are specific delimeters like <!-- and -->, then I should be able to use any part of those delims (but not the whole) inside a comment, shouldn't I? Since, we're in the vicinity of comments...


  • Create HotKey combinations with jQuery

    Here's a great little script that allows you to easily map hot-key combinations using the jQuery library. http://code.google.com/p/js-hotkeys/wiki/about If you haven't seen the jQuery libray yet, check it out. Read More...


  • Case-Sensitivity in ASP.NET (VB)

    Note to self, and anyone else who cares... ViewState("ReferrerURL") is not the same as ViewState("ReferrerUrl"). Same with Cache object names. Apparently VB does *kinda* care about case sensitivity... Read More...


  • Passing Parameter to Crystal Report

    Recently, I was developing a pretty sophisticated Crystal Report that included multiple sub-reports and used multiple stored procedures as data sources. All of those stored procedures accepted the same parameter, which made my life a little easier, since I only had to deal with one parameter that I needed to pass to my Crystal Report. In order for all sub-reports to be able to recognize the parameter, which I am passing to the main report, I had to link all of my sub-reports to the main report using that parameter. In order to link a sub-report to the main report, the following actions should be performed: To link a subreport to the data in the primary report If you are creating a new subreport or importing an existing report as a subreport...


  • How to add service reference dynamically from user control? Microsoft Ajax

    First, Create a web page default.aspx and put the html code as following.. --------------------------------------------------------------------------- <asp:ScriptManager ID="MainScriptManager" runat="server"> </asp:ScriptManager> -------------------------------------------------------------------------- Now, Create a usercontrol my first user control Create a function called AddScriptReference as following... '-------------------------------------------------------------------------- private void AddScriptReference() {      ScriptManager scriptManger = ScriptManager.GetCurrent(this.Page);      if (scriptManger != null)      {         ...


  • Regex to find URL within text and make them as link

    Some time back on the form somebody was looking for some help in searching URL within text and make those URLs as link. Me and that guy tried various regex but the one that worked out I thought to put it on the blog so that it can help me and others later. Regex itself is: -------- In VB.Net --------- Dim regx As New Regex(" http://([\w+?\.\w+])+([a-zA-Z0-9\~\!\@\#\$\%\^\&amp;\*\(\)_\-\=\+\\\/\?\.\:\;\'\ ,]*)?", RegexOptions.IgnoreCase) -------- In C#.Net --------- Regex regx = new Regex(" http://([\\w+?\\.\\w+])+([a-zA-Z0-9\\~\\!\\@\\#\\$\\%\\^\\&amp;\\*\\(\\)_\\-\\=\\+\\\\\\/\\?\\.\\:\\;\\'\\ ,]*)?", RegexOptions.IgnoreCase); And I used following method to convert the URLs into link within text. -------...


  • Reduce ASP.NET Page size and complexity using JQuery-Part 2

    Reduce ASP.NET Page size and complexity using JQuery-Part 2 This is part 2 of my series for ASP.NET AJAX and JQuery comparison. You can read part 1 here . In my last 2 articles ( Dynamically create ASP.NET user control using ASP.NET Ajax and Web Service and Dynamically create ASP.NET user control using JQuery and JSON enabled Ajax Web Service ), I explained how to access JSON data from ASP.NET AJAX script service using ASP.NET AJAX client side framework and JQuery. In this post I will compare response...( read more ) Read More...


  • What is LINQ? LINQ Developer Resources

    LINQ is Language Integrated query. It is a integral part of visual studio 2008 and Microsoft .NET Framework 3.5. It is object to database mapping technology thorough which you can query any type of collections of object,XML of database. Recently I am goggling about the LINQ and I have found following great resources for developers: LINQ Resources: Linq for Oracle: ---------------- http://broersa.wordpress.com/2008/05/22/linq-for-oracle-sample/   .NET 2.0 Or higher transaction model to use it with linq: ---------------------------------------------------------- http://www.simple-talk.com/dotnet/.net-framework/.net-2.0-transaction-model/   How to use transaction with linq: -------------------------------- http://chiragrdarji.wordpress...


Page 1 of 9 (86 items) 1 2 3 4 5 Next > ... Last »
Microsoft Communities