Michael Freidgeim
45 posts.
- ScrollToControl helper method for ASP.Net web forms to move position to particular controlI've created a helper method for ASP.Net web forms to move position to particular control /// <summary> /// /// </summary>
- Tiny MCE editor in ASP.Net Web FormI wanted to implement rich text editor in ASP.Net Web Form. I found that Tiny MCE editor is very popular and selected it.
- Methods to verify, are DataTables or DataSets the same.I wanted to verify, are DataTables in DataSets the same. I found a few similar implementations on StackOverflow, but the one that I've selected
- Response for REST method was truncated because default MaxItemsInObjectGraph was not big enough.We have a REST service with attributes \[WebGet(UriTemplate ="...", BodyStyle =WebMessageBodyStyle.Bare, ResponseFormat =WebMessageFormat.Xml)\]
- AddIfNotNull collection extensionsI want to post a few recently created collection extensions to write in one line, what otherwise takes 2 or more
- Do NOT Change "Copy Local” project references to false, unless understand subsequences.To optimize performance of visual studio build I've found multiple recommendations to change CopyLocal property for dependent dlls to false,
- Translate jQuery UI Datepicker format to .Net Date formatI needed to use the same date format in client jQuery UI Datepicker and server ASP.NET code. The actual format can be different for different localization…
- Visual Studio 10 crashed when tried to open one of solutionsVisual Studio 10 crashed when I tried to open one of my solutions. Closing Visual Studio and rebooting the machine didn’t help. The error message that was…
- Custom HTTP response header to identify server in a farm.We wanted to follow recommendation from http://omaralzabir.com/best\practices\for\creating\websites\in\iis\6\0/ to
- T-SQL function to Get Maximum of values from the same rowBased on the ScottPletcher solution from http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/Q\24204894.html \--SELECT dbo.GetMax(23, 45,…
- SQL Script to create indexes for Foreign keyshttp://stackoverflow.com/questions/278982/are-foreign-keys-indexed-automatically-in-sql-server I’ve used SQL script similar to paul\nielsen’s to Create…
- IsSubsetOf List extensionI've created IsSubsetOf List extension based on discussion at http://stackoverflow.com/questions/332973/linq-check-whether-an-array-is-a-subset-of-another
- SQL's "like" patterns to compare in .NetI wanted to use SQL's "like" patterns to compare in .Net. I found the good C# implementation of function in thread Using Regex to create a SQL's "like"…
- Custom alert on the SQL DatabaseI wanted to create a custom alert on the SQL Database when number of records with some values(considered as invalid) exceeds the expected limit.
- MSbuild Task FileUpdate to replace content in text filesI wanted to replace some strings in files using my deployment MSbuild script. I've noticed that Project has RegexReplace task.
- Specify Expect100Continue=false in Web Service client.The Web Service Provider that we are using recommends NOT send Expect100Continue header. The specifying static value
- Do not pass data between static methods using static data members.In one of static class in our application, I found local static members that were used to pass data between calls of static methods. It’s wrong and can…
- Use WCF Message LoggingThe post based on How to enable WCF tracing article Open WCF Service Configuration Editor under VS 2008 Tools menu or directly from installation folder…
- Generate C# class from XSD file.I have an existing C# file, generated a long time ago from XSD definition. The XSD files were changed, and proxy class should be regenerated.
- Override ASP.NET Menu javascript functions to delay dynamic menus popup.We are using asp.net Menu control and wanted to have some delay before sub-menu popup to avoid annoying popup, if user just move mouse through menu area.
- Licensing Team Foundation Server 2008Team Foundation Server Workgroup Edition that you receive when you purchase a Team Edition with an MSDN Premium Subscription provides for FIVE named users…
- Remove empty lines in text using Visual Studio.Visual Studio has ability to delete empty lines in replace operation using regular expressions. 1.Click Ctrl-H (quick replace) 2\. Tick "Use Regular…
- Declare different CSS rules for Firefox and Internet Explorer 7The post Creating different CSS style selector definitions for different browsers (Firefox, Internet Explorer 7 and IE 6.0) with subsequent comments…
- T-SQL User defined function to concatenate column to CSV stringI had a complicate (and buggy) T-SQLstored procedure, that concatenate fields from details table and show them as one field in the resultset of the main…
- WatiN testing of multi-level Frames pageI wanted to use WatiN Web Application Testing In .Net, to test html page with multi-level frames: E.g TopFrame.aspx : <Frameset\> <FRAME…
- My HttpWebRequestHelper classusing System; using System.Text.RegularExpressions; using System.IO; using System.Diagnostics; using System.Net;
- Why we are getting ObjectDataSource: could not find a non-generic method 'Update'.I've hit the same problem again. I've already wrote 2 posts about the error "Exception Details: System.InvalidOperationException: ObjectDataSource 'ods'…
- Update appSettings in App.Config for executable.I wanted programmatically (for administrator) to update configuration settings for.Net 2.0 executable. The new in VS 2005 Properties.Settings.aspx) class…
- My StringHelper classI've posted a few code snippets and some people noticed that there are references to unresolved methods.I am using a few helper classes. This post…
- Programmatically set IIS Authentication for a page.To use Mixed Windows Authentication one of the step is to set set authentication on one page only to be Windows Integrated, but not “allow anonymous”.(see…
- DotNetNuke error reporting requires improvementI found that DotNetNuke code often doesn't report exceptions to user, but hides them.This style of error handling is natural for VB developers, who had…
- Access 2003 Package Wizard - a big step BACK.I am supporting Access XP(2002) Project application and recently found problems with SourceSafe 2005. Because I've got a new machine, I decided to install…
- DotnetNuke Changes to Promote User to SuperUserI implemented mixed Authentication for DotNetNuke ( Use Windows Integrated Authentication for seamless logon intranet logon and use Forms authentication…
- Set defaultProxy configuration Element for Proxy ServerSome customers of our application have ISA Server that requires Proxy Authentication. When ASP.NET applcicationed called external web services (e.g.…
- Running DotNetNuke as a file-system Web site- Specify a PortIf you are running DotNetNuke as a file-system Web site in Visual Studio 2005 using ASP.NET Development Server (aka Cassini), you must specify a Port.
- "default collation" for a SQL Server 2000 databaseSome our clients reported “'Cannot resolve collation conflict for equal to operation'” error. As it is explained here, it could happen if the tempdb…
- Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.I had a working DotNetNuke project 4.0.2 with .Net 2.0 that I wanted to publish to Windows Server 2003. However when I opened the published web site, I've…
- How to add DotNetNuke localization for a country.I've created an SQL to add australian regions and australian currency to DNN Lists table. The task is discussed on DNN Forum.
- Visual Studio 2005 Web Site Project- "Edit and Continue" is too restrictive.I have a solution with Start ASP.NET project and several VB and C# library projects. When I stopped in Visual Studio 2005 debugger in the library class…
- DirectorySearcher.FindAll() -should have PageSize=1000When you are calling DirectorySearcher.FindAll and there is a chance to have more than 1000 records back, you must set PageSize to non-zero value,…
- Remove NewLine characters from the data in SQL Server> UPDATE: Xavid at 8/2/2007 in a comment suggested a simpler code: > > > REPLACE(REPLACE(REPLACE(MyField, CHAR(10), ''), CHAR(13), ''), CHAR(9), '')
- Differences between Visual Basic Trim function and String.Trim() methodToday I recognized that Visual Basic Trim function removes spaces only, but String.Trim() method removes all white space characters(see Remarks here)…
- Calling __doPostBack in javascriptUpdate: There is an existing .Net Framework method Page.GetPostBackEventReference that emits client-side script that initiates postback and also provides…
- Support Forms and Windows authentication on the same ASP.NET Application.It is quite common request to support both Forms and Windows authentication on the same Web Application. The best solution that I found is described by…
- Export Registry in C#I wanted to export registry in C#.Net project. First of all I noticed that the Microsoft.Win32.Registry doesnt' provide this function. I've searched a web…
