
Saturday, November 18, 2006
Windows authentication in Firefox
Eric Wise has posted this cool tip on accessing windows authenticated sites in firefox
To enable windows authentication on your domain.
1. Open Firefox
2. Navigate to the url about:config
3. Locate the following preference names and put as the value the comma separated values of the address roots.
network.automatic-ntlm-auth.trusted-uris
network.negotiate-auth.delegation-uris
network.negotiate-auth.trusted-uris
Your value should look something like this: localhost,server1,server2,serverX ASP.NET
11/18/2006 3:26:48 PM (GMT Standard Time, UTC+00:00)
|
|

Monday, November 13, 2006
.Net 2.0 - XslCompiledTransform ToString
System.Xml.XSL.XslTransform is deprecated(obsolete) in .Net 2.0 framework. What this means is the old method of applying the transform method(XSL.Transform) is not going to work in the future versions of the framework. Instead, you need to apply the transform method of System.Xml.Xsl.XslCompiledTransform class.
I literally spent hours trying to figure out how to do this. all the online samples were pretty "useless", until i found this. Thanks to everyone. It made me feel better, that i was not alone with this problem.
This is the helper class, Many thanks to Willis
public static class XslHelper { public static String TransformInMemory(XslCompiledTransform transform, String input) { StringBuilder sb = new StringBuilder(); XmlReader xReader = XmlReader.Create(new StringReader(input)); XmlWriter xWriter = XmlWriter.Create(sb); transform.Transform(xReader, xWriter); return sb.ToString(); }
public static String TransformInMemory(String transform, String input) { XslCompiledTransform xsl = new XslCompiledTransform(); xsl.Load(XmlReader.Create(new StringReader(transform))); return TransformInMemory(xsl, input); } }
Happy Programming!!
ASP.NET | XML
11/13/2006 1:36:33 AM (GMT Standard Time, UTC+00:00)
|
|

Sunday, November 12, 2006
Ajaxification and the server response times
There is so much buzz about Ajax that literally it is used everywhere over the web. But people often forget the price we pay for using Ajax literally everywhere. It makes the sites to load slow, respond slow but the features are too coool. Classic example being the new yahoo mail.
Take a look at this article from Jeff. It is amazing to see what a 0.5 delay in a site response time could do to customer satisfaction General
11/12/2006 5:36:59 PM (GMT Standard Time, UTC+00:00)
|
|

Friday, October 27, 2006

Thursday, October 26, 2006

Tuesday, October 10, 2006
Cool Page Transition Effects
I have implemented some cool page transition effects. These tags eliminate the flashing when the page loads (when you click on a link etc). Thanks to Nikhil for giving this excellent piece of code.
<meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.Fade(duration=.5)" /> ASP.NET
10/10/2006 2:06:40 AM (GMT Daylight Time, UTC+01:00)
|
|

Monday, October 09, 2006

Thursday, October 05, 2006
SQL: Return "identity" rowID after inserting data and naming stored procedures
Often times as a developer we all need to insert new records into a table in a database and also retrieve the identity id of the most recently added row. The most common solution to this situation is use @@Identity. Simple eh? No, because @@Identity returns the most recently created identity for your connection. So if there is any other operation going on like a trigger, the identity created by the trigger would be returned instead of yours.
So it is better to use scope_identity() always.
Naming stored procedure with a prefix of sp_ is pretty common, i should say that is the current norm. But Apparently this is a bad habbit because the system databases are the only ones that should be named with prefix sp_. Long story short, SQL server starts looking for any stored procedure with a prefix sp_ in the Master database.
For more on the above feature, go here . Pretty cool dont's info on SQL practices SQL
10/5/2006 5:01:33 AM (GMT Daylight Time, UTC+01:00)
|
|