Recent Posts

2
Comments

JQuery Fancybox image gallery with mouseover zoom by stoian bucovich

I've been looking around for image zoom mouse over effect that works with my existing fancybox gallery and after a few hour googling I came up with simple and clean solution on my own. The good thing is that you don't need even a single row of javascript...
Filed under: , ,
4
Comments

SMTP Authentication required, hmailserver and ASP.NET 4 by stoian bucovich

The problem: 2 hours trying to send an e-mail message from my ASP.NET contact form (this time in .NET 4), and the only exception I am having is SMTP authentication required. Reading 30 more minutes the hmailservers' forum and the tones of different configurations...
3
Comments

Getting number of active sessions (online users counter) with ASP.NET by stoian bucovich

All that have to be done is in global.asax file: Sub Application_Start( ByVal sender As Object , ByVal e As EventArgs) Application( "OnlineUsers" ) = 0 End Sub Sub Application_End( ByVal sender As Object , ByVal e As EventArgs) End Sub Sub Application_Error...
0
Comments

Datetime interval checker - ASP.NET, VB.NET by stoian bucovich

Its simple snap of code that i think that could be useful. Hope it will help you someway. Dim upperDate As Date = "#30/6/" & DateTime.Now.Year & "#" Dim lowerDate As Date = "#1/6/" & DateTime.Now.Year & "#" If Not (Date.Compare(Date.Today...
1
Comments

Remove HTML from string with regular expression by stoian bucovich

It's really simple to do that with just a few lines of code. Here is how to: Private Function RemoveHTML( ByVal str As String ) As String Dim RegExp As String = "<[^>]*>" Dim R As New Regex(RegExp) Return R.Replace(str, " " ) End Function And...
0
Comments

Getting web file content from url with asp.net by stoian bucovich

Here's how you could get page or file content with help of webclient class and use it for exaple to get the forex rates or regional weather forecast from diferent page and show it to yours: First we need to import the requred name spaces: Imports System...
5
Comments

Embedding JW FLV Media Player in ASP.Net forms by stoian bucovich

Recent days I got a project with requirement to play flv video, so I found an free for non commecrial purposes flv player, but the problem that I had was how to find way to "control" what the player is going to play by the users' choise. So what I needed...
5
Comments

Get Windows Serial Number with VB.NET by stoian bucovich

I'll show you fast and easy way to get operating system serial number that the application is running on. Here how to accomplish this task: In Page_Load event handler (for example) getting WSN: Dim MOS As ManagementObjectSearcher = New ManagementObjectSearcher...
0
Comments

asp.net send mail with vb.net by stoian bucovich

Sending mail is with asp.net is simple, you can find it yourself with the next a few lines of code which are handled by button click event: First importing the namespace: Imports System.Net.Mail Than the Handler code: If Page.IsValid() Then Dim mySmtpClient...
1
Comments

ASP.NET directory listing by stoian bucovich

In this post i am going to demonstrate how you could achive directory listing. aspx page: <% @ Page Language ="VB" AutoEventWireup ="false" CodeFile ="DirectoryListing.aspx.vb" Inherits ="DirectoryListing" %> <! DOCTYPE html PUBLIC "-//W3C//DTD...
More Posts Next page »