Geeks With Blogs
Pankaj Tahiliani August 2009 Entries
T-SQL determine the correct format for datetime values
Query: select convert( varchar(50), getdate(), 100) Output: Aug 19 2009 11:27AM Query: select convert( varchar(50), getdate(), 101) Output: 08/19/2009 Query: select convert( varchar(50), getdate(), 102) Output: 2009.08.19 Query: select convert( varchar(50), getdate(), 103) Output: 19/08/2009 Query: select convert( varchar(50), getdate(), 104) Output: 19.08.2009 Query: select convert( varchar(50), getdate(), 105) Output: 19-08-2009 Query: select convert( varchar(50), getdate(), 106) Output: 19 Aug ......

Posted On Wednesday, August 19, 2009 3:57 AM

Highlighting TextBox on Error using Required Field Validator
1. Create a CSS Class that allows you to highlight invalid inputs and display messages in a pretty way input.error { background: #fed; border: 1px solid red; } 2. Create validators.js. Here are the contents from that file: ValidatorCommonOnSubmit = function() { ClearValidatorCallouts(); var result = SetValidatorCallouts(); return result; } ValidatorValidate = function(val, validationGroup, event) { val.isvalid = true; if ((typeof(val.enabled) == 'undefined' || val.enabled != false) && IsValidationGroupMatch(val, ......

Posted On Thursday, August 13, 2009 12:38 AM

Form inside AJAX update panel isn't submitting line breaks correctly with Firefox and Safari
Problem: I have a FormView inside an update panel inside a repeater. When i change the FormView to edit mode, and update text in my textbox (also with inserting text), the text that is inserted isn't adding in the linebreaks i input. If i set EnablePartialRendering="False" for the page it works correctly. This makes me think it's an error with AJAX and the update panel. I have checked the database to see what is being inputted and it seems the difference between using IE and Firefox/Safari is that ......

Posted On Monday, August 3, 2009 1:26 AM

Copyright © Pankaj Tahiliani | Powered by: GeeksWithBlogs.net