I have a page with SmartNav, that contains a linkbutton with a
I have found that the page that is the target of the PostBackUrl will
have it’s postback property fired 2 times, and unfortunately, the 2nd
time it is fired the “PreviousPage” is set to Nothing.
I have posted a few places to see if someone from MS can confirm this is a bug, but I am betting they are going to tell me to not use smartnav.
A good friend of mine and a guy I hit with all the time played at Rutgers. Now it looks like they are going to cancel the program.
A website has been created to raise some money to help their program.
One of the challenges in doing merge replication in SQL Server is dealing with IDENTITY columns.
One of the tricks you can use is “automatic identity range management”.
Basically you tell DB 1 to start at seed 1 and DB 2 to seed at 20,000, and when DB 1 reaches 16,000 or DB 2 reaches 36,000 it will reset those seeds to 40,000 and 60,000.
It appears to work well.
I was having a small problem getting some reports to print the way I wanted.
I turns out that to get the table cells colored backgrounds to print, click on the browser’s Tools menu. Select Internet Options, then click on the Advanced tab. Scroll down to find the Printing heading and check the box called Print Background Colors and Images. This setting affects both page backgrounds and table cell backgrounds.
This function will figure out if the given date lands on a weekend.
Public Shared Function IsWeekend(ByVal dateOfInterest As DateTime) As Boolean
Dim d, m, y, w As Integer
d = dateOfInterest.Day
m = dateOfInterest.Month
y = dateOfInterest.Year
If m = 1 Or m = 2 Then
m += 12
y -= 1
w = CInt((d + 2 * m + 3 * (m + 1) / 5 + y + y / 4 - y / 100 + y / 400) Mod 7)
If w <> 6 And w <> 7 Then
Another function to do the weekend check could be this:
Private Const ERR_INVALID_DATE = 20000
Private Const ERR_INVALID_DATE_MSG = "Date Required"
Public Function IsWeekend(ByVal DateValue As Object) As Boolean
Dim dDateValue As Date
If Not IsDate(DateValue) Then
dDateValue = CDate(DateValue)
IsWeekend = (Weekday(dDateValue) Mod 6 = 1)