Search This Blog
Tuesday, June 30, 2009
Monday, June 29, 2009
Sliding divs overlapping other divs in IE 7
Thursday, June 25, 2009
Wednesday, June 24, 2009
Monday, June 22, 2009
Sunday, June 21, 2009
Tuesday, June 16, 2009
Monday, June 15, 2009
Saturday, June 13, 2009
Thursday, June 11, 2009
Wednesday, June 10, 2009
Gnerate lorem ipsum text
You can also type “=lorem()” into Word to generate Lorem Ipsum text.
Syntax:
=lorem(paragraphs,sentences)
Example:
=lorem(6,20)
Or if you want random actual words from Word help files, you can use “=rand()” with the same optional (paragraphs, sentances) syntax.
.NET Framework and FTPS
http://blogs.msdn.com/adarshk/archive/2005/04/22/410925.aspx
After an effort of 2-3 days, however, I came to know that the .NET framework 2.0 till now supports only EXPLICIT FTP over SSL and not Implicit connection (which is usually established above port 990)
http://www.developmentnow.com/g/46_2006_5_0_0_755554/implicit-ftp--SSL-problem.htm
Turned out I could not do this without an external component involved. I tested the component available here and was able to connect to my FTP and didnt even require to verify the client certificate:
http://www.rebex.net/download/GetFileNotify.aspx?f=RebexTotalPack-Trial-1.0.3428.0-DotNet2.0.exe
A sample code of the function I used is:
Public Function GetFileByRebex()
Dim ftp As New Ftp()
ftp.Connect(ConfigurationManager.AppSettings("FTPUrl").ToString(), 990, Nothing, FtpSecurity.Implicit)
ftp.Login(ConfigurationManager.AppSettings("FTPUser"), ConfigurationManager.AppSettings("FTPPw"))
ftp.ChangeDirectory(ConfigurationManager.AppSettings("FTPWorkingDir"))
Dim fileNames As FtpList
fileNames = ftp.GetList()
Dim i As Integer
For i = 0 To (fileNames.Count - 1)
'Dim b As String
'b = fileNames.Item(i).Modified.Date.ToString()
If (fileNames.Item(i).Modified.Date.Equals(Today.Date)) Then
'Download file
todaysFileName = Now
todaysFileName = todaysFileName.Replace("/", "-")
todaysFileName = todaysFileName.Replace(":", "-")
ftp.GetFile(fileNames.Item(i).Name, Server.MapPath(ConfigurationManager.AppSettings("DownloadFolderName")) + todaysFileName + ".csv")
Exit For
End If
Next
End Function
Monday, June 8, 2009
Set up a DotNetNuke site
- Copy your site code to the new location
- Update the connection string in web.config
- Run the sql script on the server
- Grant EXECUTE permissions to ur database user on all the stored procedures
- update the application name in the aspnet_Applications table as well as the web.config applicationname attribute
- update the PortalAlias table in the database to set the new location
- browse your new site :)
Sunday, June 7, 2009
Wednesday, June 3, 2009
Access Server object in Class Library
http://forums.asp.net/t/647673.aspx
Just use System.Web.HttpContext.Current.Server.MapPath