Create High Quality Thumbnails/Resize using System.Drawing.Graphics - ASP.Net C# Code - Chintankumar Patel's Blog
This is a great article on the steps necessary to correctly scale an image down.
Friday, July 25, 2008
Thursday, July 03, 2008
How to synch Infragistics Grid with the form detail.
Infragistics
Infragistics sample of how to synch a grid and form detail only works if the grid is not allowed to be sorted. Instead of using the grid's row position. The record position of the underlying binding source should be used.
ugGradingLocation - is the Infragistics grid
ScopingScenarioTypicalGradingSecBindingSource - is the binding source for the grid and form detail.
Sub GridSynchWithForm()
' Use CurrencyManager to set position (this will handle sorted grids)
If Me.ugGradingLocation.ActiveRow IsNot Nothing Then
Dim cmGrid As CurrencyManager = DirectCast(BindingContext(ugGradingLocation.DataSource, Me.ugGradingLocation.DataMember),
_ CurrencyManager)
Dim cmForm As CurrencyManager = Me.BindingContext(Me.ScopingScenarioTypicalGradingSecBindingSource)
If cmForm.IsBindingSuspended Then
cmForm.ResumeBinding()
End If
cmForm.Position = cmGrid.Position
'If the grid could not be synched with the from detail
'Assume the grid is adding a row and temporary suspend binding.
If cmForm.Position <> cmGrid.Position Then
cmForm.SuspendBinding()
End If
End If
End Sub
Called when the following events occur:
ugGradingLocation_AfterRowActivate
ugGradingLocation_AfterRowInsert
ugGradingLocation_AfterRowUpdate
Wednesday, July 02, 2008
DotNetNuke Installation Trouble Shooting
- If you are using windows VISTA, prior to unzipping the file, change the file property settings. You need to "unblock" the file. This is under the general settings tab.
- Read the readme file. It has importatant instructions like renaming files and setting up security. For example, rename release.config to web.config.
- Grant access to the database folder to NETWORKSERICE
- You may need to coment out the ScriptModule references in the WebConfig. You will know when you get an error.
- wizard i infiinte loop at "Run Database Installation Scripts"
Once you gotten to the page with "infinite loop" track back using back button
up to the initial page and select Auto instead. At that point your connection
string and other settings are already saved to web.config, so Auto will
just run and do what you wanted. Not sure why, but on local machine, it
always gives me that problem. I never had it out on a remote server,
though. Also, it is hardly an infinite loop. It seems to me that the wizard
just dies internally for some odd reason and, since I got the workaround, I
just don't care to dig any deeper. :)
Subscribe to:
Posts (Atom)