Interface Mirror

Proper Solutions to Software Development Problems

  Home  |   Contact  |   Syndication    |   Login
  18 Posts | 8 Stories | 16 Comments | 1 Trackbacks

News



Article Categories

Archives

Post Categories

Link

August 2008 Entries

Hi, I am working on LINQ since last few days and I think it is a very interesting technology to work on. Before that I used to work on Subsonic to generate code for my Data Access Layer, now by using LINQ not only I have my Data Access Layer but also a lot of more functionalities. Yesterday I faced a situation where I had to SELECT BETWEEN some values according to my LINQ query. At last I came to the point that LINQ does not have SELECT IN (a1,a2,a3 ...) so I had to do following: int [] data = new...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Hi, The ASP.NET Profile stores more information about logged in user and gives the developer capability of playing with those information later on without coding much. A great use of Profile is when we would like to store more information about the user in our application. Since ASP.NET membership default implementation provides only basic information about the user like Username, password and Email and there is no chance to add more information like User's First name, Last name, Date of birth, Phone...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Hi, By default membership provider in .net has a password policy that restricts you to have passwords of length 7 (at least) and one character among those 7 must be Alph-Numeric. There are various conditions that you want to overlook this policy. Following are the ways: Using minimum length and non-alphanumeric character <membership ...> <providers> <add minRequiredPasswordLength=5 minRequiredNonalphanumericC... /> </providers> </membership> Using regular expression...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Hi, I just finished a very small module to gather RSS fields from Database and show them in my page. THIS POST FROM MSDN was really helpful and it is just what I wanted. I tried a lot to use asp:Repeater and XSLT togather to format my feeds but I found no way to do that. At last I came back to XML control in ASP.NET and did following: Made a small parser class to transform my SqlDataReader to XmlDocument object Used Xml Control to combine XmlDocument and XSLT to transform the result...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Hi, I have found this very useful snippet from asp.net forums You can format your Datatime object in .Net using following formats. DateTime.ToString() Patterns All the patterns: 0 MM/dd/yyyy 08/22/2006 1 dddd, dd MMMM yyyy Tuesday, 22 August 2006 2 dddd, dd MMMM yyyy HH:mm Tuesday, 22 August 2006 06:30 3 dddd, dd MMMM yyyy hh:mm tt Tuesday, 22 August 2006 06:30 AM 4 dddd, dd MMMM yyyy H:mm Tuesday, 22 August 2006 6:30 5 dddd, dd MMMM yyyy h:mm tt Tuesday, 22 August 2006 6:30 AM 6 dddd, dd MMMM yyyy...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati