Monthly Archives: March 2009

Add a link to DataGrid control

To add a functional link (i.e. Edit/Delete etc),: Add any columns to the grid. Change the type to Hyperlink. May toggle ‘Read-Only’ (since you don’t really want to change the value), but do NOT check ‘Disable Editor’  (otherwise the link … Continue reading

Posted in SalesLogix | Leave a comment

All about Javascript from server side

These are just my notes on Javascript: When AJAX is involved, use ScriptManager.RegisterStartupScript, instead of Page.ClientScript.RegisterStartupScript. The specialty of RegisterStartupScript (compared to RegisterClientScriptBlock) is that it places the code at the very end of the page (before the </form> tag. … Continue reading

Posted in ASP.NET | Tagged | Leave a comment

Mysterious Double Post Back/Page Request

Recently I run into a strange situation that one of my pages was always loaded twice for each reqeust. This happened only when I enable  “URL Rewrite” feature for the site.  After almost a hour of debugging, I found it’s … Continue reading

Posted in ASP.NET | Tagged | 2 Comments

MS SQL connection string

Use current user’s identity: Server=MyServer;Database=MyDBName;Connection Timeout=180;Application Name=MyAppName;Integrated Security=true With a DB user: Server=MyServer;Database=MyDBName;Connection Timeout=180;Application Name=MyAppName;uid=myuserName;pwd=myPassword The Application Name value is mainly for tracking purpose.

Posted in SQL | Tagged | Leave a comment