ASP.NET
Stoian Bucovich's Blog
Sign in
|
Join
Home
Contact
Search
Tags
No tags have been created or used yet.
Sponsors
advertise here
Navigation
Home
Blogs
Archives
June 2009 (2)
May 2009 (1)
March 2009 (1)
January 2009 (3)
December 2008 (1)
October 2008 (4)
May 2008 (3)
March 2008 (3)
February 2008 (3)
January 2008 (2)
Recent Posts
0
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...
0
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...
4
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...
3
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...
0
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...
0
Comments
Checking for file extensions method
by
stoian bucovich
A sample method for checking image file extension which can be used for exaple to check upload file control uploaded file types: Public Shared FileExt As New ArrayList Public Shared Sub InitImageExt() FileExt.Add( ".jpeg" ) FileExt.Add( ".jpg" ) FileExt...
2
Comments
Catching page level errors and writing them in log file with auto controlled file size
by
stoian bucovich
This is preaty handy for catching page errors and writing them down in log file which is automaticaly deleted if he reaches defined file size. Imports System.IO Public Shared Sub PageErr( ByVal ErrorMessage As String , ByVal UserIPAddress As String ,...
More Posts
Next page »